+ Reply to Thread
Results 1 to 12 of 12

save sheet as macro enabled workbook using codes

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    save sheet as macro enabled workbook using codes

    Hi.
    Working with a macro enabled workbook that has many sheets what would be a good code that would save Sheet1 into a new MACRO enabled workbook so that the 'Buttons' (which are linked to macros) on this specific sheet will be the only macros that will be copied to the new workbook as opposed to the rest of the macros that are found in different sheets?
    It sounds easy but I can't get it to work.

    Here is what I g=have:

    Please Login or Register  to view this content.
    Last edited by kosherboy; 01-28-2014 at 05:28 PM.

  2. #2
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: save sheet as macro enabled workbook using codes

    Please Login or Register  to view this content.
    Last edited by G e r a r d; 01-28-2014 at 05:44 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    Thanks! It worked but the macros are based off the old workbook and so the macro doesn't work. Is there a way to make it work for the new workbook?

  4. #4
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: save sheet as macro enabled workbook using codes

    Put the macro in the Sheet1 in stead of a module

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    How do I do that?

  6. #6
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: save sheet as macro enabled workbook using codes

    In the IDE project explorer ( Ctrl + R) you find the Sheet1, click on it so it opens. Place the macro there.

  7. #7
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    Hi. I think there is some progress. I did what you said and the code is now found in the new sheet, however, the problem now is that the 'button' on the new sheet does not link to the code?

  8. #8
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: save sheet as macro enabled workbook using codes

    Maybe posting a workbook example can bring some light to your problem.

  9. #9
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    TEST-1.xlsm

    Thank you.

  10. #10
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: save sheet as macro enabled workbook using codes

    Use activex button, then it will work see mod attachment

    TEST-1.xlsm

  11. #11
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    Seemed to have worked pretty good. How do I assign an activex button?

  12. #12
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: save sheet as macro enabled workbook using codes

    I got it! Thanks for all you help. Everything is now working smoothly.
    I'm really thankful to you

+ 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. [SOLVED] Set default Save-As parameter to Macro Enabled workbook
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-24-2013, 09:26 AM
  2. Macro to Save As for an Excel Macro Enabled workbook
    By hvitzthum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2013, 09:19 AM
  3. [SOLVED] VBA to save macro enabled workbook to regular workbook
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2013, 09:41 PM
  4. [SOLVED] Issue with VBA - Save as macro enabled workbook - address problem.
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2012, 08:14 AM
  5. Replies: 1
    Last Post: 04-01-2011, 05:02 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