Results 1 to 6 of 6

Help on the use of SaveCopyAs command in Macro

Threaded View

  1. #1
    Registered User
    Join Date
    10-27-2016
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    5

    Question Help on the use of SaveCopyAs command in Macro

    Hello; I'm wirting a macro to create records in a formatted form for each row in a spreadsheet
    Everything works ok; I can create as many forms as rows are populated with information.
    The issue I'm encountering is that the SaveCopyAs command creates files in version 2003; so every time I open the new created files a dialogue box appears to validate the file is ok to open. I'm creating hundreds of records.
    I need help with my command line to create files in the same version I'm working on 2013.
    Can anybody please help with suggestion for a different approach?
    Thanks so much for your help.

    this is the saving script in my macro:
    -----------------------------------

     branch = x.Sheets("Sheet1").Cells(count, 2).Value
      
      newFileName = branch & "_ID" & count - 1 & ".xls"
    
     ThisWorkbook.SaveCopyAs "C:\Users\My Documents\Temp\" + newFileName
    ----------------------------------
    Last edited by jeffreybrown; 10-27-2016 at 08:08 PM. Reason: Please use code tags. Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] SaveCopyAs macro
    By silentcarl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2015, 09:02 AM
  2. [SOLVED] VBA / Macro help needed to SaveCopyAs workbook with specific sheets
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-27-2013, 02:33 PM
  3. Macro - SaveCopyAs and Remove VBA Code
    By Mahew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2011, 09:03 AM
  4. Macro To SaveCopyas and delete VBA Code From Excel Document
    By Mahew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2011, 02:01 PM
  5. Using macro to execute a command in Shell Command
    By aadarsh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2010, 07:06 PM
  6. SaveCopyAs
    By tmkkoservo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2007, 07:21 PM
  7. Having a SaveCopyAs macro update a database
    By tclarke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2005, 10:21 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