+ Reply to Thread
Results 1 to 5 of 5

Looping through TextBoxes

  1. #1
    Registered User
    Join Date
    06-16-2007
    Posts
    2

    Looping through TextBoxes

    Hello, I have a worksheet and 42 text boxes that I would to be able to clear.

    \1

    This is what I have thus far:

    Please Login or Register  to view this content.
    I can't figure out how to substitute i into 1, like TextBoxi.Value

  2. #2
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    Hello David,

    Try this and see if it works for you
    Please Login or Register  to view this content.
    Hope this helps!
    Sincerely,
    Jeff

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What is the source of the TextBoxes?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    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 Davidryder,

    This code will clear all the TextBoxes on the active sheet, provided they are Control Toolbox TextBoxes and not HTML.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    06-16-2007
    Posts
    2
    Quote Originally Posted by Leith Ross
    Hello Davidryder,

    This code will clear all the TextBoxes on the active sheet, provided they are Control Toolbox TextBoxes and not HTML.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Thank you so much, that worked perfectly!! What are the chances of you somewhat explaining what OLEObjects is?

    At any rate, thanks!

+ 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