Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default using a drop down box to change the value in another box

My colleague has a workbook with multiple worksheets. the first sheet is a
sum of the data, and the other sheets have the data needed for the
calculations.

On the first sheet, I would like to have a drop down box that changes the
values in multiple rows (eg: C4-K4) depending on what is selected on the
drop down box (the drop down box value will be the names of the other sheets).


Would this be best done as a macro, in VB, or another way?

also, I thought of using a case select to choose the rows (ie: change the "C"
in "C4" to the next letter), but it has been awhile since I used them. would
they be the best solution rather than having LOADS of lines of code (sorta
answered my own question, but I don't know enough about coding in excel,
other than it may be similar to other office VB code)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200705/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default using a drop down box to change the value in another box

You could use a bunch of INDIRECT functions, keyed to the cell with the sheet name (if the
'drop-dwon box is from Data Validation, using the list feature), along the lines of:

=INDIRECT("'" & A1 & "'!B3")
=INDIRECT("'" & A1 & "'!C3")

Etc...

HTH,
Bernie
MS Excel MVP


"OTWarrior via OfficeKB.com" <u33269@uwe wrote in message news:72e824a7136df@uwe...
My colleague has a workbook with multiple worksheets. the first sheet is a
sum of the data, and the other sheets have the data needed for the
calculations.

On the first sheet, I would like to have a drop down box that changes the
values in multiple rows (eg: C4-K4) depending on what is selected on the
drop down box (the drop down box value will be the names of the other sheets).


Would this be best done as a macro, in VB, or another way?

also, I thought of using a case select to choose the rows (ie: change the "C"
in "C4" to the next letter), but it has been awhile since I used them. would
they be the best solution rather than having LOADS of lines of code (sorta
answered my own question, but I don't know enough about coding in excel,
other than it may be similar to other office VB code)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200705/1



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
How do I change letters in a drop down box Champion Excel Worksheet Functions 1 May 1st 07 10:50 PM
change event for drop down violet Excel Programming 1 October 18th 06 08:53 AM
How do I change the output value of a drop down box? DALLIN Excel Discussion (Misc queries) 1 January 24th 06 05:31 PM
Getting drop down to change next cell KevinR Excel Discussion (Misc queries) 3 December 29th 05 09:17 PM
change info in other cells when i change a number in a drop list? macbr549 Excel Discussion (Misc queries) 2 September 11th 05 02:07 AM


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