Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
J J is offline
external usenet poster
 
Posts: 1
Default MultiPage UserForm - Need to Prevent Duplicate TextBox Entries

I need suggestions. I have a multipage userform. On the last page of the
form, there are several textboxes (more than 25). The contents of these
textboxes are page numbers for a presentation. What is the best way to
prevent duplicates from being entered?

I thought at first that I could cycle through all of the controls on the
page, then check to see if the control was a textbox, then compare that
value to the current textbox value. A few problems are apparent with that
thought - first, control.value is not available in VBA. Second, I would
have to write code for each textbox afterupdate event.

I need help figuring something out. Any ideas out there?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default MultiPage UserForm - Need to Prevent Duplicate TextBox Entries

Instead of text boxes, would it be possible to have 2 list boxes, one on
the left and one on the right? The one on the left would list all
available (or valid) page numbers, and the one on the right would list
selected page numbers. In between both list boxes, put 2 buttons, one to
"Add" a selected item in the left list box to the right list box, and
one to "Remove" a selected item from the right list box. Also, you could
have 2 more buttons to the right of the right list box to "Move Up" and
"Move Down" a selected item in the right list box (i.e. so the right
list box could contain a list of page numbers out of order like 3, 7, 5,
8, etc.).

--
Regards,
Bill Renaud



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent duplicate entries in Excel 2000 Stressed Excel Discussion (Misc queries) 11 January 28th 08 09:07 AM
HOW CAN I PREVENT DUPLICATE ENTRIES WITHIN A WORKBOOK, i.e. job # beyondthevail Excel Discussion (Misc queries) 1 March 28th 07 12:55 AM
Prevent Duplicate Validation List Entries JK Excel Programming 1 January 7th 06 08:15 PM
Blank entries on multipage userform WillRn Excel Programming 0 March 4th 05 02:53 PM
Prevent duplicate entries Teri Excel Worksheet Functions 1 March 4th 05 01:28 AM


All times are GMT +1. The time now is 02:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"