J
John Taylor-Johnston
Hi,
I'm new at this. I would like to pause my Word97 macro and input the content for Name:=""
as in Name:="Albion2"
How can I re-write this please?
Someone suggested:
rng = InputBox "Please enter a range name"
.Add Range:=Selection.Range, Name:=rng
But that invokes the File/Save-as window? What I really need to to be able to pause and input the data in the bookmark window.
I know Word97 is oldish, but still very useful for what I do. I bought and have the 2000 CD, but never got around to installing it, would you believe.
John
Sub f12()
'
' f12 Macro
' Macro recorded 15/11/04 by jtjohnston
'
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:="Albion2"
.DefaultSorting = wdSortByLocation
.ShowHidden = False
End With
End Sub
{I've also cross-posted [Sorry, bad for me to do] in microsoft.public. I'm not sure which is the appropriate newsgroup? Some have very little traffic too. Pertains to VBA or Macros? Both?!}
I'm new at this. I would like to pause my Word97 macro and input the content for Name:=""
as in Name:="Albion2"
How can I re-write this please?
Someone suggested:
rng = InputBox "Please enter a range name"
.Add Range:=Selection.Range, Name:=rng
But that invokes the File/Save-as window? What I really need to to be able to pause and input the data in the bookmark window.
I know Word97 is oldish, but still very useful for what I do. I bought and have the 2000 CD, but never got around to installing it, would you believe.
John
Sub f12()
'
' f12 Macro
' Macro recorded 15/11/04 by jtjohnston
'
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:="Albion2"
.DefaultSorting = wdSortByLocation
.ShowHidden = False
End With
End Sub
{I've also cross-posted [Sorry, bad for me to do] in microsoft.public. I'm not sure which is the appropriate newsgroup? Some have very little traffic too. Pertains to VBA or Macros? Both?!}