ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding the current worksheet name (https://www.excelbanter.com/excel-programming/347301-finding-current-worksheet-name.html)

wild_fish99

Finding the current worksheet name
 

Is there any function in visual basic that will return the current
worksheet name? I am currently working on a program that tries to
assign it to a variable and I cannot seem to get the syntax right.
:confused:

If anyone can help that would be great.

Thanks in advance!


--
wild_fish99
------------------------------------------------------------------------
wild_fish99's Profile: http://www.excelforum.com/member.php...fo&userid=8345
View this thread: http://www.excelforum.com/showthread...hreadid=490639


Tom Ogilvy

Finding the current worksheet name
 
myvar = Activesheet.Name

--
Regards,
Tom Ogilvy


"wild_fish99"
wrote in message
...

Is there any function in visual basic that will return the current
worksheet name? I am currently working on a program that tries to
assign it to a variable and I cannot seem to get the syntax right.
:confused:

If anyone can help that would be great.

Thanks in advance!


--
wild_fish99
------------------------------------------------------------------------
wild_fish99's Profile:

http://www.excelforum.com/member.php...fo&userid=8345
View this thread: http://www.excelforum.com/showthread...hreadid=490639




wild_fish99[_2_]

Finding the current worksheet name
 

Thanks!! :)


--
wild_fish99
------------------------------------------------------------------------
wild_fish99's Profile: http://www.excelforum.com/member.php...fo&userid=8345
View this thread: http://www.excelforum.com/showthread...hreadid=490639



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

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