Thread: vba code
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default vba code

Paul,

Dim S As String
S = ActiveSheet.Name


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul" wrote in message
...
what is the code to have vba return the active sheet name
as a variable??

I tried:

dim xxx as string
xxx = worksheets.value

but no workie