From: Graham Mayor on 26 Mar 2010 02:45 On further reflection and after re-reading the original question - my comment does not actually cover what was asked :( -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message news:uvMIk5KzKHA.2644(a)TK2MSFTNGP04.phx.gbl... > As implied in the post Stefan quoted you would need three macros to make > it all work transparently > > Sub FileSave() > On Error Resume Next > ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" > ActiveDocument.Save > End Sub > > Sub FileSaveAs() > On Error Resume Next > ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" > Dialogs(wdDialogFileSaveAs).Show > End Sub > > Sub AutoOpen() > If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then > ActiveDocument.Bookmarks("OpenAt").Select > End If > End Sub > > The documents will thus always open at the place the cursor was when the > document was saved. > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web site www.gmayor.com > Word MVP web site http://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > > "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message > news:uUd1onEzKHA.244(a)TK2MSFTNGP06.phx.gbl... >> In Word 2007, you can use a macro to return to a specific location in a >> document (after it has been closed and reopened). MVP Graham Mayor has >> given this solution in a different thread: >> >> >> ******************** >> You can work around it easily enough with a couple of macros in the >> normal >> template e.g. >> >> Sub OpenAt() >> ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="OpenAt" >> End Sub >> >> Added to a keyboard shortcut or to a button on the QAT, when run it will >> insert a bookmark at the cursor position called OpenAt. Or you could >> incorporate the command line in a macro to intercept the Save and Save as >> functions to mark the last cursor position before saving the document. >> >> The following macro will check for that bookmark and select it if present >> when a document is opened. >> >> Sub AutoOpen() >> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >> ActiveDocument.Bookmarks("OpenAt").Select >> End If >> End Sub >> >> http://www.gmayor.com/installing_macro.htm >> >> ******************** >> >> >> -- >> Stefan Blom >> Microsoft Word MVP >> >> >> >> >> >> >> >> >> "DeanH" <DeanH(a)discussions.microsoft.com> wrote in message >> news:2A5648D6-7E58-4020-9A0E-9C9FEB6E8A73(a)microsoft.com... >>> Shft+F5 will toggle to the last 3 places of edit. >>> It also works after shutdown and reopen, abet only to the last place of >>> an >>> edit. >>> I belive this function was dropped from 2007 but retruned in 2010. >>> Hope this helps >>> DeanH >>> >>> >>> "Maanu" wrote: >>> >>>> Hi, >>>> >>>> Curser was in page1 of a document. I scrolled to page 5 and selected an >>>> item >>>> in page 5. Now I want to go to previous location. >>>> >>>> Is there a shortcut for doing this? >>>> >>>> Thanks! >> >> >> > >
From: Stefan Blom on 26 Mar 2010 05:48 Well, the original question is covered by using the Shift+F5 shortcut, as suggested by Terry and Dean. Your code deals with the case of going back to the last edit point in a document that was closed and then reopened, doesn't it? Maybe I'm missing something? -- Stefan Blom Microsoft Word MVP "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message news:%23Q1wT$KzKHA.5940(a)TK2MSFTNGP02.phx.gbl... > On further reflection and after re-reading the original question - my > comment does not actually cover what was asked :( > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web site www.gmayor.com > Word MVP web site http://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:uvMIk5KzKHA.2644(a)TK2MSFTNGP04.phx.gbl... >> As implied in the post Stefan quoted you would need three macros to make >> it all work transparently >> >> Sub FileSave() >> On Error Resume Next >> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >> ActiveDocument.Save >> End Sub >> >> Sub FileSaveAs() >> On Error Resume Next >> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >> Dialogs(wdDialogFileSaveAs).Show >> End Sub >> >> Sub AutoOpen() >> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >> ActiveDocument.Bookmarks("OpenAt").Select >> End If >> End Sub >> >> The documents will thus always open at the place the cursor was when the >> document was saved. >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message >> news:uUd1onEzKHA.244(a)TK2MSFTNGP06.phx.gbl... >>> In Word 2007, you can use a macro to return to a specific location in a >>> document (after it has been closed and reopened). MVP Graham Mayor has >>> given this solution in a different thread: >>> >>> >>> ******************** >>> You can work around it easily enough with a couple of macros in the >>> normal >>> template e.g. >>> >>> Sub OpenAt() >>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="OpenAt" >>> End Sub >>> >>> Added to a keyboard shortcut or to a button on the QAT, when run it will >>> insert a bookmark at the cursor position called OpenAt. Or you could >>> incorporate the command line in a macro to intercept the Save and Save >>> as >>> functions to mark the last cursor position before saving the document. >>> >>> The following macro will check for that bookmark and select it if >>> present >>> when a document is opened. >>> >>> Sub AutoOpen() >>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>> ActiveDocument.Bookmarks("OpenAt").Select >>> End If >>> End Sub >>> >>> http://www.gmayor.com/installing_macro.htm >>> >>> ******************** >>> >>> >>> -- >>> Stefan Blom >>> Microsoft Word MVP >>> >>> >>> >>> >>> >>> >>> >>> >>> "DeanH" <DeanH(a)discussions.microsoft.com> wrote in message >>> news:2A5648D6-7E58-4020-9A0E-9C9FEB6E8A73(a)microsoft.com... >>>> Shft+F5 will toggle to the last 3 places of edit. >>>> It also works after shutdown and reopen, abet only to the last place of >>>> an >>>> edit. >>>> I belive this function was dropped from 2007 but retruned in 2010. >>>> Hope this helps >>>> DeanH >>>> >>>> >>>> "Maanu" wrote: >>>> >>>>> Hi, >>>>> >>>>> Curser was in page1 of a document. I scrolled to page 5 and selected >>>>> an >>>>> item >>>>> in page 5. Now I want to go to previous location. >>>>> >>>>> Is there a shortcut for doing this? >>>>> >>>>> Thanks! >>> >>> >>> >> >> > >
From: AR88 Enthusiast on 26 Mar 2010 05:55 Was this partly in answer to me? I didn't use a Macro or any programming previously.. How about the help? "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message news:eTPsGmMzKHA.5940(a)TK2MSFTNGP02.phx.gbl... > Well, the original question is covered by using the Shift+F5 shortcut, as > suggested by Terry and Dean. Your code deals with the case of going back > to the last edit point in a document that was closed and then reopened, > doesn't it? Maybe I'm missing something? > > -- > Stefan Blom > Microsoft Word MVP > > > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:%23Q1wT$KzKHA.5940(a)TK2MSFTNGP02.phx.gbl... >> On further reflection and after re-reading the original question - my >> comment does not actually cover what was asked :( >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message >> news:uvMIk5KzKHA.2644(a)TK2MSFTNGP04.phx.gbl... >>> As implied in the post Stefan quoted you would need three macros to make >>> it all work transparently >>> >>> Sub FileSave() >>> On Error Resume Next >>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>> ActiveDocument.Save >>> End Sub >>> >>> Sub FileSaveAs() >>> On Error Resume Next >>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>> Dialogs(wdDialogFileSaveAs).Show >>> End Sub >>> >>> Sub AutoOpen() >>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>> ActiveDocument.Bookmarks("OpenAt").Select >>> End If >>> End Sub >>> >>> The documents will thus always open at the place the cursor was when the >>> document was saved. >>> >>> -- >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> Graham Mayor - Word MVP >>> >>> My web site www.gmayor.com >>> Word MVP web site http://word.mvps.org >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> >>> >>> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message >>> news:uUd1onEzKHA.244(a)TK2MSFTNGP06.phx.gbl... >>>> In Word 2007, you can use a macro to return to a specific location in a >>>> document (after it has been closed and reopened). MVP Graham Mayor has >>>> given this solution in a different thread: >>>> >>>> >>>> ******************** >>>> You can work around it easily enough with a couple of macros in the >>>> normal >>>> template e.g. >>>> >>>> Sub OpenAt() >>>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="OpenAt" >>>> End Sub >>>> >>>> Added to a keyboard shortcut or to a button on the QAT, when run it >>>> will >>>> insert a bookmark at the cursor position called OpenAt. Or you could >>>> incorporate the command line in a macro to intercept the Save and Save >>>> as >>>> functions to mark the last cursor position before saving the document. >>>> >>>> The following macro will check for that bookmark and select it if >>>> present >>>> when a document is opened. >>>> >>>> Sub AutoOpen() >>>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>>> ActiveDocument.Bookmarks("OpenAt").Select >>>> End If >>>> End Sub >>>> >>>> http://www.gmayor.com/installing_macro.htm >>>> >>>> ******************** >>>> >>>> >>>> -- >>>> Stefan Blom >>>> Microsoft Word MVP >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> "DeanH" <DeanH(a)discussions.microsoft.com> wrote in message >>>> news:2A5648D6-7E58-4020-9A0E-9C9FEB6E8A73(a)microsoft.com... >>>>> Shft+F5 will toggle to the last 3 places of edit. >>>>> It also works after shutdown and reopen, abet only to the last place >>>>> of an >>>>> edit. >>>>> I belive this function was dropped from 2007 but retruned in 2010. >>>>> Hope this helps >>>>> DeanH >>>>> >>>>> >>>>> "Maanu" wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Curser was in page1 of a document. I scrolled to page 5 and selected >>>>>> an >>>>>> item >>>>>> in page 5. Now I want to go to previous location. >>>>>> >>>>>> Is there a shortcut for doing this? >>>>>> >>>>>> Thanks! >>>> >>>> >>>> >>> >>> >> >> > >
From: Suzanne S. Barnhill on 26 Mar 2010 07:03 No, as can be seen by the quoting and threading, this reply was to Graham Mayor. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "AR88 Enthusiast" <nospam(a)here.com> wrote in message news:4bac849b(a)dnews.tpgi.com.au... > Was this partly in answer to me? I didn't use a Macro or any programming > previously.. How about the help? > > "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message > news:eTPsGmMzKHA.5940(a)TK2MSFTNGP02.phx.gbl... >> Well, the original question is covered by using the Shift+F5 shortcut, as >> suggested by Terry and Dean. Your code deals with the case of going back >> to the last edit point in a document that was closed and then reopened, >> doesn't it? Maybe I'm missing something? >> >> -- >> Stefan Blom >> Microsoft Word MVP >> >> >> >> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message >> news:%23Q1wT$KzKHA.5940(a)TK2MSFTNGP02.phx.gbl... >>> On further reflection and after re-reading the original question - my >>> comment does not actually cover what was asked :( >>> >>> -- >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> Graham Mayor - Word MVP >>> >>> My web site www.gmayor.com >>> Word MVP web site http://word.mvps.org >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> >>> >>> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message >>> news:uvMIk5KzKHA.2644(a)TK2MSFTNGP04.phx.gbl... >>>> As implied in the post Stefan quoted you would need three macros to >>>> make it all work transparently >>>> >>>> Sub FileSave() >>>> On Error Resume Next >>>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>>> ActiveDocument.Save >>>> End Sub >>>> >>>> Sub FileSaveAs() >>>> On Error Resume Next >>>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>>> Dialogs(wdDialogFileSaveAs).Show >>>> End Sub >>>> >>>> Sub AutoOpen() >>>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>>> ActiveDocument.Bookmarks("OpenAt").Select >>>> End If >>>> End Sub >>>> >>>> The documents will thus always open at the place the cursor was when >>>> the document was saved. >>>> >>>> -- >>>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>>> Graham Mayor - Word MVP >>>> >>>> My web site www.gmayor.com >>>> Word MVP web site http://word.mvps.org >>>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>>> >>>> >>>> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message >>>> news:uUd1onEzKHA.244(a)TK2MSFTNGP06.phx.gbl... >>>>> In Word 2007, you can use a macro to return to a specific location in >>>>> a document (after it has been closed and reopened). MVP Graham Mayor >>>>> has given this solution in a different thread: >>>>> >>>>> >>>>> ******************** >>>>> You can work around it easily enough with a couple of macros in the >>>>> normal >>>>> template e.g. >>>>> >>>>> Sub OpenAt() >>>>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="OpenAt" >>>>> End Sub >>>>> >>>>> Added to a keyboard shortcut or to a button on the QAT, when run it >>>>> will >>>>> insert a bookmark at the cursor position called OpenAt. Or you could >>>>> incorporate the command line in a macro to intercept the Save and Save >>>>> as >>>>> functions to mark the last cursor position before saving the document. >>>>> >>>>> The following macro will check for that bookmark and select it if >>>>> present >>>>> when a document is opened. >>>>> >>>>> Sub AutoOpen() >>>>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>>>> ActiveDocument.Bookmarks("OpenAt").Select >>>>> End If >>>>> End Sub >>>>> >>>>> http://www.gmayor.com/installing_macro.htm >>>>> >>>>> ******************** >>>>> >>>>> >>>>> -- >>>>> Stefan Blom >>>>> Microsoft Word MVP >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> "DeanH" <DeanH(a)discussions.microsoft.com> wrote in message >>>>> news:2A5648D6-7E58-4020-9A0E-9C9FEB6E8A73(a)microsoft.com... >>>>>> Shft+F5 will toggle to the last 3 places of edit. >>>>>> It also works after shutdown and reopen, abet only to the last place >>>>>> of an >>>>>> edit. >>>>>> I belive this function was dropped from 2007 but retruned in 2010. >>>>>> Hope this helps >>>>>> DeanH >>>>>> >>>>>> >>>>>> "Maanu" wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Curser was in page1 of a document. I scrolled to page 5 and selected >>>>>>> an >>>>>>> item >>>>>>> in page 5. Now I want to go to previous location. >>>>>>> >>>>>>> Is there a shortcut for doing this? >>>>>>> >>>>>>> Thanks! >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
From: Graham Mayor on 26 Mar 2010 10:50 Agreed that Shift+F5 is simpler while the document remains open. The macros in my original reply were aimed at the situation where the document has been closed, where Shift+F5 no longer works in Word 2007. The subset you quoted from an earlier post allows a bookmark to be set manually and the autoopen macro, whether run on opening a document or manually from a toolbar button will return to that bookmarked location. Obviously I should not have responded before having my morning cup of tea and reading the whole thread ;) -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message news:eTPsGmMzKHA.5940(a)TK2MSFTNGP02.phx.gbl... > Well, the original question is covered by using the Shift+F5 shortcut, as > suggested by Terry and Dean. Your code deals with the case of going back > to the last edit point in a document that was closed and then reopened, > doesn't it? Maybe I'm missing something? > > -- > Stefan Blom > Microsoft Word MVP > > > > "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message > news:%23Q1wT$KzKHA.5940(a)TK2MSFTNGP02.phx.gbl... >> On further reflection and after re-reading the original question - my >> comment does not actually cover what was asked :( >> >> -- >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> Graham Mayor - Word MVP >> >> My web site www.gmayor.com >> Word MVP web site http://word.mvps.org >> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >> >> >> "Graham Mayor" <gmayor(a)REMOVETHISmvps.org> wrote in message >> news:uvMIk5KzKHA.2644(a)TK2MSFTNGP04.phx.gbl... >>> As implied in the post Stefan quoted you would need three macros to make >>> it all work transparently >>> >>> Sub FileSave() >>> On Error Resume Next >>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>> ActiveDocument.Save >>> End Sub >>> >>> Sub FileSaveAs() >>> On Error Resume Next >>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt" >>> Dialogs(wdDialogFileSaveAs).Show >>> End Sub >>> >>> Sub AutoOpen() >>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>> ActiveDocument.Bookmarks("OpenAt").Select >>> End If >>> End Sub >>> >>> The documents will thus always open at the place the cursor was when the >>> document was saved. >>> >>> -- >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> Graham Mayor - Word MVP >>> >>> My web site www.gmayor.com >>> Word MVP web site http://word.mvps.org >>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<> >>> >>> >>> "Stefan Blom" <StefanBlom(a)discussions.microsoft.com> wrote in message >>> news:uUd1onEzKHA.244(a)TK2MSFTNGP06.phx.gbl... >>>> In Word 2007, you can use a macro to return to a specific location in a >>>> document (after it has been closed and reopened). MVP Graham Mayor has >>>> given this solution in a different thread: >>>> >>>> >>>> ******************** >>>> You can work around it easily enough with a couple of macros in the >>>> normal >>>> template e.g. >>>> >>>> Sub OpenAt() >>>> ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="OpenAt" >>>> End Sub >>>> >>>> Added to a keyboard shortcut or to a button on the QAT, when run it >>>> will >>>> insert a bookmark at the cursor position called OpenAt. Or you could >>>> incorporate the command line in a macro to intercept the Save and Save >>>> as >>>> functions to mark the last cursor position before saving the document. >>>> >>>> The following macro will check for that bookmark and select it if >>>> present >>>> when a document is opened. >>>> >>>> Sub AutoOpen() >>>> If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then >>>> ActiveDocument.Bookmarks("OpenAt").Select >>>> End If >>>> End Sub >>>> >>>> http://www.gmayor.com/installing_macro.htm >>>> >>>> ******************** >>>> >>>> >>>> -- >>>> Stefan Blom >>>> Microsoft Word MVP >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> "DeanH" <DeanH(a)discussions.microsoft.com> wrote in message >>>> news:2A5648D6-7E58-4020-9A0E-9C9FEB6E8A73(a)microsoft.com... >>>>> Shft+F5 will toggle to the last 3 places of edit. >>>>> It also works after shutdown and reopen, abet only to the last place >>>>> of an >>>>> edit. >>>>> I belive this function was dropped from 2007 but retruned in 2010. >>>>> Hope this helps >>>>> DeanH >>>>> >>>>> >>>>> "Maanu" wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Curser was in page1 of a document. I scrolled to page 5 and selected >>>>>> an >>>>>> item >>>>>> in page 5. Now I want to go to previous location. >>>>>> >>>>>> Is there a shortcut for doing this? >>>>>> >>>>>> Thanks! >>>> >>>> >>>> >>> >>> >> >> > >
First
|
Prev
|
Pages: 1 2 Prev: Word 2002 Printing Problem with Gradient Next: How do I hide the formatting symbols? |