Save Special in VBA

MJN1965

New Member
Joined
Aug 5, 2020
Messages
7
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Bill, I have used your Podcast 1812 - Increment Invoice, it isexactly what I was looking for. The only issue I have is I am using Vlookup to to get part descriptions & pricing on my invoice. When the VBA saves the copy Invoice, I am getting #NA where the vlookup's where. how do I get the saved document to bring the lookup results over a paste special values or something different ?? thanks for your help.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Chris, this is the code...
Sub SaveWithNewName()
Dim NewFN As Variant
PosttoRegister
ActiveSheet.Copy
NewFN = "E:\My Stuff\MPM Ltd\Invoices\" & "Inv-" & Range("E8").Value
ActiveWorkbook.SaveAs NewFN, xlOpenXMLWorkbook
ActiveWorkbook.Close
NextInvoice
End Sub
 
Upvote 0
images attached of the issue, view of main Invoice &then of what is saved.... this may help..
The description, VAT & price are via Vlookups....
 

Attachments

  • Master Grab.PNG
    Master Grab.PNG
    53.7 KB · Views: 3
  • Save Grab.PNG
    Save Grab.PNG
    52.2 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,738
Members
449,255
Latest member
whatdoido

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