Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Data From Excel Sheet Embedded in Word

Status
Not open for further replies.

johnnymagee

Programmer
Apr 19, 2005
26
GB
I want to be able to either:
(1) use an excel table embedded in a word doc like any other Excel book, or
(2) copy and paste the Excel object into Excel

I've no idea about doing (1) and am stuck on (2)

Set owd = New Word.Application

Set owdSource = owd.Documents.Open("blahblahblah.doc")

'ADD NEW SPREADSHEET
Set owbkTemp = oXL.Workbooks.Add
Set rPaste = owbkTemp.Sheets("Sheet1").Range("A1")
owdSource.Shapes(1).Select
Selection.Copy

rPaste.PasteSpecial xlPasteValues
 
Hi,

Sounds to me like this is VBA. Please post in the VBA Forum forum707.


Skip,

[glasses] [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should...
Never hatchet your Counts before they chicken! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top