Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.tables
[email protected] akh2103@gmail.com is offline
external usenet poster
 
Posts: 1
Default Macro for word tables to excel

There are lots of posts asking how to write a macro exporting a word
table to excel 2003. This is probably the most simple macro for this
task:

Sub GetWordTable()

Dim wdap As Word.Application
Dim wddc As Word.Document
Dim wdtbl As Word.Table

Set wdap = GetObject(, "word.application")
Set wddc = wdap.ActiveDocument
Set wdtbl = wddc.Tables(1)

wdtbl.Range.Cut

ActiveSheet.Paste

End Sub

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro execution using MailMerge nelsonj Mailmerge 9 June 13th 06 05:04 PM
Importing tables from Excel Island Girl New Users 3 May 26th 06 09:37 PM
wordcount macro for tables and brackets Nikeel Tables 2 December 30th 05 07:43 PM
Inserting Excel tables into Word Louise Microsoft Word Help 13 November 1st 05 06:56 PM
How stable are tables paste-linked from Excel XP into Word XP Karen163 Microsoft Word Help 1 December 13th 04 10:11 AM


All times are GMT +1. The time now is 10:10 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"