|
-
Sep 28th, 2004, 06:49 PM
#1
Thread Starter
New Member
WORD form/VBA issue - Urgent help req.
Hi all - being a newbie I'll try and be quick. I'm having trouble debuging VBA in Word (2002 SP2).
In a nutshell I'm trying to delete a bookmark - the bookmark is not being deleted and yet even in debug mode and stepping a line at a time I can see no error or issue.
I'd really appreciate any suggestions as it is doing my head in - I've surfed the net and can't find any suggestions as well as reading the help, and two books. How can something so simple be so sdifficult to resolve?
In debug mode all lines are peformed, but the bookmark remains!
Cheers
Colin.
Sub checktest()
On Error Resume Next
If ThisDocument.Bookmarks.Exists("text") Then
MsgBox "found test1 bookmark"
ActiveDocument.Bookmark("text").Range.Delete
MsgBox "after delete"
End If
End Sub
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
|