LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Need strip out data from column A using VBA

Dear J.E:

Your explation was perfectly understanable, thank you
so much for all your help.

Wish you have a happy new year.

Lillian
-----Original Message-----
Breaking it out:

Instr(.Text, "R") finds the position of the first

instance of the
letter R in the Text of the cell. Likewise Instr

(.Text, "L") finds
the position of the first instance of the letter L.

For purposes of discussion, assume the first R is at

position 30 and
the first L is at position 20.

Left(.Text, instr(.Text, "R") - 1) returns the first

(30-1)=29
characters of the text, stripping off the right hand

side.

Then Mid(Left(...),Instr(.Text, "L")) takes the result

from above
and returns the text starting at position 20 and

following,
stripping off the left hand side.

In article ,
"Lillian" wrote:

Your VBA work great, I got what I need it, but I do
not understant for the following:
With rCell
.Value = Mid(Left(.Text, _
InStr(.Text, "R") - 1), InStr(.Text, "L"))

Can you explain to me, thanks.

.

 
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
STRIP CHARACTERS rpick60 Excel Worksheet Functions 7 December 16th 07 04:39 AM
How do I strip out some parts of a column of text data? footballcmr2 Excel Discussion (Misc queries) 3 July 1st 05 07:20 PM
TAB STRIP icebreaker914 Excel Discussion (Misc queries) 1 April 16th 05 01:24 PM
tab strip icebreaker914 New Users to Excel 1 April 16th 05 01:24 PM
Strip out data using VBA Lillian[_5_] Excel Programming 4 December 29th 03 10:05 PM


All times are GMT +1. The time now is 10:38 AM.

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

About Us

"It's about Microsoft Excel"