#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Referencing

On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a control on
another page?

i.e I want to set Player1's ListFillRange property when a combobox on
another page changes.

Paul Smith


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Referencing

Right click the control and choose Properties from the pop-up
menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Paul W Smith" wrote in message
...
On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a
control on
another page?

i.e I want to set Player1's ListFillRange property when a
combobox on
another page changes.

Paul Smith




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Referencing

I misread your question. You can reference the control at runtime
with code like

Worksheets(1).OLEObjects("ComboBox1").Object.AddIt em "asdf"



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Paul W Smith" wrote in message
...
On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a
control on
another page?

i.e I want to set Player1's ListFillRange property when a
combobox on
another page changes.

Paul Smith




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Referencing

This is Excel programming newsgroup isn't it. I would have hoped that
something better than this manual method which is nowhere near what I am
looking for would be sent.

I would like to know how to set the ListFillRange property of an embedded
combo box, from the change event of another combo box on another worksheet.
It is really only how to reference the control I am looking for.

If anyone can help please do.

Paul Smith


"Chip Pearson" wrote in message
...
Right click the control and choose Properties from the pop-up menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Paul W Smith" wrote in message
...
On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a control on
another page?

i.e I want to set Player1's ListFillRange property when a combobox on
another page changes.

Paul Smith






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Referencing


worksheets("TestA").OleObjects("Player1").ListFill Range =

--
Regards,
Tom Ogilvy


"Paul W Smith" wrote:

On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a control on
another page?

i.e I want to set Player1's ListFillRange property when a combobox on
another page changes.

Paul Smith





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Referencing

In the code module for sheet2, use code like the following

Private Sub ComboBox1_Change()
Worksheets("Sheet1").OLEObjects("Combobox1").ListF illRange = _
Worksheets("SHeet2").Range("A1:A10").Address

End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul W Smith" wrote in message
...
This is Excel programming newsgroup isn't it. I would have
hoped that something better than this manual method which is
nowhere near what I am looking for would be sent.

I would like to know how to set the ListFillRange property of
an embedded combo box, from the change event of another combo
box on another worksheet. It is really only how to reference
the control I am looking for.

If anyone can help please do.

Paul Smith


"Chip Pearson" wrote in message
...
Right click the control and choose Properties from the pop-up
menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Paul W Smith" wrote in message
...
On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a
control on
another page?

i.e I want to set Player1's ListFillRange property when a
combobox on
another page changes.

Paul Smith








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Referencing

Thank you very much for your answer, it is what I needed. I need to
reference the worksheets OLEObjects

And thanks for not taking offence at my short tempered second posting - I
was every frustrated.

Paul Smith


"Chip Pearson" wrote in message
...
In the code module for sheet2, use code like the following

Private Sub ComboBox1_Change()
Worksheets("Sheet1").OLEObjects("Combobox1").ListF illRange = _
Worksheets("SHeet2").Range("A1:A10").Address

End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul W Smith" wrote in message
...
This is Excel programming newsgroup isn't it. I would have hoped that
something better than this manual method which is nowhere near what I am
looking for would be sent.

I would like to know how to set the ListFillRange property of an embedded
combo box, from the change event of another combo box on another
worksheet. It is really only how to reference the control I am looking
for.

If anyone can help please do.

Paul Smith


"Chip Pearson" wrote in message
...
Right click the control and choose Properties from the pop-up menu.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Paul W Smith" wrote in message
...
On a worksheet called TestA, I have a combo called 'Player1'
(=EMBED("Forms.ComboBox.1",""))

How do I refer to it's properties from the change event of a control on
another page?

i.e I want to set Player1's ListFillRange property when a combobox on
another page changes.

Paul Smith










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
Referencing help NOLA help Excel Discussion (Misc queries) 2 September 19th 09 01:38 AM
referencing a different tab by referencing a list in the current s Kevin Excel Worksheet Functions 3 July 6th 07 07:57 PM
referencing Richard[_2_] New Users to Excel 2 March 30th 07 01:50 AM
Please help with referencing! D[_4_] Excel Programming 1 September 15th 04 07:54 PM
Row Referencing Andrew Scurrah Excel Programming 3 July 22nd 04 06:59 PM


All times are GMT +1. The time now is 09:16 AM.

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"