PC Review


Reply
Thread Tools Rate Thread

combobox rowsource = named range ??

 
 
michael.beckinsale
Guest
Posts: n/a
 
      24th Jul 2009
Hi All,

I am sure this is quite simple but l have got my 'friday its the end
of the week' head on and can't fathom it out!

Can anybody tell me why the following code is not working & how to
correct it. The form is in my 'personal.xls' file and the ranges
referred to are in the 'personal.xls' file. When l launch the form
with the 'personal.xls' window active the form populates correctly but
whenever a different window is active the form will not populate
correctly.

Private Sub UserForm_Initialize()

Dim MySheet As Worksheet
Set MySheet = ThisWorkbook.Sheets("MyFormats")
cbFontName.RowSource = MySheet.Range("MyFontName").Address
cbFontSize.RowSource = MySheet.Range("FontSize").Address
cbRowHeight.RowSource = MySheet.Range("RowHeight").Address
cbDecimal.RowSource = MySheet.Range("Decimal").Address
cbNegative.RowSource = MySheet.Range("NegativeDisplay").Address

End Sub

All help greatly appreciated

Regards

Michael
 
Reply With Quote
 
 
 
 
michael.beckinsale
Guest
Posts: n/a
 
      24th Jul 2009
Hi All,

Problem solved by appending (external:=True) to each code line
ending .Address

Regards

Michael

 
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
named range as rowsource =?Utf-8?B?S2FyZW41Mw==?= Microsoft Excel Programming 15 17th Sep 2007 03:00 AM
Forms - Named Range as the RowSource Michael Beckinsale Microsoft Excel Programming 4 11th Jan 2006 12:51 AM
problem assigning range returned by function, to combobox rowsource Kate Microsoft Excel Programming 5 16th Aug 2005 12:42 AM
Combobox and named range as source Matt Jensen Microsoft Excel Programming 3 30th Dec 2004 02:47 PM
ComboBox RowSource --- can I use a userform OWC10 spreadsheet range? Dean Frazier Microsoft Excel Programming 0 11th Feb 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


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