+ Reply to Thread
Results 1 to 7 of 7

Change Macro to save File with Pay Period Number & Pay Date

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    44

    Change Macro to save File with Pay Period Number & Pay Date

    Here is my question: Is it possible to change a Macro save a file with Pay Period Number and pay Date? Here is the Macro I'm using Thanks for the help in advance.

    Please Login or Register  to view this content.
    [/CODE]
    Last edited by Robert1960; 08-09-2016 at 11:34 AM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Change Macro to save File with Pay Period Number & Pay Date

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    Where is the Pay Date in the file if A1 is the PayPeriod.

    Can you attach a sample workbook?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Change Macro to save File with Pay Period Number & Pay Date

    http://www.excelforum.com/attachment...1&d=1470685145 I don't have the Pay Date listed as yet...that is why I was asking how to change the Macro but here is a copy of my workbook
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-04-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Change Macro to save File with Pay Period Number & Pay Date

    Can someone Please tell me how to rewrite my macro to save as pay period Number and Pay Date. Pay Date is in Cell A10 I would like to have it when saved show pay period number the word pay period with date after. Thanks in advance for any help.



    Please Login or Register  to view this content.
    Last edited by Robert1960; 08-10-2016 at 05:48 PM.

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Change Macro to save File with Pay Period Number & Pay Date

    Please Login or Register  to view this content.
    Assuming you want a dash between them.

  6. #6
    Registered User
    Join Date
    03-04-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Change Macro to save File with Pay Period Number & Pay Date

    This is the Run-Time error I'm getting when I run the macro you give me : Run-Time error '1004': This extension can not be used with the selected file type. Change the file extension in the File name text box or select a different file type by changing the Save as type. When I run the mouse over SaveAs NewFN it shows Pay Period 1-1/11/2016 Excel does not like the date format how can I change it to look like 1-11-2016?

    Please Login or Register  to view this content.
    Last edited by Robert1960; 08-14-2016 at 11:17 AM.

  7. #7
    Registered User
    Join Date
    03-04-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Change Macro to save File with Pay Period Number & Pay Date

    I figured it out here are the changes I made from the above macro. Thanks for all the help

    Please Login or Register  to view this content.

+ 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. Replies: 4
    Last Post: 03-20-2016, 04:27 PM
  2. [SOLVED] Macro to save file - save name from cell containing a date using different date formatting
    By d_max_c in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2014, 12:18 PM
  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. Change Macro to save file in different folder
    By Marvelous in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 02:49 PM
  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
  6. Excel 2007 : Date change @ update only when file is save
    By adzareena in forum Excel General
    Replies: 5
    Last Post: 08-10-2011, 09:25 PM
  7. [SOLVED] Macro to save Excel file with date and time in the file name?
    By sonic_d_hog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 02:00 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