F
Francis Hookham
(I thought I sent ths yeaterday but cannot find it!)
The sub below works well being run from a button on a toolbar.
It would be nice to cut out the InputBox and instead select the text and let
the macro copy that, remove white space and use that as the BookmarkName.
I have tried a couple of times but am missing something - brains probably!
Thanks
Francis Hookham
Sub SetBookmarks()
BookmarkName = InputBox("Bookmark name?")
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:=BookmarkName
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Windows("Club Officers 07-08.doc").Activate
End Sub
The sub below works well being run from a button on a toolbar.
It would be nice to cut out the InputBox and instead select the text and let
the macro copy that, remove white space and use that as the BookmarkName.
I have tried a couple of times but am missing something - brains probably!
Thanks
Francis Hookham
Sub SetBookmarks()
BookmarkName = InputBox("Bookmark name?")
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:=BookmarkName
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Windows("Club Officers 07-08.doc").Activate
End Sub