ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Send parameters in worksheet button 255 characters (https://www.excelbanter.com/excel-programming/404512-send-parameters-worksheet-button-255-characters.html)

Greg Lovern

Send parameters in worksheet button 255 characters
 
If I create a Forms (not ActiveX) worksheet button, I can send
parameters in the OnAction parameter, like this:

MyButton.OnAction = "'" & strThisWorkbookName &
"'!'Clicked_My_Button(" & my_arg & ")'"

However, I'm limited to a total OnAction string of 255 characters. I
want to send many long parameters, requiring much more than 255
characters.

Is there any way I can do this with ActiveX worksheet buttons, or any
other way to get around this limitation?

I'm using Excel 2007.


Thanks,

Greg


All times are GMT +1. The time now is 09:04 PM.

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