Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Basic combobox question re setting values

Hi,
I have a number of combobox's which I've created from the Forms toolbar and
they each have a macro assigned to them. The user just needs to select a
variable for each, but for demonstration purposes, I am trying to write
another macro which populates the combobox's with certain values. For
example, if the first combobox has an input range of A, B, C and D, and the
second combobox has an input range of 10, 20, 30 and 40, I am trying to get a
macro which automatically selects B and 40 for a scenario which I am trying
to demo.
Thank you in advance.
Graeme
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Basic combobox question re setting values

If you have your combo boxes linked to a cell, you can set the value of the
link cell with the correct index and the combobox will update. For example,
if your combo box 1 is linked to A1 and combo box 2 is linked to A2, you can
set A1 to 2 for "B" and A2 to 4 for "40".



--
Hope that helps.

Vergel Adriano


"Graeme" wrote:

Hi,
I have a number of combobox's which I've created from the Forms toolbar and
they each have a macro assigned to them. The user just needs to select a
variable for each, but for demonstration purposes, I am trying to write
another macro which populates the combobox's with certain values. For
example, if the first combobox has an input range of A, B, C and D, and the
second combobox has an input range of 10, 20, 30 and 40, I am trying to get a
macro which automatically selects B and 40 for a scenario which I am trying
to demo.
Thank you in advance.
Graeme

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Basic combobox question re setting values

thank you

"Vergel Adriano" wrote:

If you have your combo boxes linked to a cell, you can set the value of the
link cell with the correct index and the combobox will update. For example,
if your combo box 1 is linked to A1 and combo box 2 is linked to A2, you can
set A1 to 2 for "B" and A2 to 4 for "40".



--
Hope that helps.

Vergel Adriano


"Graeme" wrote:

Hi,
I have a number of combobox's which I've created from the Forms toolbar and
they each have a macro assigned to them. The user just needs to select a
variable for each, but for demonstration purposes, I am trying to write
another macro which populates the combobox's with certain values. For
example, if the first combobox has an input range of A, B, C and D, and the
second combobox has an input range of 10, 20, 30 and 40, I am trying to get a
macro which automatically selects B and 40 for a scenario which I am trying
to demo.
Thank you in advance.
Graeme

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
Create Combobox Visual Basic Amoni Excel Programming 1 July 18th 05 09:11 AM
Dragging a Formula & Basic Setting Changes chande00 Excel Discussion (Misc queries) 4 June 2nd 05 09:43 PM
Combobox setting Pat Excel Programming 4 April 14th 04 09:48 PM
Setting ComboBox Value Ripan[_5_] Excel Programming 0 March 3rd 04 10:52 PM
Visual Basic: Combobox Complications Charlie[_4_] Excel Programming 2 August 8th 03 09:24 PM


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