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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting pasted range/table from Excel into Word - VBA

Status
Not open for further replies.

Anna007

Programmer
Nov 29, 2004
38
CA
I have a bookmark in my word document and then I have this range in Excel (Amortization Table)
I am doing the following to copy and paste it into the word doc where the book-mark is:

range("AmortizationTable").copy
mydoc.Bookmarks("MyBookMark").range.pastespecial

Now, it's pasted as a table that it was in excel. But does word treat this as a table?? I need to do an AutoFit (to fit in the windowP) after pasted it - but via VBA Code!
there is an autofit property but not sure how to use it in this case. I tried but it was pasting it in excel intead!
I need it pasted into the word doc.

Thanx,
Anita
 
Hi Anna,
Why don't you do a autofit in excel and then copy the word into word?

Radha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top