Solved

commandButton Index

Posted on 2009-07-09
2
524 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now