Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Wed Jun 11 14:05:18 CDT 2008
Hi Rocky, I assume the code below is executed from within MS Word VBIDE and the doc to have all the text selected of is an ActiveDocument: Dim wdoc As Word.Document Set wdoc = Application.ActiveDocument wdoc.Application.Selection.WholeStory -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 9:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com <http://www.e-z-mrp.com/> www.bchacc.com <http://www.bchacc.com/> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com