Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Creating Macro to insert a hyperlink and then sort ...

Hi all

I have created the macro below which copies a template worksheet,
pastes it into the current workbook and then creates a hyperlink in a
specified cell.

Sub Macro3()
'
' Macro3 Macro
' Macro recorded 04/04/2007 by michaelc
'
' Keyboard Shortcut: Ctrl+z
'
Sheets("Template").Select
Sheets("Template").Copy After:=Sheets(47)
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Index").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="",
SubAddress:= _
"'Template (2)'!A1", TextToDisplay:="'Template (2)'!A1"
End Sub

However, what I would really like it to do is insert a new hyperlink
for each sheet when the macro is used again, in the cell below the
previous hyperlink. Also, I'm sure this must be possible - I would
then like to sort the hyperlinks in alphabetical order once the new
sheet / hyperlink has been created. The reason this is not straight
forward is that the existing hyperlinks are evenly distributed across
3 columns instead of one (this main sheet just acts as an index
sheet). If I try to sort the columns by highlighting all three columns
in the usual way it will just sort each column alphabetically - does
that make sense?!?!

Thanks for any help - very much appreciated!

Mike

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
would love help creating a macro to insert information sweetboo22 Excel Discussion (Misc queries) 3 October 23rd 06 03:24 AM
How do I create a Macro to sort data and insert blank rows & subto karinmpfa Excel Worksheet Functions 2 April 25th 06 09:57 PM
CREATING HYPERLINK IN EXCEL STARFINANCIALGROUP Excel Discussion (Misc queries) 1 January 26th 06 06:29 PM
Creating a hyperlink in column reloanpro Excel Discussion (Misc queries) 10 January 6th 06 05:36 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"