UnleashtheData
New Member
- Joined
- Aug 9, 2016
- Messages
- 8
Hi!
I’m hoping for a macro that can:
Also, it’s be great if I could get a second macro that would do the same thing as the first, except it would link to the worksheet with the same name as the concatenation of the A cell and the corresponding R cell. For example, the hyperlink in A36 would link to the worksheet with the name given by the formula: =CONCAT(A36,R36).
You may be wondering why I don’t just use the HYPERLINK function to add these links. I’ve tried the following formula starting in B36: =HYPERLINK("[" & MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]", CELL("filename",A1))-FIND("[",CELL("filename",A1))-1) & "]" & A36 & "!A1",A36) . As I’m sure you can tell, the intention of a large part of this formula is to pull the workbook name for the hyperlink. But because Excel is pulling a Temporary Internet File path instead of the normal file path, the hyperlink does not work. Error message: “Cannot Open the specified file.” If you’d like to help me troubleshoot this that would be appreciated, though the VBA would probably be preferable since it allows for the insertion of hyperlinks in Column A, where there is already a formula.
Thank you so much for your time!!
I’m hoping for a macro that can:
- Start in A36 of the active worksheet and continue downward, stopping when it reaches a blank cell (ideally, it could do this at once for all selected worksheets, if multiple are selected.)
- In each of those applicable cells, insert a hyperlink to the worksheet with the same name as the text in the cell.
- The values in the Column A cells should be left the same.
Also, it’s be great if I could get a second macro that would do the same thing as the first, except it would link to the worksheet with the same name as the concatenation of the A cell and the corresponding R cell. For example, the hyperlink in A36 would link to the worksheet with the name given by the formula: =CONCAT(A36,R36).
You may be wondering why I don’t just use the HYPERLINK function to add these links. I’ve tried the following formula starting in B36: =HYPERLINK("[" & MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]", CELL("filename",A1))-FIND("[",CELL("filename",A1))-1) & "]" & A36 & "!A1",A36) . As I’m sure you can tell, the intention of a large part of this formula is to pull the workbook name for the hyperlink. But because Excel is pulling a Temporary Internet File path instead of the normal file path, the hyperlink does not work. Error message: “Cannot Open the specified file.” If you’d like to help me troubleshoot this that would be appreciated, though the VBA would probably be preferable since it allows for the insertion of hyperlinks in Column A, where there is already a formula.
Thank you so much for your time!!