Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Visual Basic:Change on event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
brujolito@gmail.com - 21 Dec 2006 10:23 GMT
I wish to reset the properties of several worksheet controls on the
entry into a cell. The visual basic help suggests using

Sub Worksheet_Change(ByVal Target as Range)

End Sub

What is the syntax to be used here is it

Sub Worksheet_Change(ByVal .Range("C11"))?

or Sub Worksheet_Change(ByVal .Range("C11") as Range)?

Sub Worksheet_Change(ByVal ("C11") as Range)?

I am using Excel 2004 on OSX 10.4

Thanks Brujolito
Don Guillett - 21 Dec 2006 14:37 GMT
put in the SHEET module
private Sub Worksheet_Change(ByVal Target as Range)
if target.address="$A$11" then
do your thing
end if
End Sub

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

>I wish to reset the properties of several worksheet controls on the
> entry into a cell. The visual basic help suggests using
[quoted text clipped - 14 lines]
>
> Thanks Brujolito

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.