+ Reply to Thread
Results 1 to 4 of 4

Save to xlsx format to remove macros without VB Project dialog box

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2007
    Posts
    8

    Save to xlsx format to remove macros without VB Project dialog box

    I am trying to save a file from a macro enabled file into 'xlsx' format and automatically answer 'Yes' to the VB Project dialog box that comes up to warn about the removal of macros.

    The object of the exercise is to save only the worksheet to the output file without any of the VB project files.

    Saving the file as xlsx is easy enough with the normal VBA saveas routine but is there a way that I can automatically answer the VB Project warning dialog basic so that the dialog box does not appear and the output file save completes seamlessly like an ordinary save.

    Thanks,
    Jon
    Last edited by jecook; 06-14-2010 at 05:57 AM. Reason: Problem solved

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Save to xlsx format to remove macros without VB Project dialog box

    Since the default answer is Yes (the one you want), you can use displayalerts:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-14-2010
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2007
    Posts
    8

    Smile Re: Save to xlsx format to remove macros without VB Project dialog box

    Quote Originally Posted by romperstomper View Post
    Since the default answer is Yes (the one you want), you can use displayalerts:
    Please Login or Register  to view this content.
    Just the job, many thanks
    Jon

  4. #4
    Registered User
    Join Date
    06-26-2013
    Location
    mexico
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Save to xlsx format to remove macros without VB Project dialog box

    Thanks romperstomper! been looking for a lot of time how to fix it and was very simple.
    Cheers, from Mexico

+ 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