I'm trying to generate a HYPERLINK formula via VBA but when I click on the resulting link I get an Excel error message "Cannot open the specific file." I tried this but same results.
This is my code to generate the link.
wksUsersSheet.Range(COMMENTARY_COL & lngRowNow).FormulaR1C1 =
"=HYPERLINK(" & Chr(34) & "[" & strThisBooksName & "]" &
strFoundMatchWorksheetName & "!" & strFoundMatchAddress & Chr(34) & ","
& Chr(34) & rngReturnedMatchingPart.Value & Chr(34) & ")"
The immediate window displays this:
=HYPERLINK("[UPN_Template_Wip]AleksV!$I$4","2322 734 61009L")
I've tried it with .Formula
as well but the result is the same.
I'm using Excel 2007 in Windows 7. Am I missing something here 'cause it's all looking fine, just not working fine. Thanks.