Macro Coding Help

LactoseO.D.'d

Board Regular
Joined
Feb 22, 2010
Messages
52
Hey all,

I have a project that I am working on where I need to create two macros on an excel sheet with VBA.

1) Create a button that will add a new worksheet to the workbook with a lot of filled in information. How do I store this information and reference it?

2) Create a button that will populate data from multiple fields of the worksheet in to a Word template and print. I want this to be a single process. Hit button, word document pops up with information, and printing begins. To do this, will I have to embed a word template into the spreadsheet? How do I do that or reference it?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hey all,

I have a project that I am working on where I need to create two macros on an excel sheet with VBA.

1) Create a button that will add a new worksheet to the workbook with a lot of filled in information. How do I store this information and reference it?

2) Create a button that will populate data from multiple fields of the worksheet in to a Word template and print. I want this to be a single process. Hit button, word document pops up with information, and printing begins. To do this, will I have to embed a word template into the spreadsheet? How do I do that or reference it?

Hi and welcome

1) new worksheet is easy enough, with the data filled in is it constant? never changing data? does it come from a worksheet?

2) I wouldnt embed the template. can referance word vba from excel and tell it what to pull up. ie the template and paste info from here to there then print.

I would need more info to help more. Do you know vba or are you new? I would suggest recording a macro and looking :)
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,904
Members
452,948
Latest member
Dupuhini

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