Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default listbox default datatype

I have a series of 5 listboxes on a form and the values (single select
from these listboxes are used in various calculations in the app.

Unfortunately, when I open the the workbook and the form loads, I don'
want anything selected and since the initialize event also runs th
change events of the listbox (which contains a function wit
calculations based on the selected item), I get an invalid use of nul
error.

I've now found out that whilst some of the non selected listboxes ar
returning an empty string (i.e. "") one or two of them (and it isn'
consistent which one or two) are returning Null as their value. I hav
found a way round this by duplicating the Access function Nz() t
handle Null values but I was wondering if there was any way of settin
the default datatype of a listbox? I.e. can I set my listboxes t
always return Strings?

Any help or comments are appreciated.

Thanks

--
Message posted from http://www.ExcelForum.com

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
need help- SUB: DATATYPE FOR A CELL.. monika Excel Programming 1 February 13th 04 02:13 PM
DataType Conversion AsimKhaliq Excel Programming 0 January 21st 04 12:40 AM
Listbox default [email protected] Excel Programming 1 January 1st 04 12:51 AM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Default value in Listbox Caspar[_2_] Excel Programming 2 October 14th 03 08:59 AM


All times are GMT +1. The time now is 09:11 AM.

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"