How to link the macro enabled file with the original file?

saranyatl

New Member
Joined
Nov 26, 2013
Messages
16
HI...
I wrote a code in sheet 1 of Book1_DT.xlsx for checking a cell value and then hyperlink to the corresponding Sheet.

=IF(Sheet1!L41="1,2,3",HYPERLINK("[Book1_DT.xlsx]123!A1","1,2,3"),IF(Sheet1!L41="1,2,5",HYPERLINK("[Book1_DT.xlsx]125!A1","1,2,5"),IF(Sheet1!L41="1,2,4",HYPERLINK("[Book1_DT.xlsx]124!A1","1,2,4"),IF(Sheet1!L41="1,2",HYPERLINK("[Book1_DT.xlsx]12!A1","1,2"),IF(Sheet1!L41="1,2,3,4",HYPERLINK("[Book1_DT.xlsx]1234!A1","1,2,3,4"),IF(Sheet1!L41="1,2,4,5",HYPERLINK("[Book1_DT.xlsx]1245!A1","1,2,4,5"),""))))))

This Code worked perfectly...it checks cell L41 of sheet 1 and depending on the cell value it goes to other sheets named as 123,124,125,12,1234,1245.

Now i added macros in sheet1 and saved it as macro enabled file. After saving as macro enabled file the hyperlink is not working.
Kindly help me to run macro and hyperlink in the same file..
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,
If you change the name of the file you need to recreate the hyperlinks (xlsx is now xlsm in the filename).
ξ
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top