newfn

  1. Z

    Filename.XLSM works but not Personal.xlsb

    This is beginning part of a macro that worked fine in a xlsm file. To share the code saved it as a Personal Macro. Problem is it fails at the 3rd line. Line1 worked fine, so sheet is there. Run-time Error 9 subscript out of range error ActiveSheet.Name = "Not Quoted" Dim wsSummary As Worksheet...
  2. G

    Macro "sub or function not defined"

    Hi there, I have a macro that works fine but it seems everytime I do other work and come back to it I get this message "sub or function not defined". I have debugged it and get the following, this is the macro. I am using a Mac computer and suspect the problem may be related. Sub...
  3. K

    VBA to unlink data but keep a copy of file!

    Ok so here it is... I have a pretty complex set of tables strewn across three different sheets. I use my barcode scanner to scan items into a list on one page, It uses that to populate an invoice with data across 3 pages Page 1 will reference the scanned barcode to find a match on page 3, It...
  4. M

    It is not saving correctly, in need of help to correct it

    Sub SavNewInvWithNewName() Dim NewFN As Variant ' Copy New Invoice to a new workbook ActiveSheet.Copy NewFN = "C:\Documents\HOUSING" & Range("I7").Value & ".xlsx" ActiveWorkbook.SaveAs NewFN, FileFormat:=xlXMLSpreadsheet ActiveWorkbook.Close NextInvoice End Sub
  5. G

    Usin VBA code to save to pdf and xlsm

    Hello everybody! I am having trouble saving my quotations to to xlsm and pdf at the same time. I've figured out how to save to xlsx & pdf, but I can't figure out the code on myself. I use this code to save to xlsx & pdf: Sub SaveInvoiceBothWays() Dim NewFN As Variant ' Create the...
  6. M

    Using Excel VBA to create invoices

    Hi all, I am trying to create invoices for some freelance work I am doing. Here is my plan: I plan to create a document in Excel that will have a starting Invoice number. I will have a button to generate an invoice, auto incrementing the invoice number each time, and then saving the file as...
  7. K

    SaveCost Estimate with New Name vba

    Hi I have the following code which I found and it works by copying the active sheet and saving as a new file name, however I'd like to save the whole workbook as a new file name. I also don't know how to change the word Invoice to Cost Estimate? Any help much appreciated. Sub NextInvoice()...
  8. R

    VBA save file, name as 2 cell values

    I am trying to save an invoice file as the invoice number (H9) and the customer name (H2). I found this in a different post on here: Sub SaveInvoiceWithNewName() Dim NewFN As Variant ' Copy Invoice to a New Workbook ActiveSheet.Copy NewFN = "C:\aaa\Inv" & Range("E5").Value &...
  9. M

    Facing problem with merge cells to drive into next Invoice number and Save a backup file into my desire folder.

    Sir, I am creating a Automatic Invoice and i merge some cell for beauty of my Invoice but when i assign a button into macro, it says the macro can not work for merge cells. So how to save my file to keep merge cells .If you have any solution for that please give me information. Below i mentioned...
  10. R

    Saving Both Sheeting in a workbook

    This is the Current Code I am running for my "Next Invoice", the only problem I am Having it only save one of the two work sheets I am using...Can you give a not so smart guy a little help and saving both "Invoice" worksheet and CustomerCopy" worksheet? Sub NextInvoice() Range("J1").Value =...
  11. T

    Make New Directory Workbook VBA

    Hi All, So I have this code: Sub SaveFilewithNewName() Dim NewFN As Variant Dim NewPth As String Dim WRK2 As Workbook PostToRegister 'Copy File to New Path and Filename ActiveSheet.Copy 'Change File Path to Server File Path when ready NewPth =...
  12. B

    save & Clear

    Sub SaveInvWithNewName() Dim NewFN As Variant ' Copy Invoice to a new workbook ActiveSheet.Copy NewFN = "C:\Users\Donny\Google Drive\Data\Invoice" & Range("B15").Value & “.xlsx” ActiveWorkbook.SaveAs NewFN, FileFormat:=xlOpenXMLWorkbook ActiveWorkbook.Close...
  13. D

    Help me please :-)

    Hello, I am trying to write a bit of code to place a file that I have saved within the code as an attachment on a email and extract the address from the file to place in the to box. this is the code as it stands: - Sub SaveAndEmail() Dim NewFN As Variant NewFN = "O:\Sports Centre\Purchase...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top