Macro For New Invoice And Saving As Cell Name?

Apr 26, 2012

I'm having some trouble creating a macro that will save the worksheet under the name of the cell ("G4") that needs to change to the next ascending number (i.e. 101101, 101102, 101103, etc). Have a macro but wont function after saving and never saves as the new cell #.

View 9 Replies


ADVERTISEMENT

Saving An Invoice Number When Reopening An Invoice

Oct 30, 2008

I have an Excel Invoice Template, saved as a template.

I have code that generates a new invoice number each time the template is opened in VBA Editor. The auto numbering system works great! However.... (here comes the sad part)

After I enter all the data I need on the invoice, I want to save a copy of the invoice in a different file folder, which I can no problem. The problem is, if I re-open the saved invoice, we will call it Invoice #100, excel asks me if I want to update, if I say either yes or no, the invoice number will change to Invoice #101. I'm sure you can see how this can cause a major problem if we need to compare information later on, finding the correct invoice would be almost impossible as it would not match the customers invoice number.

What I need to know is:

Is there code I can add to the existing code, to stop the increment on a saved invoice, but not on the original template?

View 9 Replies View Related

Saving A File Without Saving Macro

Jan 30, 2003

I have a spreadsheet that imports data, manipulates it then deletes 2 of the sheets then saves the file under a different name to the network. Is there any way to save this new worksheet without it storing the macros - so when the user open it, only the data is there and they get no prompt to enable macros?

View 6 Replies View Related

Macro For Saving Filename Based On Cell Content

Feb 3, 2009

Is it possible to create a macro attached to a button that allows me to save the workbook based on content of 2 cells in the workbook?

I like to save the workbook based on content of cell A4 that contend a text string. After that saving another time with the contend of cell A4 plus cell A9 which contend the today() function. I am doing this because this workbook is constantly updated and a backup copy is done based on the date the file is save.

View 9 Replies View Related

Copy Of Invoice Using Macro

Oct 21, 2009

I m making invoices and daily i have to make around 100 invoices, every time i have to select/copy the latest invoice and paste it downwards (as attached).

kindly tell me a macro so that i can click on button and invoice# 02 (as highlighted & attached) should be pasted on the place where i will keep my Curser. It should be pasted on the place where i will keep curser.

View 7 Replies View Related

Macro To Select An Invoice

May 5, 2009

Testing to see if this works ( ignore the multi posts, forum had a problem )

I basically need a macro to select whats inside the blue border area and print it.

I plan to include a button next to each invoice so i can just click the button and have it print the adjacent invoice.

View 9 Replies View Related

Using Save Invoice With New Name Macro But Need It To PDF Not XLSX

Aug 13, 2013

I am currently using some of Mr. Excels macro coding to firstly create consecutive invoice numbers and secondly save the new file into a destination folder and clear out the cells that have had data in them. This part seems to work flawlessly. I have noticed though that the new .xlsx file has the macro buttons viewable on it and to me looks unprofessional if i send out an invoice to a customer that has the buttons shown. So my resolution is to export the file as a PDF rather than the .xlsx.

My code is as follows

Code:
Sub NextInvoice() Range("H13").Value = Range("H13").Value + 1
Range("B24:H43").ClearContents
End Sub

Sub SaveInvWithNewName()
Dim NewFN As Variant
' Copy Invoice to a new workbook

[Code] .......

View 2 Replies View Related

Macro To Print The Invoice Worksheet

Jul 15, 2006

I made a macro to print the Invoice worksheet and I added a button to run the macro but I don't think I did it correctly.

Sub Print_Invoice()
Range("A1:G35").Select
Selection.PrintOut Copies:=1, Collate:=True
End Sub

This is the information I used for the command button:

Private Sub CommandButton1_Click()
Range("A2:G34").Select
Selection.PrintOut Copies:=1, Collate:=True
End Sub

View 4 Replies View Related

Macro Copy From Invoice To Table Database?

Feb 22, 2014

need macros :

Copy From Sheets ("PO")
Copy D7 & H7
Copy C11 : H25 (Only Active Cells)

Paste To Sheets ("Sheet1")
D7 & H7 = Column A & B
C11 : H25 = Column C, D, E, G, H

database.xlsm

View 4 Replies View Related

Creating A Save Invoice Style Macro

Apr 13, 2007

