Hello,
I am seeking an help for a vba Macros script which can save a particular worksheet as .xls & pdf format from the same workbook. Below is the explanation.
I have download a sample file from the internet which have the following below option and are working fine:-
- Print preview the selected sheet.
- Print the selected sheet.
- Quit when click on Exit button.
Now I have added 2 buttons on the same form which have to do the following:-
- The selected sheet should Save as .PDF when I press Save as PDF button in the same place with below mentioned format. If the selected sheet is blank the it should give message “Cannot save sheet as PDF because the sheet is blank”.
- The selected sheet should save as .xls when I press Save as Excel button in the same place. If the selected sheet is blank the it should give message “Cannot save sheet as excel because the sheet is blank”.
NOTE: I AM USING EXCEL 2010 AND OTHER USERS USING EXEL 2007. SO IF POSSIBLE SAVE AS PDF CAN BE WORK FOR ALL THE VERSIONS I WILL BE VERY THANKFUL TO YOU.
The format should be save as below mentioned format.
Example: 1000 NRP Excelforum.com
Where as:-
1000 - Is the value of NRP sheet E23
NRP - Is the selected sheet name
Excelforum.com - Is the value of NRP sheet A23
I hope the above mentioned details are the clear explanation to help me and this is the last assignment. I have attached sample file for more clarification.
Bookmarks