LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Could not set the RowSource property

cboTurbines.RowSource =
Thisworkbook.Names("turbines").ReferstoRange.Addre ss(1,1,,True)



--
Regards,
Tom Ogilvy


"TMesh" wrote in message
...
Hello

I have a form with a combo box that I show when the workbook is opened. I
set the RowSource property in the Intialize event of the UserForm using

the
following code:

'Load the turbine list box
cboTurbines.RowSource = "Turbines"

Where "Turbines" is a name defined within the current workbook.

My problem occurs when I save the workbook as an Add-In (XLA). I install

it
as an addin into another workbook and from within a procedure run the
following code:

frmInput.Show

When the initialize event runs with the same code above to populate the
ComboBox, I get the error message "Could not set the RowSource property.
Invalid proerty value" when trying to set the RowSource property of a
ComboBox.

I have tried to set the RowSource property to the following:

'Load the turbine list box
cboTurbines.RowSource = shtTurbines.Range("Turbines").Range.Value

With no success.

Would appreciate any help i could get to propery populate the ComboBox

when
the workbook is saved as and Excel Add-In.

Thanks
Tom





 
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
Dropdown Rowsource John C.[_4_] Excel Programming 0 July 28th 04 01:35 AM
Using IF, Then with rowsource? CAA[_23_] Excel Programming 8 April 4th 04 08:56 PM
RowSource in ListBox aet-inc[_2_] Excel Programming 1 December 3rd 03 12:41 AM
Dropdown Rowsource Aechelon[_7_] Excel Programming 1 October 24th 03 11:48 PM
listbox rowsource Christy[_2_] Excel Programming 4 September 20th 03 11:44 PM


All times are GMT +1. The time now is 01:45 AM.

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"