VBA - 3 tasks in a specific order

RickG75

New Member
Joined
Aug 26, 2015
Messages
43
Office Version
  1. 365
Platform
  1. MacOS
Hi All,

I have 3 macros written and working separately.

I would like to combine them and have them complete individually in a specific order:
First: Save_PDF
Second: Sales Summary
Third: Refresh Invoice

Can someone help assign this combined macro to the button called "Invoice Complete" on the Invoice tab of my worksheet?

Here is a link to the file:

Thanks,
Rick
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
When you run your "Invoice Complete" macro, have it link/call this one:

Code:
Sub RunAll()
Save_PDF
Sales_Summary
Refresh_Invoice
End Sub
 
Upvote 0
Hi kweaver,

Thank for your patience and your help.

All of the macros work accept the Sales Summary is not moving to the next row to record the new data. It is recording over the second row over and over again. Can you have a look and see what I need to change?

Thanks,

Rick
 
Upvote 0
Rick

In 'Sales_Summary' you are using column A to determine which row the data should go to, column A is empty so that row will always be row 2.

Change the code to use another column, e.g. B, to determine which row the data should go to.
 
Upvote 0
Hi Norie,

Thanks for the input!

I was way overthinking it.

Many Thanks,
Rick
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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