PC Review


Reply
Thread Tools Rate Thread

copying code from personal folder

 
 
Anders
Guest
Posts: n/a
 
      14th Aug 2009
Hi All,

In xl03, my macro creates a new workbook, formats it and begins pasting data
from other sources. What I would like to do is at the beginning of the
macro, insert code from a module in my personal macro folder into the newly
created sheet's code (not add a module, but paste to the sheet's code). I've
tried recording it, but it only shows the open/close. I saw another post
from someone else on here that linked to a dead site. I could also store the
desired code in another workbook to access it, but still can't get to the
editing sheet code part.

TIA,
Anders
 
Reply With Quote
 
 
 
 
Matthew Herbert
Guest
Posts: n/a
 
      14th Aug 2009
On Aug 14, 11:30*am, Anders <And...@discussions.microsoft.com> wrote:
> Hi All,
>
> In xl03, my macro creates a new workbook, formats it and begins pasting data
> from other sources. *What I would like to do is at the beginning of the
> macro, insert code from a module in my personal macro folder into the newly
> created sheet's code (not add a module, but paste to the sheet's code). *I've
> tried recording it, but it only shows the open/close. *I saw another post
> from someone else on here that linked to a dead site. *I could also store the
> desired code in another workbook to access it, but still can't get to the
> editing sheet code part.
>
> TIA,
> Anders


Anders,

See Chip's site. Note though, that this will require you to trust
access to the VBA project object model, so be careful with what you
are doing.

http://www.cpearson.com/Excel/vbe.aspx

Best,

Matthew Herbert
 
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
Copying contast to personal folder file =?Utf-8?B?ZHJld3N1bW0=?= Microsoft Outlook Discussion 4 16th Sep 2007 06:02 PM
copying the personal folder =?Utf-8?B?UmljaGFyZCBL?= Microsoft Outlook Contacts 1 29th May 2006 08:24 PM
copying of calendar from personal folder to Exchange svr Jimmy Microsoft Outlook Discussion 2 1st Jul 2005 02:52 PM
Copying emails from personal folder to the Server mailbox =?Utf-8?B?VG9t?= Microsoft Outlook Discussion 0 16th Jul 2004 01:23 AM
Outlook 2000 - copying personal folder files cat Microsoft Outlook 0 20th Jan 2004 08:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 AM.