#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default current worksheet

Hi

How do i use VB code to find name of current worksheet. I run same macro
from different sheets to copy data to another. I want the code to figure out
the current worksheet and make reference to this sheet in a paste area

thansk
--
Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default current worksheet

Try this

myname = ActiveSheet.Name

Mike

"Kevin" wrote:

Hi

How do i use VB code to find name of current worksheet. I run same macro
from different sheets to copy data to another. I want the code to figure out
the current worksheet and make reference to this sheet in a paste area

thansk
--
Kevin

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
How do I describe the current worksheet? Martin Harriss Excel Worksheet Functions 4 February 23rd 07 06:00 PM
'Save current worksheet'; 'Open next worksheet' - two command buttons englishmustard Excel Discussion (Misc queries) 1 April 7th 06 12:54 PM
I need current value of one worksheet into another cell? Ryan Excel Worksheet Functions 7 March 26th 06 11:58 PM
Updating different worksheet with value on current worksheet AMarie Excel Worksheet Functions 2 October 13th 05 06:16 PM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM


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

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"