Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-10-2011, 06:16 AM
macropod's Avatar
macropod macropod is offline looping controls on userforms Windows 7 32bit looping controls on userforms Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Assuming you're using TextBoxes and you're calling the code from a button or something such on the form, you could implement code like:
Code:
Dim Obj As TextBox
For Each Obj In Me.Controls
  Obj.Text = vbNullString
Next
The above code will clear all textboxes. To clear just a limited set, you could test their names and delete via a Case statement.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
looping controls on userforms how to use Building Blocks or controls to add a page verbster Word 11 03-06-2011 04:05 PM
looping controls on userforms Grouping Content Controls cksm4 Word VBA 2 03-01-2011 12:46 PM
looping controls on userforms Format picture controls are acting weird. WaltR Drawing and Graphics 1 02-11-2011 02:47 PM
looping controls on userforms hide ghosted controls designer PowerPoint 1 01-03-2011 07:11 AM
looping controls on userforms Can't Download Controls BillTheAdmin Project 2 12-05-2005 10:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft