ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Customized components (https://www.excelbanter.com/excel-programming/337651-customized-components.html)

Souris

Customized components
 
I would like to place a button on more than one spreadsheet.
May I have a cusomized button that I need code once?

For example:

I need a button have following code onclick:

Sheets("MAIN").select

I can just replace the MAIN button on the form I need.

Any information is great appreciated,

Bob Phillips[_6_]

Customized components
 
If you get a button from the forms toolbar, you can assign a macro, so just
assign the same macro to every button.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Souris" wrote in message
...
I would like to place a button on more than one spreadsheet.
May I have a cusomized button that I need code once?

For example:

I need a button have following code onclick:

Sheets("MAIN").select

I can just replace the MAIN button on the form I need.

Any information is great appreciated,




Dave Peterson

Customized components
 
You could also use a hyperlink--either assigned to the button (from the Forms
toolbar) or just in a worksheet cell.

Souris wrote:

I would like to place a button on more than one spreadsheet.
May I have a cusomized button that I need code once?

For example:

I need a button have following code onclick:

Sheets("MAIN").select

I can just replace the MAIN button on the form I need.

Any information is great appreciated,


--

Dave Peterson


All times are GMT +1. The time now is 01:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com