PC Review


Reply
Thread Tools Rate Thread

Capture current WS Name?

 
 
=?Utf-8?B?RGF2ZSBCaXJsZXk=?=
Guest
Posts: n/a
 
      8th May 2007
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!
--
Dave
Temping with Staffmark
in Rock Hill, SC
 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      8th May 2007
Activesheet.Name

Merjet


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      8th May 2007


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

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Dave Birley" <(E-Mail Removed)> wrote in message
news:B375A619-743E-4603-AB7A-(E-Mail Removed)...
>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!
> --
> Dave
> Temping with Staffmark
> in Rock Hill, SC


 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBCaXJsZXk=?=
Guest
Posts: n/a
 
      8th May 2007
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" wrote:

>
>
> 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
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Dave Birley" <(E-Mail Removed)> wrote in message
> news:B375A619-743E-4603-AB7A-(E-Mail Removed)...
> >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!
> > --
> > Dave
> > Temping with Staffmark
> > in Rock Hill, SC

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      8th May 2007
I might have preferred a cleaner kudo. You're not a Texas Aggie, by chance.
<G>
>>slicker 'n a pig in poop


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Dave Birley" <(E-Mail Removed)> wrote in message
news:2CEE7BD3-5F98-418F-9F9E-(E-Mail Removed)...
> 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" wrote:
>
>>
>>
>> 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
>>
>> --
>> Don Guillett
>> SalesAid Software
>> (E-Mail Removed)
>> "Dave Birley" <(E-Mail Removed)> wrote in message
>> news:B375A619-743E-4603-AB7A-(E-Mail Removed)...
>> >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!
>> > --
>> > Dave
>> > Temping with Staffmark
>> > in Rock Hill, SC

>>
>>


 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBCaXJsZXk=?=
Guest
Posts: n/a
 
      8th May 2007
No, actually -- Canadian by birth, British by heritage, and South Carolinian
by the Grace of God <g>!
--
Dave
Temping with Staffmark
in Rock Hill, SC


"Don Guillett" wrote:

> I might have preferred a cleaner kudo. You're not a Texas Aggie, by chance.
> <G>
> >>slicker 'n a pig in poop

>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Dave Birley" <(E-Mail Removed)> wrote in message
> news:2CEE7BD3-5F98-418F-9F9E-(E-Mail Removed)...
> > 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" wrote:
> >
> >>
> >>
> >> 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
> >>
> >> --
> >> Don Guillett
> >> SalesAid Software
> >> (E-Mail Removed)
> >> "Dave Birley" <(E-Mail Removed)> wrote in message
> >> news:B375A619-743E-4603-AB7A-(E-Mail Removed)...
> >> >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!
> >> > --
> >> > Dave
> >> > Temping with Staffmark
> >> > in Rock Hill, SC
> >>
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you capture the name of the current worksheet in VBA? Paul Microsoft Excel Programming 12 29th Sep 2009 01:39 AM
How do you capture the name of the current worksheet in VBA? Paul Microsoft Access Form Coding 9 29th Sep 2009 01:36 AM
How to Capture the Name of the Current Control Randy Microsoft VB .NET 4 11th May 2007 04:46 AM
capture the current user alecarnero Microsoft Access VBA Modules 2 12th Mar 2004 01:26 PM
Current User capture RJ Microsoft Outlook Form Programming 1 18th Sep 2003 12:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:55 PM.