PC Review


Reply
Thread Tools Rate Thread

Copy Sheet Object Module

 
 
=?Utf-8?B?Rmlsbw==?=
Guest
Posts: n/a
 
      23rd May 2007
Hello,
I have both a sheet object module and a standard module that I need to copy
to all workbooks in a folder. What would be the code to help me accomplish
that? Any help/suggestion wold be appreciated. Thank you.

Filo
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      23rd May 2007
Depending if you mean manually:
The standard module you can export, then import into each of the WBs
The sheet needs to be copied to each of the WBs, as it cannot "live" outside
of a WB, if you need the WS data. If you only need the code, you can export
it and it will become a class module, which you can then import.
The destination WBs will need to be open to import.

If you mean by code:
http://www.cpearson.com/excel/vbe.htm

NickHK

"Filo" <(E-Mail Removed)> wrote in message
news361FB22-DF5D-4A40-993D-(E-Mail Removed)...
> Hello,
> I have both a sheet object module and a standard module that I need to

copy
> to all workbooks in a folder. What would be the code to help me accomplish
> that? Any help/suggestion wold be appreciated. Thank you.
>
> Filo



 
Reply With Quote
 
=?Utf-8?B?Rmlsbw==?=
Guest
Posts: n/a
 
      23rd May 2007
Thank you. I needed the 'with code' option and found everything I needed
at Chip Peasrson's site
http://www.cpearson.com/excel/vbe.htm
Awesome!


"NickHK" wrote:

> Depending if you mean manually:
> The standard module you can export, then import into each of the WBs
> The sheet needs to be copied to each of the WBs, as it cannot "live" outside
> of a WB, if you need the WS data. If you only need the code, you can export
> it and it will become a class module, which you can then import.
> The destination WBs will need to be open to import.
>
> If you mean by code:
> http://www.cpearson.com/excel/vbe.htm
>
> NickHK
>
> "Filo" <(E-Mail Removed)> wrote in message
> news361FB22-DF5D-4A40-993D-(E-Mail Removed)...
> > Hello,
> > I have both a sheet object module and a standard module that I need to

> copy
> > to all workbooks in a folder. What would be the code to help me accomplish
> > that? Any help/suggestion wold be appreciated. Thank you.
> >
> > Filo

>
>
>

 
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
simple macro to copy a sheet, object undefined error Excel-General Microsoft Excel Discussion 7 19th Jan 2008 01:39 AM
Right-Click Sheet, Move or Copy, & Class Module =?Utf-8?B?cnlndXk3Mjcy?= Microsoft Excel Programming 1 2nd Jul 2007 04:30 AM
How to copy an image object to new location in shame sheet, Excel. Asko Telinen Microsoft Excel Programming 3 18th Mar 2007 10:37 AM
Protect excel sheet and still copy text or object w/o unprotectin. =?Utf-8?B?U2FpbnQ=?= Microsoft Excel Misc 2 29th May 2006 12:44 AM
Copy Rectangle Object From One Sheet To Another =?Utf-8?B?R2VvcmdlRg==?= Microsoft Excel Misc 0 24th May 2005 07:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.