PC Review


Reply
Thread Tools Rate Thread

Created list of worksheet names but need list to be hyperlinked to

 
 
=?Utf-8?B?bWFpaml1bGk=?=
Guest
Posts: n/a
 
      10th Sep 2007
Hello,

I have a workbook with 120 worksheets. I created an Index worksheet with
all of the names of each worksheet (A2-A121). Now I wish to somehow easily
hyperlink the index names to the worksheets. The worksheets and the index
are named exactly the same. Thanks for looking,

Mj
--
Thank You!
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      10th Sep 2007
Take a look here:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm

In article <DAC4A5D6-0EE5-40E7-A2EA-(E-Mail Removed)>,
maijiuli <(E-Mail Removed)> wrote:

> Hello,
>
> I have a workbook with 120 worksheets. I created an Index worksheet with
> all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> hyperlink the index names to the worksheets. The worksheets and the index
> are named exactly the same. Thanks for looking,
>
> Mj

 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      10th Sep 2007
Here's a little VB routine I use to create a TOC sheet. HTH
Sub createTOC()
Dim ws As Worksheet, wsNw As Worksheet
Dim n As Integer
Set wsNw =
ActiveWorkbook.Worksheets.Add(Before:=ActiveWorkbook.Sheets(1))
With wsNw
starter:
On Error GoTo errHandler
.Name = "TOC"
On Error GoTo 0
.[a1] = "Table Of Contents"
.[a2] = ActiveWorkbook.Name & " Worksheets"
.[a1].Font.Size = 14
.[a2].Font.Size = 10
n = 4
For Each ws In ActiveWorkbook.Worksheets
If ws.Name <> .Name And ws.Visible = True Then
.Cells(n, 1) = ws.Name
.Hyperlinks.Add _
Anchor:=.Cells(n, 1), _
Address:="", _
SubAddress:="'" & ws.Name & "'!A1"
n = n + 1
End If
Next
End With
Columns("A:A").EntireColumn.AutoFit
Exit Sub
errHandler: Application.DisplayAlerts = False
Sheets("TOC").Delete
Application.DisplayAlerts = True
GoTo starter
Error1:
MsgBox "No workbook open", vbCritical, "Error"
End Sub

maijiuli wrote:
> Hello,
>
> I have a workbook with 120 worksheets. I created an Index worksheet with
> all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> hyperlink the index names to the worksheets. The worksheets and the index
> are named exactly the same. Thanks for looking,
>
> Mj
> --
> Thank You!


 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      10th Sep 2007
Create a dropdrown object and attach a list to it using the range then on the
change event type:

Private Sub ComboBox1_Change()

WkName=Range(LinkedCell) ' The linked cell is the same you have selected on
the ComboBox Properties.
Worksheets(wkName).select

End Sub




--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"maijiuli" wrote:

> Hello,
>
> I have a workbook with 120 worksheets. I created an Index worksheet with
> all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> hyperlink the index names to the worksheets. The worksheets and the index
> are named exactly the same. Thanks for looking,
>
> Mj
> --
> Thank You!

 
Reply With Quote
 
=?Utf-8?B?bWFpaml1bGk=?=
Guest
Posts: n/a
 
      10th Sep 2007
Thank you. A lot of stuff to go through but the answer is within.
--
Thank You!


"JE McGimpsey" wrote:

> Take a look here:
>
> http://www.mvps.org/dmcritchie/excel/buildtoc.htm
>
> In article <DAC4A5D6-0EE5-40E7-A2EA-(E-Mail Removed)>,
> maijiuli <(E-Mail Removed)> wrote:
>
> > Hello,
> >
> > I have a workbook with 120 worksheets. I created an Index worksheet with
> > all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> > hyperlink the index names to the worksheets. The worksheets and the index
> > are named exactly the same. Thanks for looking,
> >
> > Mj

>

 
Reply With Quote
 
=?Utf-8?B?bWFpaml1bGk=?=
Guest
Posts: n/a
 
      10th Sep 2007
Thanks JW, exactly what I was looking for.
--
Thank You!


"JW" wrote:

> Here's a little VB routine I use to create a TOC sheet. HTH
> Sub createTOC()
> Dim ws As Worksheet, wsNw As Worksheet
> Dim n As Integer
> Set wsNw =
> ActiveWorkbook.Worksheets.Add(Before:=ActiveWorkbook.Sheets(1))
> With wsNw
> starter:
> On Error GoTo errHandler
> .Name = "TOC"
> On Error GoTo 0
> .[a1] = "Table Of Contents"
> .[a2] = ActiveWorkbook.Name & " Worksheets"
> .[a1].Font.Size = 14
> .[a2].Font.Size = 10
> n = 4
> For Each ws In ActiveWorkbook.Worksheets
> If ws.Name <> .Name And ws.Visible = True Then
> .Cells(n, 1) = ws.Name
> .Hyperlinks.Add _
> Anchor:=.Cells(n, 1), _
> Address:="", _
> SubAddress:="'" & ws.Name & "'!A1"
> n = n + 1
> End If
> Next
> End With
> Columns("A:A").EntireColumn.AutoFit
> Exit Sub
> errHandler: Application.DisplayAlerts = False
> Sheets("TOC").Delete
> Application.DisplayAlerts = True
> GoTo starter
> Error1:
> MsgBox "No workbook open", vbCritical, "Error"
> End Sub
>
> maijiuli wrote:
> > Hello,
> >
> > I have a workbook with 120 worksheets. I created an Index worksheet with
> > all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> > hyperlink the index names to the worksheets. The worksheets and the index
> > are named exactly the same. Thanks for looking,
> >
> > Mj
> > --
> > Thank You!

>
>

 
Reply With Quote
 
=?Utf-8?B?bWFpaml1bGk=?=
Guest
Posts: n/a
 
      10th Sep 2007
Thanks for looking Michael. JW's answer did the trick already.
--
Thank You!


"Michael" wrote:

> Create a dropdrown object and attach a list to it using the range then on the
> change event type:
>
> Private Sub ComboBox1_Change()
>
> WkName=Range(LinkedCell) ' The linked cell is the same you have selected on
> the ComboBox Properties.
> Worksheets(wkName).select
>
> End Sub
>
>
>
>
> --
> If this posting was helpful, please click on the Yes button.
> Regards,
>
> Michael Arch.
>
>
>
>
> "maijiuli" wrote:
>
> > Hello,
> >
> > I have a workbook with 120 worksheets. I created an Index worksheet with
> > all of the names of each worksheet (A2-A121). Now I wish to somehow easily
> > hyperlink the index names to the worksheets. The worksheets and the index
> > are named exactly the same. Thanks for looking,
> >
> > Mj
> > --
> > Thank You!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAKE A LIST OF NAMES FROM REPEATED NAMES IN THE SAME WORKSHEET r.kordahi Microsoft Excel Misc 2 3rd Jan 2009 08:10 AM
List of worksheet names =?Utf-8?B?dG9y?= Microsoft Excel Misc 4 20th Mar 2007 07:55 PM
find names on list 1 in list 2. list 1 4000 names list 2 400 name =?Utf-8?B?RWQ=?= Microsoft Excel Worksheet Functions 1 4th Sep 2005 12:48 AM
How to make List created refer by another worksheet data? Agung Widodo Microsoft Excel Discussion 1 12th May 2005 04:37 PM
want all worksheet names as a list of names (text) on one workshee =?Utf-8?B?dmljdG9yeQ==?= Microsoft Excel Worksheet Functions 11 26th Aug 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:42 AM.