Macro to Copy Data from Excel to Word for Printing

Rallybas

New Member
Joined
Nov 16, 2009
Messages
24
I have some basic information in Excel. It captures call information. There are 3 large fields that contain the “memos”. I want all the information from Excel to Word in order to print them out. I have the first part of the macro created which transposes the row to column. I am having trouble with the main part of the macro which is supposed to copy from Excel to Word. Whenever I try and run the macro, it does not execute the copy into word. What am I missing? This should be simple. Thanks.</SPAN>

Here is an example of the Spreadsheet

[TABLE="width: 493"]
<TBODY>[TR]
[TD]NAME</SPAN>[/TD]
[TD]COMMERZBANK</SPAN>[/TD]
[/TR]
[TR]
[TD]Meeting Date&Time</SPAN>[/TD]
[TD]3/19/2011 6:48:08 AM</SPAN>[/TD]
[/TR]
[TR]
[TD]Memo Text 1</SPAN>[/TD]
[TD]Large Text String #1</SPAN>[/TD]
[/TR]
[TR]
[TD]Memo Text 2</SPAN>[/TD]
[TD]Large Text String #2</SPAN>[/TD]
[/TR]
[TR]
[TD]Memo Text 3</SPAN>[/TD]
[TD]Large Text String #2</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL></COLGROUP>[/TABLE]



Here is an Example of the Word File Expected Results:
Name: COMMERZBANK
Meeting Date&Time: 3/19/2011 6:48:08 AM
[TABLE="width: 493"]
<TBODY>[TR]
[TD]Large Text String #1<o:p></o:p>
Large Text String #2<o:p></o:p>
Large Text String #2
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]</SPAN>
[/TD]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]
</SPAN>

[/TD]
[TD]</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top