Forum Discussion
Change case and retain hyperlinks
Note that, in your case, Excel assumes the cell to its right as having the same format as it has.
- Ellen FinkelsteinMay 08, 2019Copper Contributor
Twifoo How do I "use the same hyperlink formula"? The hyperlinked text is already there and I don't want to have to recreate each hyperlink manually. And I did copy to the column to the right.
- SergeiBaklanMay 08, 2019Diamond Contributor
Ellen Finkelstein , not sure you may change in place without VBA, but you may add helper column with same links as
=HYPERLINK( MID(FORMULATEXT(A1), SEARCH("(",FORMULATEXT(A1))+2, SEARCH(",",FORMULATEXT(A1))-SEARCH("(",FORMULATEXT(A1))-3), PROPER( MID(FORMULATEXT(A1), SEARCH(",",FORMULATEXT(A1))+2, LEN(FORMULATEXT(A1))-3-SEARCH(",",FORMULATEXT(A1)) ) ) )- Ellen FinkelsteinMay 08, 2019Copper Contributor
Thanks, I'll try to figure out how to use the VBA (but it should be easier).
From some research, it seems I need to make it a function?
Put Public Function before it and End Function after it? Give it a name? Something about defining data types?
I've done this and inserted it in a VBA module but it doesn't appear when I try to insert it as a function.
Public Function sc
=HYPERLINK(
MID(FORMULATEXT(A1),
SEARCH("(",FORMULATEXT(A1))+2,
SEARCH(",",FORMULATEXT(A1))-SEARCH("(",FORMULATEXT(A1))-3),
PROPER(
MID(FORMULATEXT(A1),
SEARCH(",",FORMULATEXT(A1))+2,
LEN(FORMULATEXT(A1))-3-SEARCH(",",FORMULATEXT(A1))
)
)
)
End FunctionEllen