#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default CopyText

I want to copy part of the text from one column to another. The text
has a \ in it and I need everything to the right of the \. If cell a
has adcd\efg and I was coping it to cell b then cell b would have efg.


Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default CopyText

try this
Sub findslash()
For Each c In Selection
x = InStr(c, "\")
'MsgBox x
c.Offset(, 1) = Right(c, Len(c) - x)
Next
End Sub

--
Don Guillett
SalesAid Software

"Jeff" wrote in message
...
I want to copy part of the text from one column to another. The text
has a \ in it and I need everything to the right of the \. If cell a
has adcd\efg and I was coping it to cell b then cell b would have efg.


Thanks



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



All times are GMT +1. The time now is 04:49 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"