Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Automating Microsoft Word using VBScript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,913
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Automating Microsoft Word using VBScript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Automating Microsoft Word using VBScript - 10/13/2003 8:17:20 AM   
  chrisly

 

Posts: 1
Score: 0
Joined: 10/13/2003
From:
Status: offline
I've added a table to Microsoft Word (through VB script) as follows:

Set oAD=oWordApp.ActiveDocument
Set oTables=oAD.Tables
Set oSel=oWordApp.Selection
Set oRange=oSel.Range
oTables.Add oRange,1,2

Now I'm trying to move over into the right hand cell to put some text. The VBA code for this is:

oWordApp.Selection.MoveRight Unit:=wdCell

but this does not seem to work in VBScript. Does anyone know how I can do this?

Cheers,
Chris
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Automating Microsoft Word using VBScript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts