vba code

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

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
 
You are going to kick yourself...

xxx = activesheet.name

Everything is obvious when you see the answer. Nothing is obvious until
then...

HTH
 
Paul,

Dim S As String
S = ActiveSheet.Name


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top