Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When do I need Rng.Address(External:=True)


I have created an Addin that contains a ListBox populated by a rowsourc
reference.
The Excel file component of the addin works fine but somehow th
Listbox fails to load up in its Addin enviroment. The relevant part o
the code reads:


ListBox1.RowSource="ef2:em" & [em65536].End(xlUp).Row

I vaguely sense this may be a classical case wher
Address(External:-True) may be required but I have lost my way a bit.

Thanks for any help.


Davi

--
david
-----------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...fo&userid=2064
View this thread: http://www.excelforum.com/showthread.php?threadid=49547

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default When do I need Rng.Address(External:=True)


your code will take the range from the activeworkbook.

better to do like:

Private Sub UserForm_Initialize()
With ThisWorkbook.Sheets(3).Columns("EF")
Me.ComboBox1.RowSource = Range( _
.Cells(2), _
.Cells(Rows.Count).End(xlUp) _
).Address(external:=True)
End With
End Sub


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


davidm wrote :


I have created an Addin that contains a ListBox populated by a
rowsource reference.
The Excel file component of the addin works fine but somehow the
Listbox fails to load up in its Addin enviroment. The relevant part
of the code reads:


ListBox1.RowSource="ef2:em" & [em65536].End(xlUp).Row

I vaguely sense this may be a classical case where
Address(External:-True) may be required but I have lost my way a bit.

Thanks for any help.


David

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
SUM(ADDRESS(ROW(C2),COLUMN(C2),1,TRUE):ADDRESS(C14+1,COLUMN(C2),1, Khoshravan Excel Worksheet Functions 5 July 15th 07 07:13 PM
how to address external sheet as reference NK Excel Discussion (Misc queries) 1 January 23rd 07 01:32 AM
External cell references using INDIRECT & ADDRESS Conan Kelly Excel Worksheet Functions 1 December 28th 06 06:05 PM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
Making Address function & references as links to external files ?? dalejrstwin Excel Programming 0 April 26th 05 02:34 AM


All times are GMT +1. The time now is 11:24 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"