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


Hi,

I need to know the command to record a sheet to a variable. So i ca
run a macro which will return to the same sheet it started it.

something like:

a = presentSheet.Value

Thx a lo

--
kanuva
-----------------------------------------------------------------------
kanuvas's Profile: http://www.excelforum.com/member.php...fo&userid=2791
View this thread: http://www.excelforum.com/showthread.php?threadid=48481

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Command for present sheet

Hi Kanuvas,

Try:

Dim Sh as Worksheet

Set Sh = ActiveSheet


---
Regards,
Norman



"kanuvas" wrote in
message ...

Hi,

I need to know the command to record a sheet to a variable. So i can
run a macro which will return to the same sheet it started it.

something like:

a = presentSheet.Value

Thx a lot


--
kanuvas
------------------------------------------------------------------------
kanuvas's Profile:
http://www.excelforum.com/member.php...o&userid=27911
View this thread: http://www.excelforum.com/showthread...hreadid=484816



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command for present sheet


Thank you for the quick response

Using that how do i then select that sheet

something like:

sh.select


--
kanuvas
------------------------------------------------------------------------
kanuvas's Profile: http://www.excelforum.com/member.php...o&userid=27911
View this thread: http://www.excelforum.com/showthread...hreadid=484816

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
Locating if a Sheet is present in a workbook Shane Excel Discussion (Misc queries) 3 October 29th 09 08:20 PM
testing whether a sheet is present Jeff Excel Programming 3 August 14th 05 04:07 PM
How do I create a command button to jump from sheet to sheet in a. Darlenew Excel Worksheet Functions 3 March 22nd 05 10:36 PM
getting the sheet names present in a work book???? Reny J Joseph Thuthikattu Excel Programming 2 December 12th 04 05:30 AM
finding a value thats present more than once in a sheet monika Excel Programming 2 March 3rd 04 05:34 PM


All times are GMT +1. The time now is 02:41 PM.

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

About Us

"It's about Microsoft Excel"