Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default getting error with empty listbox

i got a userform with a list box. the listbox gather data from sheet6 colum
c. it works perfect if i got data in c1 to c8.
the userform.show property and the listbox etc works perfect if i got data
in the cells
i never needed to have all the cells in colum c empty. now i saw that if i
do empty colum c i am gettin a runtime error on the list box

================================================== =============
run-time error '381':

could not set the list property. invalid property array index.

================================================== =============

im calling the userform in workbook open event. if a cell on sheet2 is
empty then the userform prompt the user to select names from the list box.
the error points to this line if i select debug...
================================================== =============

If IsEmpty(Sheets("sheet2").Range("d42")) Then UserForm1.Show
================================================== =============

let me know if i need to provide the code behind the userform

i rechecked it now. if i have data in c1 and c2 i dont get the error
thanx

Phillip


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
empty listbox giving error pswanie Excel Programming 1 June 7th 08 04:18 PM
How to remove empty cells from Listbox Corey Excel Programming 4 May 11th 07 03:09 AM
listbox.value is empty even though there is data!!! lif[_7_] Excel Programming 1 July 2nd 06 11:47 PM
Empty listbox Derek Gadd[_2_] Excel Programming 3 February 11th 04 10:49 PM


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