how to get the caption of the button that is clicked say in a cell
Also how to extract the number from it
Please Suggest something
how to get the caption of the button that is clicked say in a cell
Also how to extract the number from it
Please Suggest something
![]()
Please Login or Register to view this content.
Elegant Simplicity............. Not Always
Thanks AndyLitch ........sorry for not explaining in detail but the problem is a bit different......
I want to use a common macro for a number of buttons and hence i don't know the button name i.e. i can't use CommandButton2.Caption.
Any suggestions![]()
If the buttons are Form buttons assign this macro to each of them.
![]()
Please Login or Register to view this content.
If posting code please use code tags, see here.
Thanks Norie.....exactly what i needed
Is there a way such that i can take the number in Caption string....say UPLOAD19 is caption how can i get number 19 from it.......
Does the caption always begin with UPLOAD?
If it does then you can use Mid.
![]()
Please Login or Register to view this content.
Thanks a lot norie
![]()
PLEASE EXPLAIN....ITS giving Error 438
object doesn't support this property or method
Can you upload an example workbook?
Click on GO ADVANCED and use the paperclip icon to open the upload window.
View Pic
PFA the excel file....attach document_10th.xls
i want to use this number for my upload and delete button code.....where i can delete the inserted oleobject by taking reference from the number.
Sorry, I'm not following.
Where/when are you getting the error you describe in the previous post?
Is it actually in the code I posted?
click UPLOAD1 and u will get it....
It's a typo, it should be this.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks