Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Retriving name of cobntrolelement

I have to pass the name of a controlelement as argument to a sub.But how do
i retrive the name of the control element. within the elements Click-event.
What I like is something like this:

Private Sub CheckBox0_Click()
Call NewSub("ActiveControl")
End Sub

In this case, the name of the active control is Checkbox(0), and the problem
could be solved using:

Private Sub CheckBox0_Click()
Call NewSub("Checkbox(0)")
End Sub

but I would like to be able to use the same code fro a lot of
controlelements, without having to hardcode all the names.

Regards
Jan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retriving text from a column JAF-In[_2_] Excel Discussion (Misc queries) 6 July 5th 09 03:08 PM
retriving specific data????? wt.pm Excel Worksheet Functions 3 April 1st 09 10:55 PM
Retriving Values from a separate sheet of a different file Anift Excel Worksheet Functions 3 April 4th 06 01:42 PM
Help with retriving data from other closed Workbooks parteegolfer Excel Programming 3 March 25th 06 08:09 PM
Retriving a deleted version of Excel gsp56 Excel Worksheet Functions 1 January 28th 05 03:01 PM


All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"