I am still in the process of creating my Invoice, and now I want to add a proper save macro. I want to add a Macro button, which when clicked it copies that invoice sheet as it is and then places it at the end of the sheet tabs, so they're saved after the first 2 important parts of the invoice, and then saved in time order. If possible, i'd also like it to rename the invoice tab to the Customer's name/lastname IF Possible. I've attached the file so if someone fancys trying to do it for me, they can. I want these saved sheets to be seperate for each invoice/customer, and I want them to be in the same file as the invoice 'creator' it's self.

View 6 Replies View Related

Excel - Macro To Copy Invoice Data To Database

Aug 1, 2014

Following macro code is for copying Excel Invoice Data to Excel Database. Also cleans the specified cells after copying. Its working Perfectly.

But there are some issues that should be solved.

Problem 1: It copies empty cells(""), formula based cells and blank drop-down list.

Problem 2: After copying it cleans formulas too. Formulas must be remain their.

View 2 Replies View Related

Macro Print Invoice After Choosing Sheet From Dropdown List

May 1, 2014

with the following....In the first sheet of attached file I keep data regarding all invoice sheets next to the data sheet (not visible in this example). I like to print an invoice in all sheets (area H3-AI43) from a selected invoice sheet out of a drop-downlist in the "data"sheet. After printing the actual printdate must be placed in column F of the "data" sheet next to the sheet number. Would be great if this is possible! Maybe I'm not clear enough. The purpose is to print only 1 invoice from a selected sheet out of the drop-down list.....and not all invoices from all sheets!

View 4 Replies View Related

How To Send Excel Invoice To Email Address Using Macro Code

Jan 22, 2013

I have a template invoice in excel. What I want is a macro code that when it is run the open template invoice should be sent to a specific email address !!

View 5 Replies View Related

Rename Tab Based On Cell Value And Increment Invoice Number

May 2, 2012

What I'm trying to do is from a template worksheet that I have in a workbook with other worksheets, I'm trying to come up with code that will create a new worksheet based on the template (copy), increment the invoice number, and rename the worksheet tab to be "Invoice # xxxx" (new invoice number from prev. step.).

I have figured out how to use a button on the template to execute, but as I said my VBA skills are lacking to say the least.

View 9 Replies View Related

Increase Invoice Number And Save To Desktop As PDF Using Cell Data For Filename

May 15, 2014

Our business has a spreadsheet set up for invoicing. A Macro has been created to increase the invoice number, save to the desktop as a PDF with a file name taken from the cells

This is working on my colleagues mac but when we've loaded onto my computer it errors, when I debug I am getting the following error:

Sub Macro3()
'
' Macro3 Macro
'

'
Range("g10").Select
[g10] = [g10] + 1

[Code] .......

View 2 Replies View Related

Saving File In A Macro

Dec 8, 2008

How do I save the spreadsheet with the current name of the spreadsheet in a macro?

Example:
I want to save the spreadsheet to a network drive using the current name of the spreadsheet (it changes every other day). But I dont know to put the name in the SAVE statement. Here is what I have now:

View 4 Replies View Related

Prevent Saving And Allow Only Through Macro

Mar 14, 2007

Prevent saving and allow only through Macro

I am contracting an excel template and need to stop users saving the file using “Save” or “Save As”. I am able to do this by using the private sub below:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True
End Sub

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
End Sub

I also understand that by switching to “Designer” mode you can save the file and once re opened designer mode will be switched off. What I need is to allow saving using a macro, is there a code that I can insert in the macro to switch designer mode?

View 9 Replies View Related

Macro For Saving Workbook

Dec 24, 2007

I Want A Code That Will Save My Workbook To A Specific File (different Form The One It Is Currently In) Using The Name That I Have Typed In Cell D13 In The Workbook

View 9 Replies View Related

Can I Speed Up The Macro By NOT Saving

Sep 4, 2009

I have this analyze that is runned by a macro in one workbook, and it starts a analyzing-process in another workbook. The data is picked up in the no2 book, and returned to the first book. It is analyzing lots of workbooks, sometimes up to 1000 workbooks, it means that no2 workbook gets a new name and then saved.

I have once heard that the process could be way faster if the workbooks where the analyzes is processed through not were saved, and I actually dont need the books as long as I got the data into my first workbook.

But Im not sure what in the macro that makes it save the no2 workbook, but I would really like to speed up this process. As it is now I have to start the analyze before I go to bed, and the hopefully it's done when I wake up next morning.

View 9 Replies View Related

Saving As Stops Macro Working

Feb 6, 2008

i have a worksheet named for example 'allocation 1' this is a master document and is opened and modified and 'saved as' under a customer name. This then stops a few important macros working properly because they refer to the original title and not the new saved title. Is there any code that will let the macro recognise any new title it is saved under?

