A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

form validation determines which sheet to add data



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2010, 12:58 PM posted to microsoft.public.excel.misc
VTkelly
external usenet poster
 
Posts: 1
Default form validation determines which sheet to add data

Let's say I'm creating a form that a non tech savvy used car dealer uses to
enter his newly acquired vehicles to the excel workbook. Each sheet of the
workbook is a unique model year of the car. (That would allow him to quickly
refer to all vehicles of a given year.) On the input form, I would like
validation such that if he selected "2006" from the drop down list of vehicle
years, the data from the form would be AUTOMATICALLY be added to sheet
"2006", regardless of which sheet is currently showing at the time. What
would the code look like? I suspect it may require several rows of "if ' '
=" sorta statements.
  #2  
Old May 13th, 2010, 01:21 PM posted to microsoft.public.excel.misc
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default form validation determines which sheet to add data

Hi

Don't!!

Enter all of the data onto one sheet, with a column for Year, then turn
the data into a List (XL2003) or a Table (XL2007)

XL2003palace cursor within data areaDataListclick my List has headers
XL200tpalace cursor within data areaInsert tabTableclick my Table
has headers

You will now have dropdowns at the head of each column.
Use the dropdown on Year to select 2006, and you will see a filtered
list of all 2006 Cars

Similarly, if one of the column headings is Fuel, with entries of petrol
or diesel, then the list can be quickly filtered to show only the cars
of a given fuel type

Equally, you can choose to sort the whole set of data by any of the
column headings you have used for your table.
--
Regards
Roger Govier

VTkelly wrote:
Let's say I'm creating a form that a non tech savvy used car dealer uses to
enter his newly acquired vehicles to the excel workbook. Each sheet of the
workbook is a unique model year of the car. (That would allow him to quickly
refer to all vehicles of a given year.) On the input form, I would like
validation such that if he selected "2006" from the drop down list of vehicle
years, the data from the form would be AUTOMATICALLY be added to sheet
"2006", regardless of which sheet is currently showing at the time. What
would the code look like? I suspect it may require several rows of "if ' '
=" sorta statements.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.