Results 1 to 11 of 11

Saving CSV file and sending to a folder over and over again

Threaded View

  1. #1
    Registered User
    Join Date
    12-12-2003
    Posts
    79

    Saving CSV file and sending to a folder over and over again

    Thanks for any help in advance

    I have this code

    Sub save_file_as()
    Sheets("CSV").Select
            ActiveWorkbook.SaveAs Filename:= _
            Range("'MATCH SETUP'!B34").Value & ".csv", FileFormat:= _
            xlCSV
              Sheets("Calculator").Select
    End Sub
    so when i run this macro it saves the sheet caleed CSV as CSV file as a name from another sheet which changes all the time,, this works ok

    however my problem is this only works once because when i run the macro again it cant find the Sheet called CSV anymore because it has renamed it from the previous running of the macro

    so i need to be able to run the macro whenever i want over and over again

    also it would be good not only could i save it by running the macro via a form button but also say it saves itself every 10 seconds, that would be a bonus

    hope ive explained it well


    thanks
    scott
    Last edited by scottymelloty; 01-14-2009 at 08:57 AM.

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