+ Reply to Thread
Results 1 to 3 of 3

copy module and past module in new workbook

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    copy module and past module in new workbook

    Hi guys,

    I've got a beautifull code that works perfect for sending a workbook. Now I want to copy a module from my source book to the destination workbook but it doesn't succeed : ( the module that I want to copy is module 10 (sub check_files). Please help. Below the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy module and past module in new workbook

    Hi flunzy,

    Is the destination workbook macro-enabled??
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: copy module and past module in new workbook

    Quote Originally Posted by xladept View Post
    Hi flunzy,

    Is the destination workbook macro-enabled??
    Hi XL adept,

    The destination workbook is macro-enabled. I've made a workaround that partly does the trick. I've saved the module on a fixed location and added a macro that imports the module. This succeeds but when the module is imported and linked to the button, it states that the macro is only available in original sheet : ( Below you find the codes

    The send option:

    Please Login or Register  to view this content.
    and this is the module that needs to be imported:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code to Copy a Module from on Workbook to another not working?
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2013, 10:48 AM
  2. How do I copy a macro module to another workbook?
    By Joe Miller in forum Excel General
    Replies: 10
    Last Post: 06-16-2010, 01:19 PM
  3. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  4. How to copy module form one workbook to another
    By deepakmehta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2006, 05:10 PM
  5. [SOLVED] Run worksheet module code from workbook module?
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2005, 12:05 AM

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