Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Rowsource from another workbook

I have a workbook that I am using to create estimates on. I have another
workbook that contains the databases for the estimates. How do I set a
listbox rowsource from different workbook than the form with the listbox is
in?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Rowsource from another workbook

Maybe:
[OtherWorkbook.xls]Sheet1!a1:f25

Or if the wb name is two or more words:

'[Other Workbook.xls]Sheet1'!a1:f25

"ranswrt" wrote:

I have a workbook that I am using to create estimates on. I have another
workbook that contains the databases for the estimates. How do I set a
listbox rowsource from different workbook than the form with the listbox is
in?
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Rowsource from another workbook


How do I do this when the range for the rowsource is named? The name I am
using is 'wrkshtrng'.
"JLGWhiz" wrote:

Maybe:
[OtherWorkbook.xls]Sheet1!a1:f25

Or if the wb name is two or more words:

'[Other Workbook.xls]Sheet1'!a1:f25

"ranswrt" wrote:

I have a workbook that I am using to create estimates on. I have another
workbook that contains the databases for the estimates. How do I set a
listbox rowsource from different workbook than the form with the listbox is
in?
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Rowsource from another workbook

I like to let Excel create it for me.

Dim rng as Range, RowSrc as String
Set rng =
Workbooks("SomeBook.xls").Worksheets("SomeSheet"). Range("ListRange")
RowSrc = rng.address(External:=True)

or if it's a book-level range name

Dim rng as Range, RowSrc as String
Set rng = Workbooks("SomeBook.xls").Names("ListRange").Refer sToRange
RowSrc = rng.Address(External:=True)


--
Tim Zych
www.higherdata.com
Compare data in Excel and find differences with Workbook Compare
A free, powerful, flexible Excel utility
Now with Table Compare for quick table comparisons


"ranswrt" wrote in message
...
I have a workbook that I am using to create estimates on. I have another
workbook that contains the databases for the estimates. How do I set a
listbox rowsource from different workbook than the form with the listbox
is
in?
Thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default Rowsource from another workbook

That worked great Thank You

"Tim Zych" wrote:

I like to let Excel create it for me.

Dim rng as Range, RowSrc as String
Set rng =
Workbooks("SomeBook.xls").Worksheets("SomeSheet"). Range("ListRange")
RowSrc = rng.address(External:=True)

or if it's a book-level range name

Dim rng as Range, RowSrc as String
Set rng = Workbooks("SomeBook.xls").Names("ListRange").Refer sToRange
RowSrc = rng.Address(External:=True)


--
Tim Zych
www.higherdata.com
Compare data in Excel and find differences with Workbook Compare
A free, powerful, flexible Excel utility
Now with Table Compare for quick table comparisons


"ranswrt" wrote in message
...
I have a workbook that I am using to create estimates on. I have another
workbook that contains the databases for the estimates. How do I set a
listbox rowsource from different workbook than the form with the listbox
is
in?
Thanks




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
RowSource Patrick Simonds Excel Programming 1 August 5th 06 01:25 AM
Rowsource referenced to a hidden workbook borg Excel Programming 1 April 13th 06 12:15 AM
listbox rowsource from wrong workbook David Sisson[_2_] Excel Programming 2 October 28th 05 02:13 PM
help with rowsource GMet Excel Programming 4 September 24th 04 02:30 PM
Using IF, Then with rowsource? CAA[_23_] Excel Programming 8 April 4th 04 08:56 PM


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