Create new Worksheets based on data on Main Worksheet

mmcquinn2002

New Member
Joined
Apr 5, 2020
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Hi there,

I have a Workbook, which primarily has 3 worksheets, "Master", "Index" and "Data".
The "Data" worksheet contains data for individuals and is based on the "Master" worksheet.
The "Index" worksheet is the worksheet which contains the "Name" and "Id" of all the individual persons and has a hyperlink so that the user can go to the individual worksheet on clicking the link which is placed on the "Id"
However, since the number of people goes up every month, I would like to create a file
1. where the user just has to fill in the Name and Id of the person in the "Index" worksheet
2. on running a macro a separate worksheet with the "Id" as the name of the worksheet is created and
3. a hyperlink to the new worksheet is placed on the "Id" in the "Index" worksheet

Thanks in advance.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I can mention some basic steps that may help you.
1. turn on macro recording and simply click + sign to create a new worksheet. Then also right click worksheet and rename it to something. Turn off macro recording. now you have the basic code which you can use/modify later.
2. Next, google search how to dynamically change a worksheet name based on another cell value. (add this to you existing macro code)
3. Finally google search how to dynamically create a hyperlink in a sheet .... and add this to your macro code.
hopefully this helps. In terms of getting these 3 steps to connect/flow, you may need to create a function/formula in a certain cell in one of the sheets such as Index sheet.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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