+ Reply to Thread
Results 1 to 4 of 4

VBA macro to create a copy of a file as CSV format

  1. #1
    Registered User
    Join Date
    03-26-2020
    Location
    Dublin
    MS-Off Ver
    2019
    Posts
    2

    Question VBA macro to create a copy of a file as CSV format

    Hello all,

    I really hope to find a solution to a tricky task.

    I have to work in a shared excel sheet with a few people editing it.
    What I am looking for is a macro, that when updates are ready to go, changes are safed as XLSM and a copy of what's been done as .csv file in the background. I want to stay in the is excel sheet and continue working and do the updates when needed the same way later.
    The macro should be available for every user.

    Is this possible?

    I need the csv file as we are running a script were xls is not allowed. But csv does not allow to share etc.
    Any questions, please ask.

    Thanks for your input, stay safe,
    2Dizzy

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: VBA macro to create a copy of a file as CSV format


    Hi,

    you can even operate manually just with the Save As Excel feature selecting the CSV file type
    or if really you need a VBA procedure use the Workbooks.SaveAs method …

  3. #3
    Registered User
    Join Date
    03-26-2020
    Location
    Dublin
    MS-Off Ver
    2019
    Posts
    2

    Re: VBA macro to create a copy of a file as CSV format

    Hi Mark,
    ,
    the problem I have when saving as, is that it leaves me in the csv file, but I need to stay in the excel sheet
    and continue working while the csv file can be accessed by the scipt.

    Thanks,
    2Dizzy

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: VBA macro to create a copy of a file as CSV format


    So the kid logic says to just start with the Workbooks.SaveCopyAs method to create first a temporary workbook
    then open this temp workbook then SaveAs CSV then close, that's all folks !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-11-2019, 12:02 AM
  2. macro create file copy
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2019, 12:09 PM
  3. Macro to create a copy of XlSB file and save as XLSX file without any formulas.
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2016, 03:11 AM
  4. Replies: 1
    Last Post: 12-09-2014, 07:17 AM
  5. Macro which create a copy of file during saving
    By neke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2010, 04:33 AM
  6. Macro to create copy of a .xls file (Beginner)
    By Yaz Patel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2008, 10:30 AM
  7. Replies: 1
    Last Post: 10-17-2005, 04:05 AM

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