Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2004, 02:28 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Combo Boxes to update cells

Hi All,

I could do with a little help involving a problem I have. I need to generate a means of entering data into four cells in adjacent columns. However I need to display a list box that has two columns for each to ensure the right data is entered. Column 1 would be a 3 digit alpha numeric code and column 2 a description to aid the user. The complication is that the columns are part of a larger sheet and once the data values have been entered for the entire row I need to be able to filter by them each respectively or in any combination with any of the other columns on the sheet.

My thoughts so far have been to generate some VB script to open an input form for the four columns when you move to the first affected cell in the row you are working on. The form would display the four list 2 column list boxes allowing you to select the necessary values for each of the 4 columns from the same form. Then you would click next, it would subsequently update the 4 columns in the respective row with the selected values and move to the cell in the next column on the same row. This would be repeated for every subsequent row added except the header.

I relies that access would probably be a simpler place to do this sort of thing although I am restricted to excel for the purposes of this project.

Thanks in advance to any help any of you can give, i appreciate it.

Please forgive any mistakes in etiquette on my part as this is my first time on this forum.

Thanks again.

J.:)
 
Old December 3rd, 2004, 11:00 AM
Authorized User
 
Join Date: Jun 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your suggection for comboboxes is fine, they could easily pick up data from a 2 column RowSource, make sure your combobox has 2 columns and the bound column is 2, this way you get the data and not the code.

I would have the control source as a single row at the top of the sheet and when you click next on the user form it copies this row to the bottom of the table, then update the paste row by one. If you have an autofilter on the table, it should give the results you are after.

Martin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down boxes in Cells and selecting ranges tbmbob Excel VBA 0 June 1st, 2006 09:12 AM
3 combo boxes ttkt Beginning PHP 0 July 2nd, 2005 02:20 PM
Combo boxes socoolbrewster Access 1 March 4th, 2004 09:28 AM
combo boxes damnnono_86 Access 2 October 15th, 2003 09:00 PM
Combo Boxes Louisa Beginning VB 6 2 September 10th, 2003 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.