Hyperlink PDF using VBA - excel

I am looking to make my excel spreadsheet insert a hyperlink to a PDF but only display the last five characters of the name eg: helpme12345 and the cell show 12345 as the clickable link. I can do this long winded but am hoping a VBA macro can do this quicker
How can I write this? Thanks in advance

I don't think you can solve it at all like that. Not even by using VBA. Either the entire cell is a hyperlink, or it's not.
But I'll provide you with a neat trick:
Enter your text in a cell and make it as big as you need. For example "Click here to read more". Edit the cell again (press F2) and underline the word "here". Add some font colour as well if you want
Now draw a rectangular box that covers the word "here" (Insert --> Shapes --> some rectangular box)
Right-click on the rectangle and define your hyperlinke
Finally: Make the box transparent without borders. It'll still be there, but it's invisible... BUT clickable! It looks like you click on the word, but it's the box you click on.

Related

Excel: Cannot edit text just deletes the whole thing

I am new to excel and every time I try to edit text in excel by double clicking the cell or press the back space button when I make an error it just deletes the whole thing and I need to retype everything.
I was wondering if there was any way to turn this off.
Thanks in advance!
To the best of my knowledge, there no way to turn this off. When you want to edit text in a cell, you need to first select the cell by single clicking on it. Any contents in the cell will display in the formula bar located above the spreadsheet. Click anywhere you need to in the formula bar to edit text. If you delete or backspace on the cell accidentally, you can CTRL+z to undo.
If you do not see the formula bar, click on View tab in the menu ribbon and make sure the Formula Bar option is checked.

Why do numeric hyperlinks make an entire cell clickable and the text uneditable?

I have notice that if you insert a hyperlink into any cell in Excel and set the text to display to be a number (1, for example), it causes the entire cell to now be clickable in addition to preventing you from changing the hyperlink text afterwards. If you try to change the hyperlink text by going to Edit Hyperlink the Text to Display is always Selection in Document.
If you do the exact same thing but make the Text to Display an alpha character (like a), it works just fine and you can edit the hyperlink Text to Display without issue.
This is causing problems because I am trying to read Excel data using Interop libraries and even those libraries are unable to read the Text to Display when it is set as a whole number with no decimal places.
If you create a Hyperlink like:
You can later edit the "Friendly Name" by selecting the cell and doing the edit in the Formula Bar.

Picture shows in excel if a threshold is hit

I am creating an excel spreadsheet to track sales quota. I would like the spreadsheet to display a picture of fireworks when quota is hit. I don't know that much about macros, but good with formulas but that doesn't seem to help. Any ideas?
One way that I know it can be done:
1) Paste the picture of the fireworks in a cell (say A1) in a separate (preferably hidden sheet). Make sure to resize the cell (or the picture) so that the picture completely fits inside cell A1.
2) Define a named formula, maybe named "fireworks", which goes like:
=IF([Your condition for the fireworks to show],INDIRECT("[cell in which firework pic is]"),INDIRECT("[any blank cell"))
like for eg:
=IF(Sheet1!$C$6=TRUE,INDIRECT("Sheet2!$a$1"),INDIRECT("Sheet1!$M$8"))
3) Go to 'Insert' tab, click Object, click bitmap image. If paint or any image editor opens up just close it, so it inserts a blank image/object into the sheet. This image will have "=EMBED("Paint.Picture","")" in the formula bar. Replace this with a reference to our named formula, like =fireworks
4) Resize and reposition this image/object. When the condition is satisfied, the pic should pop up.

Excel 2010 - Hyperlink Text Only & Not Entire Cell

Is there a way to add a hyperlink to text only and not the entire cell in Excel 2010?
I am only able to insert a hyperlink which affects the entire cell (even white space after the text), but I wish to have it so that a user can click on the non-hyperlinked section of the cell in order to select the cell without activating the hyperlink.
Is this possible (ideally without VB)?
Many thanks.
I'm not sure.. I just wrote this, but it acts the same as adding a hyper reference (although you can still select the whitespace of a cell (after the text has finished) and it won't follow the link)
=CONCATENATE("This is your ", HYPERLINK("http://www.google.com","Google"), " link")
Just as a FYI, you can hold ALT key and click on a cell without it opening the URI
I got over this by turning off the "wrap text" from the cell formatting.
really, if you have wrap text turned on, the whole cell will act as a hyperlink. if you have wrap text turned off, only text will act as a hyperlink.
An indent (Home → Alignment → Indent: 1) makes the entire cell a hyperlink.
It's a very odd thing. If I link to a .doc or docx document, only the text is linked. If I link to a .txt document, the whole cell is a link.
I think it's just an odd excel glitch.

How to get rid of black arrowheads in right bottom corner of excel cell?

I have a file with Excel 97-2003 (.xls) version. When this file is opened in Excel 2013, shows black arrowheads in right bottom corner of the cell. These arrows are only in cells B3:J3 and F4. All these cells contains integer numbers. To get an idea what I want to convey please have a look at following image.
Things i have tried to remove arrowheads
Clear content and insert data again. (Arrow head is still there even if I remove data.)
Clear formatting.
Use Format painter and format the cells having arrowhead with the format of cells not having arrowhead.
Deleting the cells. (If I delete the cells, these arrows get shifted to cells above it)
Removing the conditional formatting from these cells.
Interesting thing is when I try to print the sheets the arrowheads vanish in print preview. I want to get rid of the black arrowheads (or triangles) in the excel sheet.
Thanks in advance... :)
Edit:
Things i have tried to remove arrowheads in addition to above mentioned
"Remove Arrows" from "Formulas" tab
In the 'home' tab on the ribbon, click 'select & find', then 'selection pane'.
If there is anything in this pane, select and delete it and that will probably remove the arrows.
Also, in the 'Formulas' tab in the ribbon, click 'Remove arrows'
Function Key and F5 at the same time in the cell in which the black arrowhead appears.
Click on Special.
Click on Objects.
A gray circle will appear.
Hit the delete key
and the black arrowhead will disappear

Resources