+ Reply to Thread
Results 1 to 3 of 3

Save sheet as CSV while keeping original file open?

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    17

    Save sheet as CSV while keeping original file open?

    Hello,

    I have a small workbook with a few sheets where people enter purchase orders, for which I have a userform. Sometimes people will enter 1, sometimes they could enter up to 10 at a time. Everything is working really well, many thanks to my lurking the forum. I have hopefully my final problem before my project is complete. I have two modules, one where it saves a specific sheet as a pdf in a specific location which works great. I also have a module where it saves another sheet as a CSV, which works, just not the way I need it to, and I am not even sure I can get it to work that way.

    I have a dependent cell that calls the module with the following code:
    Please Login or Register  to view this content.
    My problem is that when this module is called, the original file PO.xlsm switches to the new file name in the J drive and is now a csv, making all the vba incompatible. The file is protected so I am not concerned about losing the file, my concern is that if a person has multiple purchase orders to process they have to close the csv file and then reopen the original xlsm file. I would be fine having the csv emailed or saved in the directory, I just hope there is a way to prevent the file switch on the save.

    Grant
    Last edited by Leith Ross; 04-04-2014 at 03:08 PM. Reason: Added Code Tags

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Save sheet as CSV while keeping original file open?

    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Save sheet as CSV while keeping original file open?

    Hi gj,

    Try the following:
    Please Login or Register  to view this content.
    Lewis

+ 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. Save file as copy while still having original still open
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2013, 03:40 PM
  2. [SOLVED] Problem to re-open original file after save as macro has run
    By Luli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2012, 01:08 PM
  3. Macro to keep original file open, not 'save as' file
    By LonestarGuy in forum Excel General
    Replies: 4
    Last Post: 06-09-2010, 03:53 PM
  4. Replies: 1
    Last Post: 08-15-2005, 06:05 PM
  5. Save sheet as new file w/o refs to original?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2005, 02:06 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