View 10 Replies View Related

Name Range Is Not Saving When Running Macro

Nov 15, 2008

Thanks for all the help so far with this issue. I seem to be getting errors after running a macro a second time. The name of the cell range is changing. I have attached the spreadsheet and I will try to be specific as possible.

Goal 1: I need to input monthly data into the Sales tab and then save it as a CSV file.

Goal 2: Re-open original xls file that has data then Run macro to create reports.

Goal 3: Save Original xls file as a clean sheet to use again next month.

Process:
1 - Insert Data into Sales tab
2 - File/Save As a CSV (Now the CSV file is open)
3 - Close CSV file and re-open the original xls file
4 - Run Macro to create reports
5 - Print Reports
6 - Manually delete current data on all tabs so I have a clean sheet for next month
7 - Save and Close

Problem:

When I open the xls file (next month) to input new data and run the reports I get a Run Time Error '1004" The Pivot Table field Name is Not Valid

I found that the Named Range of cells changed from the original:

View 8 Replies View Related

Closing A Workbook Without Saving - Macro

Nov 28, 2008

Need the VBA code to close a workbook, and not save it? I need it to open a workbook, run a macro, and close without saving. The code I have thus far is:

View 3 Replies View Related

Macro Close Without Saving Reopen

Jan 6, 2010

Using excel 2003, I have a ss that uses filters and sorting. I can get to the data I want but must reopen the workbook if I want to start over and extract different information. I tried installing this VBA:

Sub CloseMe()
Application.OnTime Now + TimeValue("00:00:10"), "OpenMe"
ThisWorkbook.Close False
End Sub

Sub OpenMe()
MsgBox "I'm Back!"
End Sub

This is my first time at inserting VBA. Usually I just use keystroke macros. I have set my Excel VB Book options to: Option Explicit double clicked the sheet I was using and under general inserted the code, closed Ctrl+Q, saved workbook. When I reopened and tried to use it all I get is “I'm Back!” nothing else happens. One time it actually ran and reopened but it appeared that the workbook was saved before closing because it was still sorted. What I need is it to completely unsorted as it is when I first open it so I can start over.

View 4 Replies View Related

Saving To A Network Drive Macro...

Jan 26, 2010

I currently have the following ...

View 8 Replies View Related

Macro Saving To Wrong Folder?

Jan 10, 2012

I have a macro that saves the workbook after it has finsihed the rest of its formatting. I am finding it is saving in the wrong folder. I looked at my code and it is clearly states 'my documents' where I want it to save. Yet it keeps saving on a random folder on a shared drive.

View 8 Replies View Related

Saving Excel File As Macro

Nov 13, 2013

I'm using this bit of code to save a cvs file as an xls file.

Code:
'Save file
Dim Filename As String

Filename = Application.GetSaveAsFilename( _
fileFilter:="Excel Files (*.xls), *.xls")
If Filename "False" Then

ActiveWorkbook.SaveAs Filename
End If

However, I would like the file to be named Win7Sync-

View 5 Replies View Related

Macro For Saving Visible Cells As PDF

Mar 8, 2014

I have excel sheet with filtered columns. I will do the filtering manually and after selecting a filter, I want the visible data on the sheet to be saved as PDF file.

Please note that I dont want any range to be saved as PDF but visible data because as the filter changes, so as the data will be either less or more.

View 7 Replies View Related

Saving A File With A Different Name Each Time Using A Macro

Mar 6, 2007

What i want is for my user to click the save button linked to a macro that saves my file as Order0000. If there is a file already called this i want it to change the name to Order00001 and so on for Order00002.

Is this possible and if so what VBA code

View 9 Replies View Related

Macro To Close Workbook Without Saving

Jan 9, 2007

i m designing a test for a school and want to add a macro that will be assigned to a button at the end of the test i want the macro to close down the the excel program running and not prompt the user to save the workbook is there a vb code that can do this i have tryed a few but they all come back object not found.

View 6 Replies View Related

Macro To Import Data From One Workbook Into Another And Saving

Jul 3, 2014

I've got a spreadsheet listing applications on PCs (assets), one line per application, and need to import that info into another document for each PC and save it with a file name which = the PC name (asset number). I've attached a couple of sample files to try to explain what i mean.For asset number PC037014 I need the corresponding fields filled and the list of applications pasted under where is says Additional Software List (inserting more rows if there are too many applications to fit in). Once the information has been populated, i'd like the file to be saved in a specific folder then move onto the next asset number in the list.

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved