From: John on 25 Mar 2010 10:34 Hi. I want to use Control-F to just to a specific page. When I arrive at that page, i want to copy all the text on that page only. It's possible to do by manually, not sure if it can be done using a macro. (if only there was a control-A that applied just to that one page)
From: Graham Mayor on 25 Mar 2010 10:59 ActiveDocument.Bookmarks("\page").Range.Copy will copy the text of the current page to the clipboard, however a 'page' is a vague concept in Word and comprises of several elements. It may not be possible to copy all those elements together, so how successful this will be depends on what is on the 'page'. -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "John" <helpme.code(a)yahoo.com> wrote in message news:ea1b85e2-e799-4643-b770-140d4ad58470(a)y17g2000yqd.googlegroups.com... > Hi. > > I want to use Control-F to just to a specific page. When I arrive at > that page, i want to copy all the text on that page only. It's > possible to do by manually, not sure if it can be done using a macro. > (if only there was a control-A that applied just to that one page) >
From: John on 25 Mar 2010 11:29 On Mar 25, 2:59 pm, "Graham Mayor" <gma...(a)REMOVETHISmvps.org> wrote: > ActiveDocument.Bookmarks("\page").Range.Copy > > will copy the text of the current page to the clipboard, however a 'page' is > a vague concept in Word and comprises of several elements. It may not be > possible to copy all those elements together, so how successful this will be > depends on what is on the 'page'. > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web sitewww.gmayor.com > Word MVP web sitehttp://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > "John" <helpme.c...(a)yahoo.com> wrote in message > > news:ea1b85e2-e799-4643-b770-140d4ad58470(a)y17g2000yqd.googlegroups.com... > > > > > Hi. > > > I want to use Control-F to just to a specific page. When I arrive at > > that page, i want to copy all the text on that page only. It's > > possible to do by manually, not sure if it can be done using a macro. > > (if only there was a control-A that applied just to that one page)- Hide quoted text - > > - Show quoted text - To Graham, It worked. Thanks so much. You are awesome. You've made my day. :-) To the whole group, Is there some code I can add to the end of that, to make it switch to the open document "C.doc" and then pasting into that document. (I will position the cursor at the end of C.doc as I assume it will paste at the point where the cursor is)
From: Graham Mayor on 25 Mar 2010 11:39 See the reply to your other thread. -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org <>>< ><<> ><<> <>>< ><<> <>>< <>><<> "John" <helpme.code(a)yahoo.com> wrote in message news:5d2febf5-7de6-4c5e-b1b3-1a02bd4a62c7(a)k17g2000yqb.googlegroups.com... On Mar 25, 2:59 pm, "Graham Mayor" <gma...(a)REMOVETHISmvps.org> wrote: > ActiveDocument.Bookmarks("\page").Range.Copy > > will copy the text of the current page to the clipboard, however a 'page' > is > a vague concept in Word and comprises of several elements. It may not be > possible to copy all those elements together, so how successful this will > be > depends on what is on the 'page'. > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web sitewww.gmayor.com > Word MVP web sitehttp://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > "John" <helpme.c...(a)yahoo.com> wrote in message > > news:ea1b85e2-e799-4643-b770-140d4ad58470(a)y17g2000yqd.googlegroups.com... > > > > > Hi. > > > I want to use Control-F to just to a specific page. When I arrive at > > that page, i want to copy all the text on that page only. It's > > possible to do by manually, not sure if it can be done using a macro. > > (if only there was a control-A that applied just to that one page)- Hide > > quoted text - > > - Show quoted text - To Graham, It worked. Thanks so much. You are awesome. You've made my day. :-) To the whole group, Is there some code I can add to the end of that, to make it switch to the open document "C.doc" and then pasting into that document. (I will position the cursor at the end of C.doc as I assume it will paste at the point where the cursor is)
From: John on 26 Mar 2010 05:20
On Mar 25, 2:59 pm, "Graham Mayor" <gma...(a)REMOVETHISmvps.org> wrote: > ActiveDocument.Bookmarks("\page").Range.Copy > > will copy the text of the current page to the clipboard, however a 'page' is > a vague concept in Word and comprises of several elements. It may not be > possible to copy all those elements together, so how successful this will be > depends on what is on the 'page'. > > -- > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > Graham Mayor - Word MVP > > My web sitewww.gmayor.com > Word MVP web sitehttp://word.mvps.org > <>>< ><<> ><<> <>>< ><<> <>>< <>><<> > > "John" <helpme.c...(a)yahoo.com> wrote in message > > news:ea1b85e2-e799-4643-b770-140d4ad58470(a)y17g2000yqd.googlegroups.com... > > > > > Hi. > > > I want to use Control-F to just to a specific page. When I arrive at > > that page, i want to copy all the text on that page only. It's > > possible to do by manually, not sure if it can be done using a macro. > > (if only there was a control-A that applied just to that one page)- Hide quoted text - > > - Show quoted text - Now that I have the answer, it's great, but I'd like to try and teach myself what ActiveDocument.Bookmarks("\page").Range.Copy means. Step-by-step. Can anyone recommend any books/video tutorials where I can learn the basics of Visual Basic. I imagine it's a very steep learning curve! Regards |