Word 97 - trap events on controls made with [login to view URL]
$15-20 USD
Betalt ved levering
I'm looking for a way ( Word 97 VBA) to trap the events of controls made with the controls.add-methode. f.e. two textboxes made with [url removed, login to view] .... Set Mycmd = [url removed, login to view]("Forms.textbox.1") [url removed, login to view] = 10: [url removed, login to view] = 10 [url removed, login to view] = 90: [url removed, login to view] = 15.75 [url removed, login to view] = "This is the content of the TextBox1" Set Mycmd = [url removed, login to view]("Forms.textbox.1") [url removed, login to view] = 10: [url removed, login to view] = 20 [url removed, login to view] = 90: [url removed, login to view] = 15.75 [url removed, login to view] = "This is the content of the TextBox2" ... creates two nice textboxes. But I cannot trap the events of the textboxes ... Private Sub TextBox1_KeyPress(ByVal KeyAscii As [url removed, login to view]) Stop End Sub ... because it does not recognise the object textbox1, textbox2 etc.. Anyone a idee how to solve this? -Added for more information -----> The amount of texboxes created on the fly is variable. Like... For iTmp = 1 to iAmountOfTexboxes Set Mycmd = [url removed, login to view]("Forms.textbox.1") [url removed, login to view] = 10: [url removed, login to view] = 30 * iTmp [url removed, login to view] = 90: [url removed, login to view] = 15.75 [url removed, login to view] = "This is the content of the TextBox" & str(iTmp) Next iTmp ' iAmountOfTexboxes will be between 1 and +/- 70 <--------------------------------- Please notice that I'm using VBA in Word 97 With greetings and thanks in advance for your bid.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
Word 97 VBA
Projekt ID: #2927922