+ Reply to Thread
Results 1 to 3 of 3

How to create a control array of textboxes

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    92

    How to create a control array of textboxes

    On this website:
    HTML Code: 
    He instructs to make a control array of textboxes on a userform
    six text boxes in a control array (Text4(0) - Text4(5)).
    but i can't figure out how to do it manually. I can't find the "index" property of the textbox so when i try to make a second textbox with the same name, it gives me an error. Any ideas?

    Cheers

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Schwizer,

    Randy's code is written for Visual Basic (VB). Excel uses Visual Basic for Applications (VBA). VB supports the use of Control Arrays, VBA does not. If you are using Excel 2002 and up, a better choice for "pinging" is to use the Windows Instrumentation Interface (WMI). Click on the link to see some code examples.

    Ping using WMI

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    01-29-2007
    Posts
    92
    Much appreciated. Thank you

    Schwizer

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1