PC Review


Reply
Thread Tools Rate Thread

Copying Excel tables into Word

 
 
Darren V
Guest
Posts: n/a
 
      15th Feb 2007
Hello

I'm looking to write some VBA code to copy a large table from Excel into
Word, and format it so it fits nicely with columns the right width etc. Its
possible to copy and paste it manually, but its lots of work and I'll need
to do this regularly.

Is it possible to get Excel to interact with Word in this way?

Anyone have any ideas?

Many thanks

Darren

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U21pdGNo?=
Guest
Posts: n/a
 
      16th Feb 2007
Hi Darren,

This can be complicated or simple... are you trying to do a generic function
that is going to account for how much horizontal space you have to work with?
If it is not enough is the solution to insert section breaks and format the
page to adjust for size of table? And so on…

If you have a fairly limited type of table sizes it might be pretty easy.
The other option is use Word Table styles and apply those to copy-paste
version of the table… you could automate that… via macro recorder… which may
give you the most bang for little buck ;-)

Cheers,

~Smitch

"Darren V" wrote:

> Hello
>
> I'm looking to write some VBA code to copy a large table from Excel into
> Word, and format it so it fits nicely with columns the right width etc. Its
> possible to copy and paste it manually, but its lots of work and I'll need
> to do this regularly.
>
> Is it possible to get Excel to interact with Word in this way?
>
> Anyone have any ideas?
>
> Many thanks
>
> Darren
>
>

 
Reply With Quote
 
Darren V
Guest
Posts: n/a
 
      16th Feb 2007
Hey Smitch.

Will give it a try, thanks for responding.

Cheers,

Darren

Supposing I have this table saved in a workbook called "Book1" and a sheet
called "Sheet
"Smitch" <(E-Mail Removed)> wrote in message
news:BF36E70E-EBBB-4584-A51D-(E-Mail Removed)...
> Hi Darren,
>
> This can be complicated or simple... are you trying to do a generic
> function
> that is going to account for how much horizontal space you have to work
> with?
> If it is not enough is the solution to insert section breaks and format
> the
> page to adjust for size of table? And so on…
>
> If you have a fairly limited type of table sizes it might be pretty easy.
> The other option is use Word Table styles and apply those to copy-paste
> version of the table… you could automate that… via macro recorder… which
> may
> give you the most bang for little buck ;-)
>
> Cheers,
>
> ~Smitch
>
> "Darren V" wrote:
>
>> Hello
>>
>> I'm looking to write some VBA code to copy a large table from Excel into
>> Word, and format it so it fits nicely with columns the right width etc.
>> Its
>> possible to copy and paste it manually, but its lots of work and I'll
>> need
>> to do this regularly.
>>
>> Is it possible to get Excel to interact with Word in this way?
>>
>> Anyone have any ideas?
>>
>> Many thanks
>>
>> Darren
>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying and Pasting Excel Tables into Word Suzan Microsoft Word Document Management 1 20th May 2010 05:29 PM
RE: Copying tables from excel to Microsoft Word help. =?Utf-8?B?THluQ08=?= Microsoft Excel Discussion 0 16th Feb 2007 01:50 AM
Copying tables in Word =?Utf-8?B?UGFt?= Windows XP Help 1 15th Aug 2006 11:13 AM
Copying word tables of different column width to excel. =?Utf-8?B?S2F6dWtp?= Microsoft Excel Misc 4 1st Jun 2006 09:54 AM
Re: Copying Word tables to Excel Shauna Kelly Microsoft Word Document Management 0 9th Sep 2003 10:00 AM


Features
 

Advertising
 

Newsgroups
 


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