LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA and determining which sheet the code is running under

Hi

I am calling code that resides within different sheets.
So I start on sheet1 and press a go button the go button calls a
function on sheet2, sheet3 etc. Within the code on sheet2 I need to
grab the name of sheet2. I cannot hard code it as the sheets maybe
renamed and I need the current sheet name. I have tried using
ActiveSheet but this returns sheet1.

Any ideas?

thanks

Jake
 
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
determining running counts phumpher Excel Worksheet Functions 5 August 22nd 09 10:33 PM
running code mark New Users to Excel 3 March 14th 05 09:14 AM
Determining the Selection on a non-active Sheet? Jim S.[_4_] Excel Programming 2 April 17th 04 03:59 AM
Running Code on Each Sheet in an Excel Workbook bearie Excel Programming 2 February 6th 04 03:54 PM
running VB code Cath[_3_] Excel Programming 1 November 21st 03 05:09 PM


All times are GMT +1. The time now is 01:36 AM.

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"