+ Reply to Thread
Results 1 to 2 of 2

Macro that save the file base on cell value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Macro that save the file base on cell value

    Hi,

    I have this macro which works but I like to extend it to if the file name already exits then it show the message to user and did not do anything, also if the cell a1 and b1 are empty it ask user to fill this out before it run.

    here is my code
    Public Sub SaveAsA1()
    ThisFile = Range("A1").Value
    ThisPath = Range("B1").Value
    
    ActiveWorkbook.SaveAs Filename:=ThisPath & ThisFile
    End Sub
    Thanks,
    RR

  2. #2
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Re: Macro that save the file base on cell value

    Bumped up , any Suggestions
    Last edited by robrobet; 04-02-2015 at 04:39 PM.

+ 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] Save file as macro-enabled with path and file name from a cell
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2015, 11:51 PM
  2. Macro to create a file from base file if data is availabe in defined columns
    By shansakhi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2014, 10:55 PM
  3. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  4. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  5. Macro to save a file with a pre file name + week number from a cell
    By The.Dutchmaster in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 03:54 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