Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default Text boxes and Spin buttons

I have a spreadsheet with 6 columns. The first 3 columns are related to 1
data source and the last 3 columns are related to a second data source.

1 2 3 4 5 6

X A 50.00
X B 51.00
X C 52.00
X D 53.00 X E 53.00
X D 53.00

The fields will be sorted by amount and staggered so like amounts appear on
the same line. There may be multiple like amounts on one side and only one
equal amount on the other side.

Prior to building this sheet, a macro takes exact matches from both data
sources (all 3 fields) and copies it to another sheet. The results are the
items that remain. However, there may be matches in this data but the items
don't match exactly because of keying errors, etc.

What I would like to do is populate a form with 2 text boxes (?) that line
up the data like it appears above. The user would be able to scroll through
both text boxes at the same time and select items that are matches (could be
1 item from one side and multiple from the other, could be one and one, could
be multiple and multiple), push a button, remove those items from the text
box and the data sources, and move them to the matched sheet.

My questions a

(1) Are text boxes the way to go or should I use combo or list boxes?

(2) I'm looking for a control that will move both boxes in sync.....Can I
use a spin button to control this? Can I tie one scroll both that will move
both boxes?

(3) Once a user selects items from both sides, can I delete them from the
boxes or do I have to delete them from the spreadsheet and rebuild the boxes?

Thanks for the suggestions. If you are aware of any example that would be
similar to what I'm trying to accomplish that would be great as well.
Thanks....

--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Text boxes and Spin buttons

1) Are text boxes the way to go or should I use combo or list boxes?
NO, use Listboxes

(2) I'm looking for a control that will move both boxes in sync.....Can I
use a spin button to control this? Can I tie one scroll both that will move
both boxes?
in the spinup and spindown events change the Listindex property of each
listbox

(3) Once a user selects items from both sides, can I delete them from the
boxes or do I have to delete them from the spreadsheet and rebuild the boxes?

If you use rowsource (or listfillrange if they are on a sheet), then you
will need to release the rowsource, delete the cells, reassign the rowsource.

--
Regards,
Tom Ogilvy



"JT" wrote:

I have a spreadsheet with 6 columns. The first 3 columns are related to 1
data source and the last 3 columns are related to a second data source.

1 2 3 4 5 6

X A 50.00
X B 51.00
X C 52.00
X D 53.00 X E 53.00
X D 53.00

The fields will be sorted by amount and staggered so like amounts appear on
the same line. There may be multiple like amounts on one side and only one
equal amount on the other side.

Prior to building this sheet, a macro takes exact matches from both data
sources (all 3 fields) and copies it to another sheet. The results are the
items that remain. However, there may be matches in this data but the items
don't match exactly because of keying errors, etc.

What I would like to do is populate a form with 2 text boxes (?) that line
up the data like it appears above. The user would be able to scroll through
both text boxes at the same time and select items that are matches (could be
1 item from one side and multiple from the other, could be one and one, could
be multiple and multiple), push a button, remove those items from the text
box and the data sources, and move them to the matched sheet.

My questions a

(1) Are text boxes the way to go or should I use combo or list boxes?

(2) I'm looking for a control that will move both boxes in sync.....Can I
use a spin button to control this? Can I tie one scroll both that will move
both boxes?

(3) Once a user selects items from both sides, can I delete them from the
boxes or do I have to delete them from the spreadsheet and rebuild the boxes?

Thanks for the suggestions. If you are aware of any example that would be
similar to what I'm trying to accomplish that would be great as well.
Thanks....

--
JT

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
Spin Buttons are too Slow For Use [email protected] Excel Discussion (Misc queries) 2 June 19th 07 05:16 PM
spin boxes Pé Excel Worksheet Functions 1 October 14th 06 10:03 PM
printing a worksheet with VB buttons or text boxes Pauline Excel Discussion (Misc queries) 1 September 15th 06 01:18 AM
how to use vba spin boxes in excel JungleJim Excel Programming 1 January 12th 05 05:53 AM
Renaming Text Boxes and Buttons Don Wiss Excel Programming 4 December 26th 04 04:40 AM


All times are GMT +1. The time now is 08:01 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"