PC Review


Reply
Thread Tools Rate Thread

Basic combobox question re setting values

 
 
Graeme
Guest
Posts: n/a
 
      2nd Jan 2008
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 With Quote
 
 
 
 
Vergel Adriano
Guest
Posts: n/a
 
      2nd Jan 2008
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 With Quote
 
Graeme
Guest
Posts: n/a
 
      3rd Jan 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic question before I try setting this up Chatnoir11 Microsoft Access Getting Started 3 30th Mar 2009 10:50 PM
setting crystal reports values from visual basic.net =?Utf-8?B?R2VyYWxkaW5lIEhvYmxleQ==?= Microsoft VB .NET 1 8th Nov 2004 07:40 AM
Setting Combobox Values Ripan Microsoft Excel Misc 0 3rd Mar 2004 10:51 PM
Basic ComboBox question David Sworder Microsoft Dot NET Framework Forms 2 6th Oct 2003 04:17 AM
Basic ComboBox question David Sworder Microsoft C# .NET 2 6th Oct 2003 03:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.