How to save a file with unique name, export specific range to pdf and email to specific addresses with specific heading and body text.

davellc

New Member
Joined
Dec 6, 2018
Messages
7
Hello,

I have taken on a new role and have never used VBA before. I can absolutely see that using VBA to automate some of the more repetitive tasks my new team do would be a great thing for me to do.
There is so much information on these and other boards and sites that putting together what I would like to do has become total overload so I though I would ask everything together in the hope that someone would be able to give me a working example.
Where I have taken things from various sites, it have run into issues I cannot solve.

So here goes.
I would like my team to be able to automatically:
From one button: Save a template .xlm file as a new file in a specified location with the file name in the format of "some text followed by the contents of cell A1 and the time now in hour and minute format"
From a second button: export a specific range within a sheet in that new file to a pdf of the same name and it be automatically emailed to a specific group of addresses with a preset title and preset text in the body of the email.
From a third button send a specific sheet
in that new file to a pdf of the same name and it be automatically emailed to a specific group of addresses with a preset title and preset text in the body of the email

Thanks in advance.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,649
Messages
6,120,728
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