View Single Post
 
Old 07-23-2014, 10:16 AM
jpb103's Avatar
jpb103 jpb103 is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: May 2014
Location: Thunder Bay, Ontario
Posts: 58
jpb103 is on a distinguished road
Default Copying text range of cells to different cells adds an extra line

Hey Fellas,

I've got a macro that moves the text from one cell to another. The code goes something like this:
Code:
Dim oRow as Row
set oRow = ActiveDocument.Tables(2).Rows.Add
oRow.Cells(1).Range.Text = ActiveDocument.Tables(1).Rows(1).Range.Cells(1).Text
The problem I'm having is that when the text is copied over to the new cell, it adds an extra line on the end. Any thoughts, Word VBA community?
Reply With Quote