+ Reply to Thread
Results 1 to 3 of 3

Excel opens "Save As" document preventing macro from looping

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    SC,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel opens "Save As" document preventing macro from looping

    I have a macro that I intend to loop, but it's creates a CSV file at the end. Because I have to do a "Save As", it replaces my open .xlsm file with the newly saved .csv version.. Is there a way to prevent Excel from opening the CSV and continue through the loop?
    Last edited by punkn00dlez; 12-08-2010 at 04:50 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Excel opens "Save As" document preventing macro from looping

    Try using SaveCopyAs
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    SC,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    [SOLVED]: Excel opens "Save As" document preventing macro from looping

    SaveCopyAs doesn't support the CSV file format I don't think. you did set me on the right track and found another post which allowed me to accomplish what I was looking for. Thank you. I wound up using below.
    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)

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