Save a New Invoice with a Macro already Included

Code Ghost

New Member
Joined
Apr 9, 2024
Messages
16
Office Version
  1. 2007
Platform
  1. Windows
Good morning community!
This is my first question in this forum. Thanks in advance for your time and help.

I created an invoice using VBA that is saved in a specific folder in an XLSM format.
Can this new invoice be saved with a new included VBA code that would copy information to a different workbook?

I need the saved invoice to have an added macro.
The purpose of this macro is to copy partial payments to the new invoice to a different workbook under a Payment column: Amount1/Amount2, to: Amount6

There, I think I should be able to add a SUM formula to calculate the balance in a different column.

My big problem would be to save a new invoice with a macro already included.

I included two images below.

Thank you for your help!
 

Attachments

  • img a.JPG
    img a.JPG
    22 KB · Views: 23
  • img b.JPG
    img b.JPG
    3.9 KB · Views: 20

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the Board!

Create a template that already has the format and macro you desire, then use your code to open a copy of that, populate it, and save it as your new invoice.
 
Upvote 1
Solution
Welcome to the Board!

Create a template that already has the format and macro you desire, then use your code to open a copy of that, populate it, and save it as your new invoice.
Hi Joe4!
Thank you so much for your reply. I deeply appreciate your time.
In the meantime, I went another way and will post a different question.
Thanks a million again for your help.
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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