+ Reply to Thread
Results 1 to 3 of 3

Save as XML File msg !! (Macros)

  1. #1
    Registered User
    Join Date
    11-14-2005
    Posts
    9

    Save as XML File msg !! (Macros)

    I have a xls file with a macro, when i run the macro and i open another xls file and i need to save as xls file and xml file.

    i try to save as xml file, but always a msg box appear to tell me that the xml file was save w/o the vb project (macros) i need to click yes.

    Theres an auto way to do that using macros of course.

    ActiveWorkbook.SaveAs Filename:=LogDia, FileFormat:=xlXMLSpreadsheet, ReadOnlyRecommended:=True

    any idea ??

    Thanks
    Ricardo

  2. #2
    Tim Williams
    Guest

    Re: Save as XML File msg !! (Macros)

    Try:

    Application.Displayalerts = False
    'save
    Application.Displayalerts = True

    Tim


    "rvillanueva" <rvillanueva.271rsa_1146350102.1292@excelforum-nospam.com> wrote in message
    news:rvillanueva.271rsa_1146350102.1292@excelforum-nospam.com...
    >
    > I have a xls file with a macro, when i run the macro and i open another
    > xls file and i need to save as xls file and xml file.
    >
    > i try to save as xml file, but always a msg box appear to tell me that
    > the xml file was save w/o the vb project (macros) i need to click yes.
    >
    > Theres an auto way to do that using macros of course.
    >
    > ActiveWorkbook.SaveAs Filename:=LogDia, FileFormat:=xlXMLSpreadsheet,
    > ReadOnlyRecommended:=True
    >
    > any idea ??
    >
    > Thanks
    > Ricardo
    >
    >
    > --
    > rvillanueva
    > ------------------------------------------------------------------------
    > rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
    > View this thread: http://www.excelforum.com/showthread...hreadid=537515
    >




  3. #3
    Registered User
    Join Date
    11-14-2005
    Posts
    9

    Thumbs up Thanks

    Tim , i test and works fine. Excellent

    Thanks you very much !!!

+ 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