Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Query sheet to activate

The statement

sheet1.activate

activates an explicit worksheet.

How can I write the statement for a general sheet number, where the
number, n, is a response to an InputBox?

Integer n
n = InputBox("Which worksheet do you want to jump to?")

The code in a statement isn't something I can concatenate as a string
variable??

Thanks,

Fred Holmes
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Query sheet to activate

Hi
try
worksheets(your_number).activate

--
Regards
Frank Kabel
Frankfurt, Germany

"Fred Holmes" schrieb im Newsbeitrag
...
The statement

sheet1.activate

activates an explicit worksheet.

How can I write the statement for a general sheet number, where the
number, n, is a response to an InputBox?

Integer n
n = InputBox("Which worksheet do you want to jump to?")

The code in a statement isn't something I can concatenate as a string
variable??

Thanks,

Fred Holmes


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Query sheet to activate

Works just fine.

Many thanks,

Fred Holmes

On Tue, 6 Apr 2004 01:08:04 +0200, "Frank Kabel"
wrote:

Hi
try
worksheets(your_number).activate


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
Activate Sheet After Move Macro jlclyde Excel Discussion (Misc queries) 2 December 17th 08 07:27 PM
Activate the top of sheet AD108 Excel Worksheet Functions 2 July 30th 06 05:27 PM
how would activate the previous sheet in macro Vicky Excel Discussion (Misc queries) 1 May 27th 06 09:18 AM
Activate sheet event Mike Fogleman Excel Programming 5 January 18th 04 11:02 PM
Check activate sheet efi[_7_] Excel Programming 2 October 28th 03 03:21 PM


All times are GMT +1. The time now is 11:49 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"