+ Reply to Thread
Results 1 to 4 of 4

how is this for a save button

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    Swansea, Wales
    MS-Off Ver
    2014
    Posts
    19

    how is this for a save button

    If the button is clicked by the user, then the active sheet should be saved as a new workbook with the naming convention: SheetName_(CustomerNo_DD.MM.YYYY)
    • Create a (hidden) row at the bottom of the invoice with Invoice number, Invoice date, Customer number and Invoice total
    • Copy the row at the bottom of the invoice to the next available row in Sheet 7

    Sub CopyWS()
    Dim No As String

    nom = Range("C8").Value & Day(Date) & Month(Date) & Year(Date) & "Invoice" & ActiveWorkbook.Name
    ActiveWorkbook.SaveCopyAs ActiveWorkbook.Path & "\" & nom
    rep = MsgBox("Your database has been saved : " & Name, vbYesNo + vbInformation, "Copy of spreadsheet")
    End Sub

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

    Re: how is this for a save button

    Are you asking for some help in some manner?
    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-23-2015
    Location
    Swansea, Wales
    MS-Off Ver
    2014
    Posts
    19

    Re: how is this for a save button

    Yes does that sound correct?

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

    Re: how is this for a save button

    Have you tried running it and does it work as expected?

+ 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: 1
    Last Post: 07-24-2012, 09:53 AM
  2. Disable Save As and Save - enable Save via button
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2011, 05:42 PM
  3. disable save and saveas but have submit button to save file as work
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2010, 12:32 PM
  4. [SOLVED] How to diasble save and save as menu but allow a save button
    By hon123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2006, 04:55 AM
  5. Replies: 2
    Last Post: 03-09-2006, 04:20 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