|
-
Jan 29th, 2006, 09:44 PM
#1
Thread Starter
Member
formula field can do action
can a formula field execute a script? or do some action such as making a dialog box note ?
-
Jan 30th, 2006, 03:50 AM
#2
Re: formula field can do action
VB Code:
If Range("A1").value = 1 then 'call action
The result of your formula should be 1 in this case.
Very small example:
VB Code:
If range("A1").value = 1 then
MessagBox "Range("A1").Value = 1", vbinformation +vbokonly, "Message"
End if
Hope this is what you are looking for.
-
Jan 30th, 2006, 03:58 AM
#3
Thread Starter
Member
Re: formula field can do action
 Originally Posted by Radjesh Klauke[Highlight=VB
If range("A1").value = 1 then
MessagBox "Range("A1").Value = 1", vbinformation +vbokonly, "Message"
End if[/Highlight]
where would you write the vbcode in the macro environment(VBA ide) ?
-
Jan 30th, 2006, 05:32 AM
#4
Re: formula field can do action
The page where you want to execute the code. If the formula is in page one place the code in the IDE also on page one.
-
Jan 30th, 2006, 02:22 PM
#5
Re: formula field can do action
Also be aware that each worksheet has a Worksheet_Change event which fires every time a cell is changed. This event returns a range named Target to tell you which range was changed, so you can use this to trap changes in cells and cause code to action accordingly.
zaza
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|