Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default leading or trailing quotes

Hi,

I have a problem with doing a mail merge in Word with the excel file
as a data source. In my excel file, there is a column (TextColumn)
contains text value in each cell on all rows. What happen was during
the mail merge in Word, if the first word or the last word of the cell
value is in quotes (single or double), the leading or trailing quotes
are strip off. for example, if a cell value is "This" is "a" "test".,
during the mail merge, it will look like This" is "a" "test. However,
if I add an extra quote in front of that word, I can get the text
comes out correct, which means I have to do this: ""This" is "a"
"test"". I can't just do a Find and ReplaceAll because some other
text in the middle might have quotes.

I want to know if it's possible to create a macro in the excel file to
find the leading and trailing quotes of each row on that column and
add an extra quote in it.

Thanks in advance.

Clint
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default leading or trailing quotes

I got this to work by making a new column with the formula :-
="""" &A1

ie. (4 quotes) &A1

You can then do Copy & Edit/Paste Special/Values and remove th
original column

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing leading and trailing space... Jeffery B Paarsa Excel Discussion (Misc queries) 2 October 8th 09 11:43 PM
Formatting numbers with leading and trailing zero's Victoria Excel Worksheet Functions 7 June 17th 08 06:14 PM
Excluding only leading or trailing cells from a column PaladinWhite Excel Worksheet Functions 6 October 21st 07 06:48 PM
Removing leading/trailing spaces Chuda Excel Discussion (Misc queries) 2 September 12th 06 04:20 PM
How keep Leading/Trailing spaces when save in Excel? jorgejulio Excel Discussion (Misc queries) 0 August 1st 06 09:49 PM


All times are GMT +1. The time now is 09:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"