I think that is such a simple question, but I can't find any command in VBA to convert a number such as 1204 into the corresponding string "1204".
Any suggestions at this point
If have tried to read the number out of a cell and assign it to a string, but that does not compatible with creating hyperlinks.
This is the code example. the code works perfectly when the cell content is a string , but it crashes when it is a number.
'Gen hyperlink
part1 = Sheets("3d rotate").Cells(13999 + i, 15) & Sheets("3d rotate").Cells(13999 + i, 11)
part2 = Sheets("3d rotate").Cells(13999 + i, 11)
Sheets("content information").Select
Sheets("content information").Cells(6 + i, 4).Select
Sheets("Content Information").Hyperlinks.Add _
Anchor:=Selection, Address:=part1, TextToDisplay:=part2
Any suggestions at this point
If have tried to read the number out of a cell and assign it to a string, but that does not compatible with creating hyperlinks.
This is the code example. the code works perfectly when the cell content is a string , but it crashes when it is a number.
'Gen hyperlink
part1 = Sheets("3d rotate").Cells(13999 + i, 15) & Sheets("3d rotate").Cells(13999 + i, 11)
part2 = Sheets("3d rotate").Cells(13999 + i, 11)
Sheets("content information").Select
Sheets("content information").Cells(6 + i, 4).Select
Sheets("Content Information").Hyperlinks.Add _
Anchor:=Selection, Address:=part1, TextToDisplay:=part2