LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default ListBoxes - correct syntax

Jacqui,

Why not just use the Listbox click event if it's a userform or control
toolbox listbox, or simply assign a macro if it's a forms listbox on a
worksheet.

--

HTH

Bob Phillips

"jacqui" wrote in message
...

Can anyone help? What is the correct syntax to determine
whether the user has made a selection from a listbox?

I tried LstMinus.Selected = False
VBA didn't like that

I've also tried
LstMinus.Value = "" and
LstMinus.Value = Null

but it's still not right. Can anyone advise please.
Many thanks Jacqui VBA is below

If LstMinus.Value = Null Then
Range("C13").Select
ActiveCell.Value = ("01" & " " & sMonth & " " & 2003)
dDate = CDate(ActiveCell.Value)

iMth = DateAdd("d", 45, dDate)

GoTo Continue:

End If




 
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
What is correct syntax when using Scheduled Tasks? Doug Excel Discussion (Misc queries) 0 March 9th 09 03:49 PM
Correct syntax for IF, Then in a macro Ken[_2_] Excel Worksheet Functions 5 June 21st 08 06:19 PM
Correct Syntax TeeSee Excel Discussion (Misc queries) 6 February 28th 08 01:36 AM
Correct VBA syntax Ken G. Excel Discussion (Misc queries) 3 December 7th 05 12:35 AM
What is correct syntax for a CommandButton? Les[_4_] Excel Programming 1 August 4th 03 08:46 PM


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