+ Reply to Thread
Results 1 to 7 of 7

Saving XLSM as XLSX and removing buttons

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Saving XLSM as XLSX and removing buttons

    Quote Originally Posted by smuzoen View Post
    Please Login or Register  to view this content.
    Hope this helps
    So i found SMUZOEN provided this code for a question similar to mine but my spreadsheet will be going out to ~60 people, most of whom will try to push the VBA buttons (which, when saved as XLSX are useless) and get frusterated why they dont work.. Is there a way to get it to save as XLSX and remove the [Button(Form Control)]'s on all the sheets in the workbook? My workbooks contains 3-8 sheets per workbook so it's a bother to go through and delete every button, every time.
    Last edited by mrmarchuk; 03-09-2012 at 04:15 PM.

  2. #2
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Saving XLSM as XLSX and removing buttons

    awesome but i'm still noobish so where would i put this into ?

    my guess is right under SUB, that way it deletes before saving, correct?
    Last edited by mrmarchuk; 03-07-2012 at 01:28 PM.

  3. #3
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Saving XLSM as XLSX and removing buttons

    Correct (try it and see )
    Good luck.

  4. #4
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Saving XLSM as XLSX and removing buttons

    i tried
    Please Login or Register  to view this content.
    but it gave me a syntax error, sorry, i really am new at this

  5. #5
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Saving XLSM as XLSX and removing buttons

    hmm.. that command deletes the button that was created to delete the buttons and then no other buttons after that.. lol. any suggestions?

  6. #6
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Saving XLSM as XLSX and removing buttons

    Here's what i've got, should have probably uploaded this first thing
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-07-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Saving XLSM as XLSX and removing buttons

    Sweet! it works like a charm

    here's the end result, for others that might want something like this, all thanks to OnErroGoto0:::

    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)

Tags for this Thread

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