Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking combo boxes

Hello,

I have a spreadsheet that contains 3 combo boxes which drive pivot tables.
Is there a way to syncronize all 3 pulldowns when the value of one changes.
The intent is to have all 3 pivot tables (vendors) match upon a change in any
of the pulldown boxes.

Any help is appreciated.

Thank You,
Extreem

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Linking combo boxes

If you are going to always have the same value in each combobox then why
not drive all three pivottables off a single combobox?

Anyway, assuming the comboboxes are from the Controls Toolbox and are on
the same sheet then:

Private Sub ComboBox1_Change()
On Error GoTo ErrorHandler
Application.EnableEvents = False
Me.ComboBox2.Value = Me.ComboBox1.Value
Me.ComboBox3.Value = Me.ComboBox1.Value
ErrorHandler:
Application.EnableEvents = True
End Sub

Private Sub ComboBox2_Change()
On Error GoTo ErrorHandler
Application.EnableEvents = False
Me.ComboBox1.Value = Me.ComboBox2.Value
Me.ComboBox3.Value = Me.ComboBox2.Value
ErrorHandler:
Application.EnableEvents = True
End Sub

Private Sub ComboBox3_Change()
On Error GoTo ErrorHandler
Application.EnableEvents = False
Me.ComboBox1.Value = Me.ComboBox3.Value
Me.ComboBox2.Value = Me.ComboBox3.Value
ErrorHandler:
Application.EnableEvents = True
End Sub

Hope this helps
Rowan

Extreem wrote:
Hello,

I have a spreadsheet that contains 3 combo boxes which drive pivot tables.
Is there a way to syncronize all 3 pulldowns when the value of one changes.
The intent is to have all 3 pivot tables (vendors) match upon a change in any
of the pulldown boxes.

Any help is appreciated.

Thank You,
Extreem

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
Linking Combo Boxes (Please Help) Mika Excel Worksheet Functions 0 January 8th 07 07:05 PM
Linking Combo Boxes chwillis Excel Programming 2 May 24th 05 09:51 AM
Linking multiple combo boxes Subs Excel Programming 4 May 19th 05 12:52 AM
Linking Combo Boxes dogo Excel Programming 3 September 30th 04 11:59 PM
excel 97: linking 2 combo boxes JMCN Excel Programming 1 October 22nd 03 11:05 PM


All times are GMT +1. The time now is 06:25 PM.

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

About Us

"It's about Microsoft Excel"