+ Reply to Thread
Results 1 to 4 of 4

Error In Macro Code

  1. #1
    Registered User
    Join Date
    08-25-2004
    Posts
    82

    Error In Macro Code

    I have this code, i pulled it from a very informative site here http://www.cpearson.com/excel/vbe.htm

    here is the section that i am interested in

    ***********************
    Copying Modules Between Projects

    There isn't a single method to copy modules from one VBProject to another. Instead, you have to export the module from one project, and then import it into another. The following procedure will copy Module1 from Book2 to Book1.

    Please Login or Register  to view this content.
    *******************************

    when i try to use this code i get a range out of bounds error. Basically it can not find my book1 and book2 files. can anyone help me so i can figure out how to modify this code to have it select where to look for the .xls files?

    thanks
    Last edited by Leith Ross; 07-13-2013 at 02:07 AM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    10-25-2004
    Posts
    88
    Do you have access to VBProjects? By default Microsoft, never trusting anyone, diables this access.

    To enable it in Excel: Tools->Macros->Security->Trusted Sources tab: Checkbox on the bottom of that page: Trust Access to VBProjects

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    re: Error In Macro Code

    also, be sure that you enabled macros

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    re: Error In Macro Code

    greenfalcon,

    Please edit your thread to add code tags as required by the forum rules.
    You must use the tags when posting VBA code.

    Just highlight all of the code and press the # button to add the code tags
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1