Capture current WS Name?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to run a Macro that starts in "the current" WS, briefly jumps to a
different WS (always the same one) Grabs the Format of a particular Column,
and returns to do a Paste Special. I need to be able to capture the Name of
the current WS into a Variable at the top of the Macro, so that I can return
to the correct WS to continue.

Help, please!
 
Why bother to waste time and effort by going there.

Sub copysh8colhformat()
Sheets("sheet6").Columns("H").Copy
Columns(ActiveCell.Column).PasteSpecial Paste:=xlPasteFormats
End Sub
 
Thanks to both of you -- now I have the direct answer to my question, should
I ever need to use it in some other context, and your solution which is
application specific, and slicker 'n a pig in poop <g>!
--
Dave
Temping with Staffmark
in Rock Hill, SC


Don Guillett said:
Why bother to waste time and effort by going there.

Sub copysh8colhformat()
Sheets("sheet6").Columns("H").Copy
Columns(ActiveCell.Column).PasteSpecial Paste:=xlPasteFormats
End Sub
 
I might have preferred a cleaner kudo. You're not a Texas Aggie, by chance.

--
Don Guillett
SalesAid Software
(e-mail address removed)
Dave Birley said:
Thanks to both of you -- now I have the direct answer to my question,
should
I ever need to use it in some other context, and your solution which is
application specific, and slicker 'n a pig in poop <g>!
 
No, actually -- Canadian by birth, British by heritage, and South Carolinian
by the Grace of God <g>!
 

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