Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wouldn't use 1000 buttons, either.
But if you used the button from the Forms Toolbar (not the control toolbox toolbar), you could assign the same macro to each button. You could use the location of the button that was clicked to get the row number you wanted. Have you thought about putting one button on the worksheet--maybe in row 1 and freeze row 1 so that it's always visible. Then using the activecell's row to determine what to do? Or even a toolbar that floats over the worksheet (and still uses the activecell's location). sharonm wrote: Hello, I have a worksheet with about 1,000 lines of data. I want to add a command button on each line, which when clicked will take me to a certain row in another tab of the workbook. When you click on the button, the code for the on click event takes you to the specific row which is referenced off to the side of that row. I think I know how to add the command buttons on each row by using a macro. My question, is there a way to add the code to each buttons click event through a macro or code so I do not have to type it in manually 1000 times? Hope I am explaining this correctly. Any help would be greatly appreciated!! Thanks. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
On click button event | Excel Worksheet Functions | |||
why do i have to click my 2nd command button twice | Excel Programming | |||
event with commandbar button right-click? | Excel Programming | |||
Automate a button click event | Excel Programming | |||
Running command button click event code | Excel Programming |