apply code to more than one row in a worksheet

dean427

New Member
Joined
Jul 20, 2010
Messages
1
Hi guys



I have a spreadsheet which contains a list of high level information. I have set up code and buttons on screen to allow the user to create a detail sheet for specific information.



However, as my VBA skills are limited at the moment I have developed the code to operate just for one row and am unsure how I could set it up for multiple rows.



What the code does is take a cell value and create a new worksheet with the name defined in that cell. It then copies a format from a master format sheet which the user can then populate. So, at the end of each row I have a two buttons…one to create the new sheet and then one to view the sheet for that specific entry. I would like to have these two buttons on all rows with each referring to the cell at the beginning of that row. Sorry if this is confusing.


It would be similar to having a list of numbers and then typing a formula into the adjacent cell and then dragging it down of get a list of answers…only in my case it’s buttons and code.


Any ideas would be greatly appreciated.


Thanks


Dean
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,327
Members
414,053
Latest member
Dual Showman

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