Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default go to sheet number

Errors are given in sheet numbers but the sheets have names not numbers.

How do you "go to" a sheet number? I have about 200 in a workbook.

Thanks
John
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7,247
Default go to sheet number

You can access a sheet by its position number. E.g.,

Sheets(10).Activate


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"John" wrote in message
...
Errors are given in sheet numbers but the sheets have names not
numbers.

How do you "go to" a sheet number? I have about 200 in a
workbook.

Thanks
John



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default go to sheet number

I didn't mean in vb. I'm in the workbook and want to go to sheet #32 but
the sheets only have names on them... no numbers.

Thanks
John

Chip Pearson wrote:
You can access a sheet by its position number. E.g.,

Sheets(10).Activate


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7,247
Default go to sheet number

There is no way to go to a sheet based on its index number
without using VBA or manually counting over that many sheets.

You could use the following macro and assign it to a shortcut
key.

Sub GoToSheetNumber()
Dim N As Long
N = Application.InputBox(prompt:="Enter a sheet number",
Type:=1)
If N < 1 Or N Sheets.Count Then
MsgBox "Invalid sheet number"
Else
Sheets(N).Select
End If
End Sub




--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"John" wrote in message
...
I didn't mean in vb. I'm in the workbook and want to go to sheet
#32 but the sheets only have names on them... no numbers.

Thanks
John

Chip Pearson wrote:
You can access a sheet by its position number. E.g.,

Sheets(10).Activate


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 48
Default go to sheet number

They are listed in the project window in vb thank God and easy to select
and go to. It also lists there all your vb modules but, of course, by
number not name. It's as if the designers purposely made it as obscure
as possible navigating around your workbooks.

I exported all my modules and renamed them and loaded them again so I
could identify them easily. MS promptly renamed them by module numbers.

John

Chip Pearson wrote:

There is no way to go to a sheet based on its index number
without using VBA or manually counting over that many sheets.

You could use the following macro and assign it to a shortcut
key.

Sub GoToSheetNumber()
Dim N As Long
N = Application.InputBox(prompt:="Enter a sheet number",
Type:=1)
If N < 1 Or N Sheets.Count Then
MsgBox "Invalid sheet number"
Else
Sheets(N).Select
End If
End Sub






  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default go to sheet number

On Mon, 24 Jul 2006 18:57:16 +0100, John wrote:

They are listed in the project window in vb thank God and easy to select
and go to. It also lists there all your vb modules but, of course, by
number not name. It's as if the designers purposely made it as obscure
as possible navigating around your workbooks.

I exported all my modules and renamed them and loaded them again so I
could identify them easily. MS promptly renamed them by module numbers..


You can just rename them - F4 - alter properties


John

Chip Pearson wrote:

There is no way to go to a sheet based on its index number without
using VBA or manually counting over that many sheets.
You could use the following macro and assign it to a shortcut key.
Sub GoToSheetNumber()
Dim N As Long
N = Application.InputBox(prompt:="Enter a sheet number", Type:=1)
If N < 1 Or N Sheets.Count Then
MsgBox "Invalid sheet number"
Else
Sheets(N).Select
End If
End Sub




--
Steve (3)
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
Pulling Data off Web - Need Function Help patfergie44 Excel Worksheet Functions 9 June 22nd 06 03:27 AM
Lookup function and compare Student Excel Discussion (Misc queries) 8 April 25th 06 03:11 PM
Search open sheets in workbook and insert into open sheet punx77 Excel Discussion (Misc queries) 0 March 6th 06 05:07 PM
Return number of current sheet Brandon Excel Worksheet Functions 3 April 26th 05 05:55 AM
automatic new serial number for each new sheet within one file ahmed Excel Worksheet Functions 1 February 26th 05 01:49 PM


All times are GMT +1. The time now is 10:17 PM.

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"