Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Using a word macro to format excelsheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ashish_FC - 14 Dec 2004 17:51 GMT
Hello all,

I'm trying to generate a automated word report document wherein I'll insert
multiple diagrams and also tables from excel sheet. The problem though is
that before I insert an excel sheet as on object or file into word I need to
format it a little by adding a few rows and columns and adding a labels in
those new cells. I'm having serious problems doing this and I'm running out
of ideas. The word report needs to be fully automated and thus i can't write
a dedicated excel macro and then insert it using a word macro. Pls let me
know your valuable suggestions.
Thanks,
Ashish.
Ed - 14 Dec 2004 21:53 GMT
Hi, Ashish.  You can set object references to Excel in Word VBA and
manipulate a workbook file.  See
http://word.mvps.org/faqs/interdev/ControlXLFromWord.htm to get you started.
Don't forget to set a reference to Excel.

For any more specific information, you might need to explain a bit more
about what you're doing to the Excel file:  is it a set number of rows or
columns to add every time? same labels? adding in any data or making any
calculations?

Ed

> Hello all,
>
[quoted text clipped - 8 lines]
> Thanks,
> Ashish.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.