+ Reply to Thread
Results 1 to 3 of 3

Macro that incrieas invoice +1, save as with information from two cells and clear out rows

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Helsingborg
    MS-Off Ver
    No idea
    Posts
    1

    Macro that incrieas invoice +1, save as with information from two cells and clear out rows

    Hi

    I´m a total newbe in excel who has started to create an invoce. I´m "almost" done

    The thing I`ve left is that i want a button who does this on click:

    1) Save the new invoice as an PDF file in my documents folder "faktura 2014" (using a mac).
    2) Increase the invoice number by 1, invoice number is in cell E5. Clear out cells A12-F30 + G5, in the excel file and saves it


    Is this even possible? I have found out how you make a button and connect macros to it.

    If anyone can help me with this it would be amazing!

    //Andrea

  2. #2
    Registered User
    Join Date
    08-27-2014
    Location
    Helsingborg
    MS-Off Ver
    No idea
    Posts
    1

    Re: Macro that incrieas invoice +1, save as with information from two cells and clear out

    I´ve almost solved the entire problem. The thing I´ve left is that I don´t know how to clear G5 and I need the macro to print Three copies.

    Anyone who can help me?

    //Andrea

  3. #3
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28

    Re: Macro that incrieas invoice +1, save as with information from two cells and clear out

    Let's assume that your file name is stored in the string "FName"

    Use this line to export your excel sheet to PDF format

    ' ThisWorkbook.ExportAsFixedFormat Type:=xlTypePDF, filename:=FName, _
    Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False

    For clearing data from G5 cell use this code
    Range("G5") =""

    For printing use code below:
    Please Login or Register  to view this content.
    Regards,
    xlman

+ 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 invoice to folder by month and then save file by date and invoice
    By Val777 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2013, 02:57 AM
  2. Increment invoice number and clear/save
    By rjw29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2013, 03:21 PM
  3. Macro to Save As and clear cells data was entered
    By lfmemp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2012, 12:14 AM
  4. Macro for Save and Advance Invoice changes colors of cells!
    By emartin1029 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2012, 12:20 PM
  5. macro to save wookbook add 1 to to a ref No. clear cells
    By QuinnDexter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2005, 09:05 AM

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