Solved

commandButton Index

Posted on 2009-07-09
2
532 Views
Last Modified: 2013-11-25
Is it possible to change the index of command button?

My code below will display the value of index in textbox as text1.text
I have four(4) button Command1(0), Command(1), Command(2), and Command(1)
I want to change the index of its commandbutton once the sstab1 has been dblclick
and will change to 50,51,51,and 52 which 0,1,2,3 as their original index.
Is it possoble? thanks!
Private Sub Command1_Click(Index As Integer)
Text1.Text = Index
End Sub
 
Private Sub SSTab1_DblClick()
Command1(0).Index = "50"
End Sub

Open in new window

0
Comment
Question by:Whing Dela Cruz
2 Comments
 
LVL 2

Accepted Solution

by:
lppperes earned 500 total points
ID: 24820370
You can´t do that. The property Index is read-only at runtime.
0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 31601942
Thanks for the information
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question