CutterJaxx
Technical User
Hi all,
Running Windows XP, Excel 2003.
I have written a macro which creates new worksheets, allows the user to enter the name for the sheet and then creates a hyperlink to the new sheet on a menu worksheet.
The hyperlink is inserted in the next empty cell in column B (starting at cell B7) and offset by two rows from the last. I want to only insert the hyperlinks in column B until Row 29. At this point I need any new hyperlinks to be inserted in column D, then column F and so on. How can I do this in code???
Below is the existing code.
Any and all assistance appreciated
Cutter
Running Windows XP, Excel 2003.
I have written a macro which creates new worksheets, allows the user to enter the name for the sheet and then creates a hyperlink to the new sheet on a menu worksheet.
The hyperlink is inserted in the next empty cell in column B (starting at cell B7) and offset by two rows from the last. I want to only insert the hyperlinks in column B until Row 29. At this point I need any new hyperlinks to be inserted in column D, then column F and so on. How can I do this in code???
Below is the existing code.
Code:
'Add HyperLink on Menu Page to new datasheet
Range("B7").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(2, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:="'" & AreaName & "'!A1", TextToDisplay:=AreaName
Any and all assistance appreciated
Cutter