In word tags start with backward slash '\'. For Example \tab for a tab.
Let us say I am creating a word doc from another application which prints a
dataset that contains a variable. The variable has backward slash in some of
its values. So when the document was created, I didn't see anything after
backward slash. How can I mask backwardslash from disappearance in the word
doc.
Here is an example :
My name is abc \tab and my apt is new \good.
When the application creates the word doc, it should appear like
My name is abc and my apt is new \good.
But it appear as
My name is abc and my apt is new
So if you see here '\good' is missing. This is happening because 'good' is
starting with '\'. Since tags start with '\', whatever after '\' will
disappear(I guess). And my application to create word doc is SAS(Statistical
Analytical Systems). How I can avoid this i.e. \tab should work and \good
appear in the word doc.
I believe that this is a problem with your application. If you want to use
VBA code to insert a tab in Word, you use vbTab, not \tab.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> In word tags start with backward slash '\'. For Example \tab for a tab.
> Let us say I am creating a word doc from another application which prints
[quoted text clipped - 25 lines]
> Analytical Systems). How I can avoid this i.e. \tab should work and \good
> appear in the word doc.
Ram - 12 May 2006 01:50 GMT
Thank you. One thing I forgot to mention. This is RTF file which opens in ms
word and I am talking about RTF tags.
> I believe that this is a problem with your application. If you want to use
> VBA code to insert a tab in Word, you use vbTab, not \tab.
[quoted text clipped - 28 lines]
> > Analytical Systems). How I can avoid this i.e. \tab should work and \good
> > appear in the word doc.
Tony Jollans - 13 May 2006 22:50 GMT
I'm not entirely sure I know what you're asking but have you tried
'escaping' the backslash by duplicating it ...
My name is abc \tab and my apt is new \\good
--
Enjoy,
Tony