Numerical Difference between Bookmarks

D

Dawn

I need to write an on-entry macro that will jump to a specific input field further on in my online form if the numerical difference between two bookmarks (that have been input as numbers) is less than zero. Please could someone advise me of the easiest way to do this.
Thanks for your help
Dawn
 
P

Perry

How about something like

Sub My_OnExit()
With ActiveDocument
If CDbl(.Bookmarks("Bkm1").Range.Text) - _
CDbl(.Bookmarks("Bkm1").Range.Text) < 0 Then

.FormFields("InputField").Select
End If
End With
End Sub

Substitute above bookmarks/formfield names to match your's
If not helpfull, kindly specify a bit more ...

Krgrds,
Perry

Dawn said:
I need to write an on-entry macro that will jump to a specific input field
further on in my online form if the numerical difference between two
bookmarks (that have been input as numbers) is less than zero. Please could
someone advise me of the easiest way to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top