+ Reply to Thread
Results 1 to 4 of 4

VBA to save worksheet with a prefined file path and file name

Hybrid View

KRUDA79 VBA to save worksheet with a... 05-15-2014, 03:46 AM
sunil.excel Re: VBA to save worksheet... 05-15-2014, 06:55 AM
KRUDA79 Re: VBA to save worksheet... 05-15-2014, 07:17 AM
KRUDA79 Re: VBA to save worksheet... 05-15-2014, 08:27 AM
  1. #1
    Registered User
    Join Date
    06-13-2007
    Posts
    5

    Question VBA to save worksheet with a prefined file path and file name

    Hi all,

    Can anyone help?

    I have a workbook which has four worksheets, I want to save the active worksheet (but start from row 10 to the end) to new workbook when user clicks the submit command button which is within the same worksheet.

    The file path must be predefined as S:\Timesheet\this part should fetch todays date in the format yyyy-mm-dd and add the text in cell c1. So for example…

    A user clicked the submit button and the save as is prompted with the file name and file path already defined.

    S:\Timesheet\2014-05-15 NEW1.xlsx

    Can anyone advise how I can achieve this.


    Many Thanks in advance.


  2. #2
    Registered User
    Join Date
    04-13-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: VBA to save worksheet with a prefined file path and file name

    Hi

    just see the attached file.......
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-13-2007
    Posts
    5

    Re: VBA to save worksheet with a prefined file path and file name

    Many Thanks for your reply Sunil.

    The macro works nicely however the text name New1 should be referenced to a cell and pickup the title within the cell. The cell is referenced from another worksheet so it won’t conflict the clear down code at the end.

    Cheers, Kiran

  4. #4
    Registered User
    Join Date
    06-13-2007
    Posts
    5

    Re: VBA to save worksheet with a prefined file path and file name

    Hi there,

    I am getting a VBA error message, please see attachment. Can anyone help?

    Thanks
    Attached Files Attached Files

+ 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 a file: Only need the path, don't want user to put in file name
    By skania in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2013, 12:06 PM
  2. Macro to save sheet as CSV using a dynamic file name and file path
    By chris.tinta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 10:45 AM
  3. file name and path save to another file
    By sm2irfan in forum Excel General
    Replies: 0
    Last Post: 01-31-2013, 08:45 AM
  4. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  5. Macros To Save Worksheet as New xlsx file & Save Another Worksheet As A Text File
    By KeithT in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-16-2011, 05:13 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