+ Reply to Thread
Results 1 to 6 of 6

Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    Sydney
    MS-Off Ver
    14
    Posts
    3

    Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

    To explain a little better what I need this for as its pretty different.
    Basically we run a live broadcast, and I essentially need someone answering phones and entering details of the phone callers into an XLS spreedsheet.
    Each time they update the sheet with some new caller details, i'd like them to be able to run a macro, which then saves that XLS as a CSV file.
    This CSV can then be read, by our broadcast equipment, reading out information to put caller details on screen.

    What i've noticed is that if you do saveas csv, it will shut your XLS document, and open the CSV its saving to.
    I cant have the CSV open, otherwise our broadcast equipment cant open the file. So i'm trying to have the CSV shut the moment its opened, and the original XLS reopened. Ready for that macro to be pressed again, after more data is changed and the process repeats.

    I'm running Mac Office 2011

    Any help is most appreciated!

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

    This link may be help to you...
    http://www.rondebruin.nl/win/s5/win001.htm
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  3. #3
    Registered User
    Join Date
    10-01-2014
    Location
    Sydney
    MS-Off Ver
    14
    Posts
    3

    Re: Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

    Took a look, but not sure how it helps?

  4. #4
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS


  5. #5
    Registered User
    Join Date
    10-01-2014
    Location
    Sydney
    MS-Off Ver
    14
    Posts
    3

    Re: Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

    I have a feeling I have partially solved it.

    I tell the macro to open the CSV first, copy paste the cells, then close the CSV. This seems to work. The only step the macros gets hung on is when you go to close a CSV it asks if you really want to save to this format? I dont know how to automate the press "yes" button.

    Any ideas on that?

  6. #6
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS

    Put this code under ThisWorkbook...
    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)

Similar Threads

  1. [SOLVED] How to save sheet data, close workbook, then reopen Original
    By SCHammer843 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2014, 01:11 PM
  2. Replies: 10
    Last Post: 04-18-2012, 10:33 AM
  3. Macro not working except in one tab, Must save and reopen to work in others.
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-17-2009, 02:25 PM
  4. save,close then reopen original
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2008, 02:32 PM
  5. Replies: 1
    Last Post: 07-04-2006, 04:20 PM

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