![]() |
#1
|
|||
|
|||
![]()
Can anyone tell me why the bookmark is not deleting?
If objWordDoc.Bookmarks.Exists("sStdAns2") Then objWordDoc.Bookmarks("sStdAns2").Range.Delete End If Thank you. |
#2
|
||||
|
||||
![]()
Hi expatriate,
Are you trying to delete the bookmark, or the range it refers to?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
The bookmark!
|
#4
|
||||
|
||||
![]()
Hi expatriate,
In that case, use: Code:
With objWordDoc If .Bookmarks.Exists("sStdAns2") Then .Bookmarks("sStdAns2").Delete End If End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Ah, of course. Thanks a lot,
Peter |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
DanSandbergUCONN | Word | 5 | 03-06-2011 04:27 PM |
delete email message via blackberry and have it delete on my pop3 and my outlook | Iamthestorm | Outlook | 2 | 10-28-2010 12:21 AM |
Bookmark Classification | DrDoom | Word | 0 | 06-29-2010 07:08 AM |
Bookmark to another document | spqr | Word | 3 | 06-26-2009 04:51 AM |
Perhaps a newbie question I know but | as1947 | Excel | 0 | 02-05-2009 08:01 AM |