View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
marijan glavac[_2_] marijan glavac[_2_] is offline
external usenet poster
 
Posts: 6
Default List Box and personal.xls

thanks
but it doesn't work
I got message :
Method Cells of object '_Global faild

Marijan


"Bob Phillips" wrote in message
...
Hi Marijan,

ListBox1.RowSource = Range(Workbooks("Personal.xls").Worksheets("Radni
Nalozi").Range(Cells(2, 1), Cells(KolkoIhIma, 1))


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"marijan glavac" wrote in message
...
Hi,

I am again in big trouble.
I need to fill listbox control with data from personal.xls.
and I wrote code like this :
ListBox1.RowSource = Range(Workbooks("Personal.xls").Worksheets("Radni
Nalozi").Cells(2, 1), Workbooks("Personal.xls").Worksheets("Radni
Nalozi").Cells(KolkoIhIma, 1))

but I get - error :Type mismatic

thanks in advance,

Marijan