how to apply multi functions to command bar.

Asadpatel777

New Member
Joined
Aug 20, 2017
Messages
1
I want to apply multi functions in command bar. i am fresher in excel and required codes to perform certain functions The functions to do with command button are as folllows.-

1. Task for Print and save invoice button should be, it should save invoice details like invoice no., date, amount of different taxes i.e. tax1, tax2 etc., final amount after taxes, to table in sheet2 Download Capture2.JPG from Sendspace.com - send big files the easy way
eet30a
also the invoice should save in pdf and xlsx format in desired drive along with that, invoice should print simultaneously first. The screenshot of invoice is here for better understanding
t8yog6
t8yog6
Download Capture.JPG from Sendspace.com - send big files the easy way

I have tried using code for clear and new invoice which works perfectly but i need codes for
print and save invoice button.

codes for clear and new invoice i tried
Code:
Private Sub CommandButton3_Click()Range("a10").Value = Range("a10").Value + 1
Cells(9, 5) = Date
Range("c12:d31") = ClearContents




End Sub

please help in provinding codes for print and save invoice button.

Kindly help.
thanx
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,223,956
Messages
6,175,614
Members
452,661
Latest member
Nonhle

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