Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2011, 08:17 AM
robmorleyuk robmorleyuk is offline Combining Text from Table Cells Windows 7 64bit Combining Text from Table Cells Office 2007
Novice
Combining Text from Table Cells
 
Join Date: Oct 2011
Posts: 2
robmorleyuk is on a distinguished road
Default Combining Text from Table Cells

Hi, I am a new forum member but an old and limited user of MSOffice.

I have a series of tables in a Word template used to record comments.
I would like to select the text in column 2 for each of the rows and stitch it together in a string for out put in another document.

I am effectively using the command
ActiveDocument.Tables(2).Cell(Row:=2, Column:=2).Range.Select
to select the text and
StitchText = StitchText + Selection
to put the text together but am getting a carrigae return or similar at the end of each Selection.

I think this is part of the Cell information retrieved by the Range.Select command but it could be anything.

Please can you suggest a fix or better method for combining all the cells text in to one?



Thank you.
Reply With Quote
  #2  
Old 11-01-2011, 07:24 AM
robmorleyuk robmorleyuk is offline Combining Text from Table Cells Windows 7 64bit Combining Text from Table Cells Office 2007
Novice
Combining Text from Table Cells
 
Join Date: Oct 2011
Posts: 2
robmorleyuk is on a distinguished road
Default

Found the Solution thanks to a publication by Susan Dorey Designs THANK YOU!!

The problem sits with the method for selecting the text, intead use:

Set myRange = ActiveDocument.Tables(2).Cell(Row:=2, Column:=2).Range
myRange.MoveEnd Unit:=wdCharacter, Count:=-1
StitchText = StitchText + myRange.Text
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining Text from Table Cells Copy table cell formatting across multiple cells / tables pakistanray Word Tables 2 10-31-2011 08:07 AM
Combining Text from Table Cells Combining Picture and Text (word 2010) alexb123 Drawing and Graphics 5 09-10-2011 03:33 PM
Combining Text from Table Cells How to count the total cells that contains text data? Learner7 Excel 1 06-30-2011 04:13 PM
Combining Text from Table Cells Share your tips for centering images in table cells WaltR Word 4 01-29-2011 11:22 PM
Cells with wrap text not showing text lazylew Excel 1 08-31-2008 06:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft