Hi, in VBA I have
tab_name is a defined variable.
The code inserts an equation containing a hyperlink function. In 'Sheet1'!A2, I have the current workbook name (ie [Book1]). I believe there is an issue with all of the quotations. Can anyone figure out this puzzle? I've been at it for a while with no luck.
Oh, btw, I get error message '1004' - Application-defined or object-defined error
Code:
Sheets("" & tab_name & "").Cells(1, 2) = "=HYPERLINK("""" & 'Sheet1'!A2 & ""'Sheet1'!A1"""",""To Main Roll-Up"")"
tab_name is a defined variable.
The code inserts an equation containing a hyperlink function. In 'Sheet1'!A2, I have the current workbook name (ie [Book1]). I believe there is an issue with all of the quotations. Can anyone figure out this puzzle? I've been at it for a while with no luck.
Oh, btw, I get error message '1004' - Application-defined or object-defined error
Last edited: