Use VBA to populate an excel template, repeatedly?

wntrwhte

New Member
Joined
Mar 18, 2021
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
I have a case where I have a formatted spreadsheet with blanks. I need to enter data into various places on this template, from different data sources, as well as add an employee's name. Basically think of it as creating a work schedule based on a calendar tab and another tab with a list of employees and their working hours. Three total tabs, one containing the blank schedule, another containing a calendar and list of shifts available that day, and a third containing a list of employees and their availability.

Is there a way to set this up such that when I open the workbook, it loads the blank templates for each of the tabs so the user can populate the relevant information for availability and open shifts, and then I can link a button to execute the macro that populates the template? I know how to do the button creation, just not sure how to set up the initial data entry in a way that predefines the structure so I can build a repeatable macro to execute and populate the schedule.

Thanks in advance!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Watch MrExcel Video

Forum statistics

Threads
1,129,890
Messages
5,638,857
Members
417,055
Latest member
SerenaCruz

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
Top