Excel Macro to open link and then snap back to sheet - excel

I am having trouble recording an excel macro that accesses a relative cell, opening a link within that cell, and then returns to excel.
For example I need to describe an image in cell A1, the link to the image is in cell A3.
I want to use a keyboard shortcut to run a macro that opens the link in cell A3 and then returns me to cell A1 so that I can type in a description.
I am guessing this is really simple but I have next to no experience with Excel, thank you for any help.

Can you just incorporate use of HYPERLINK function that is available in Excel?

Related

How to find out which cells are pulling data from another sheet

I want to find out exactly which cells in my excel workbook are pulling data from another sheet inside the same workbook. Is there a way to do this?
Yes, there is an easy way to do it if you don't have a lot of cells.
Click the cell you want to check, then go to "Formulas" -> "Trace Precedents". [you need to do it for each cell :(, so that's the disadvantage]. You might need to click several times for each cell.
Notice the difference in my picture. The cells in the range B5:B13 has a formula linked to an external source (another worksheet or another workbook, shown as a little mini table), while the cell B15 who has a blue arrow, is linked to cell E14 on the same worksheet!
If you want to know which linkage (which source cell it's linked to), klick on the arrow and you should see this window;
If there are a massive amount of cells, I would give this VBA code a try:
VBA to list all external links together with the cells containing the links

Pull a hyperlink from a hidden sheet Microsoft Excel

I'm trying to pull a hyperlink from a hidden sheet in excel to be used in combination with an IF command, it means there will be 3 arguments.
=IF(A24="","",VLOOKUP(A24,'Product Data '!$A$2:$AD$213,19,FALSE))
Is this possible?
Please see current formula below. How do I add for the hyperlink to be used in conjunction with the IF command as I only want the link to show if specific text is selected.
TIA
In order to use the HYPERLINK from a cell in another cell, you should write it in the HYPERLINK formula:
Something like this:
=HYPERLINK(IF(1=1,VLOOKUP("www.test.com",'Product Data '!A1:A10,1,0)))
The sheet and whether it is hidden or not is irrelevant.

Removing the label within a Hyperlink leaving only the hyperlink as a text

I have created a column with rows of different hyperlinks a hyperlink within a cell, with a link label attached . Now i want to display only the hyperlink(as a text)and remove the label for each row within the column. Is this possible with a formula? I don't want to have to remove them manually one at a time
It is easily done in VBA.
Press Alt+F11 (this will open the VBA editor)
Insert a new module.
Copy this in to the module:
Function GetHyperlink(Rng As Range)
GetHyperlink = Rng.Hyperlinks(1).Address
End Function
(This will add a new custom function, which is a formula that extracts hyperlink from cell)
Then if you go back to your workbook, enter a formula where you want to extract the hyperlink.
Your formula will be =GetHyperlink(A1)
Assuming your hyperlinked cell is in A1.
Let me know if it works.

Excel "Insert shapes" Color change based on cell value

Anyone knows how to Change the color of Shapes("Insert-> Shapes") based on the value of a cell. i could do this with the help of macro. but i now need the same to be done without the help of macro.
Kindly share the formula if anyone can do this.
thanks.
Example how to show the picture of a named range in a ActiveX image control:
Open Excel with a empty Worksheet Sheet1.
Write 0 in A1.
Create a named range using the Name Manager http://office.microsoft.com/en-us/excel-help/define-and-use-names-in-formulas-HA010147120.aspx#BMmanage_names_by_using_the_name_manage
to do so:
open Name Manager
click New
Name= Image
Refers To= =INDEX(Sheet1!$E:$E,Sheet1!$A$1*4+1):INDEX(Sheet1!$E:$E,Sheet1!$A$1*4+4)
OK
close Name Manager
now:
Take a ActiveX Image Control from Developer tab
(http://office.microsoft.com/en-us/excel-help/show-the-developer-tab-HA101819080.aspx)
Controls and put it in the Worksheet.
Overwrite the formula =EMBED(...) in the formula bar with =Image
(the name of the named range). Now, if you change the value in Sheet1!A1,
you should see the cells E[n]:E[m] with n=A1*4+1 and m=A1*4+4 as
picture in the Image Control. Try it by putting values in E1:E20
and change A1.
Now, if you place different shapes over E1:E4, E5:E8, E9:E12,... you
see them in the Image Control by changing the value in A1.
Edit April 2019:
This works using Excel 2007. It does not work in later Excel versions because the ActiveX Image control does not more accept cell ranges as source.
Just tested in Excel 365:
First do the same steps as above but then in last step
now:
Copy four cells of one column (A1:A4 for example) into the clipboard. It is not important from where the cells are coming.
In the sheet where the image shall appear do Home -> Paste -> Linked Picture. A picture showing the copied cells is pasted. And the formula bar shows the formula =Sheet1!$A$1:$A$4 for example.
Overwrite the formula in the formula bar with =Image (the name of the named range). Now, if you change the value in Sheet1!A1, you should see the cells E[n]:E[m] with n=A1*4+1 and m=A1*4+4 as picture in the pasted picture. Try it by putting values in E1:E20 and change A1.
Now, if you place different shapes over E1:E4, E5:E8, E9:E12,... you see them in the pasted picture by changing the value in A1.

excel batch pasting formulas

I have a list of documents that I want to paste relative links to in Excel. I converted the list to a list of Excel formulas that look like
=HYPERLINK(".\docs\123abc\1.doc","1.doc")
=HYPERLINK(".\docs\456abc\1.doc","1.doc")
However when I paste this in Excel it will paste the text for the formula and not actually make it a formula. I have tried creating a macro to set each cell's FormulaR1C1 value as the value from the text in the cell and that didn't fix it. As well I have tried to copy and paste special as forumla and that did nothing either.
If I type in each formula by hand instead of copying and pasting them it works great, however the list of forumlas I have is a couple hundred and I would prefer not to have to type each one in by hand. Does anyone have any experience with this or suggestions on getting the forumla to register?
Before pasting the formulas,
Select all cells in worksheet
Right click and select "Format Cells..."
In the Number tab page, select General and click OK button.
Paste your formulas list.

Resources