[AccessD] Automation Question

Rocky Smolin at Beach Access Software rockysmolin at bchacc.com
Thu Jun 12 10:16:52 CDT 2008


Too easy!!!

One line instead of 4?  

Works a treat.

Thanks Shamil.

Best, 


Rocky Smolin
Beach Access Software
858-259-4334
www.e-z-mrp.com
www.bchacc.com
 
 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil
Salakhetdinov
Sent: Thursday, June 12, 2008 2:54 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Automation Question

Hi Rocky,

objWord.ActiveDocument.Content.Text

seems to be what "your doctor ordered" :) (I missed this simple solution
yesterday)

-
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 11:22 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Automation Question

Shamil:

I got to it another way (I hope).  Please see my reply to Lambert.  I think
I'd still need the 'range' stuff, yes? Or not?


Rocky Smolin
Beach Access Software
858-259-4334
www.e-z-mrp.com
www.bchacc.com
 
 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil
Salakhetdinov
Sent: Wednesday, June 11, 2008 12:05 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Automation Question

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

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008
08:32

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 270.3.0/1499 - Release Date: 12/6/2008
07:13




More information about the AccessD mailing list