+ Reply to Thread
Results 1 to 4 of 4

VBA to Save File

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    VBA to Save File

    Hello,

    I have a file that I use as a template called "..2018.Week nn (Device) .. CCI".
    On a weekly basis, I copy the results from a report into this file and re-name to the correct week number.

    I have a macro setup as a button on my ribbon that I run that checks to see if the file has been saved since being opened and if not prompts to be saved;
    Please Login or Register  to view this content.
    The first section works fine, it prompts me to save the file but when I click 'save' it saves it as the original file name. When I check the location I have saved the file to, the new file doesn't exist as if it doesn't recognise the save command.

    I have created a small test file and attached. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: VBA to Save File

    When you are useing the SaveAS dialog box, you are just getting a string for the name to save as, you would still require a saveas command
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: VBA to Save File

    HI, thanks for the quick response. At the risk of looking daft I have another question, where does your code sit within the code I already have.? Thanks again.

  4. #4
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: VBA to Save File

    It's OK - I've worked it out .... Works great - thanks :-D

+ 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. file save as tab delimited change to direct file save
    By bkanealy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2016, 02:15 PM
  2. save as which remains the master file and save new file
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2015, 04:13 AM
  3. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  4. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  5. Save as macro that specifies file type, file location and takes file name from three cells
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-13-2013, 10:09 PM
  6. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  7. Replies: 0
    Last Post: 03-09-2005, 06:06 PM

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