Excel macro to follow variable hyperlink in a cell?
The hyperlink below is in a cell (D4) and takes the user to a particular worksheet based on a selected drop-down. I can't find any VBA code that will allow me to follow this variable hyperlink, only static hyperlinks. I don't want the user to have access to the formula, but want to assign it to a button via a macro. Does anyone know the code that can do this?
=HYPERLINK("[workbook.xls]"&
VLOOKUP(B4,data!B2:H148,7,)
&"!A1","GO")
Thanks,
Thanks Prince H, but I get a "Compile Error: Invalid Use of Property" and it highlights the ".Sheets" part of the code.