ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   current worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/178010-current-worksheet.html)

Kevin

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

Mike H

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



All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com