Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


Can Validation List Selection Generate MsgBox?

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
ejlupien



Joined: 14 Oct 2009
Posts: 1
Location: Ottawa

PostPosted: Wed Oct 14, 2009 1:13 pm    Post subject: Can Validation List Selection Generate MsgBox? Reply with quote

Does anyone know how to use VBA so that it can generate a msgbox after a value is selected from a validation list in a cell?

I know the following will generate the msgbox when cell A1's value changes ...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Not Intersect(Target, Range("A1")) Is Nothing Then
Msgbox " Hello"
End If

End Sub

But that doesn't work if cell A1 contains a validation list.

I tried using another if ... to test for "target.value" but without success.

If anyone knows the answer to this puzzle I would greatly appreciate it.

Thanks,

Erik
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group