"rabc0011" = "abc0011" ????

  • Thread starter Thread starter hyyfte
  • Start date Start date
H

hyyfte

There must be a way to do this... I have a huge table with column A -
file names in a "RABC0011" format on one list and an "ABC0011" on
another list. I am trying to copy certain columns of the R table to
the other table. In order to do this I have to set up a loop to check
if filename equals RABC0011 minus the R, add column F, G and H. Is
there a way to make "Rxxxnnn" = "xxxnnn"?
 
sStr = "Rxxxnnn"
sStr1 = "xxxnnn"
if lcase(right(sStr,len(sStr1))) = lcase(sStr1) then

or

if Instr(1,sStr,sStr1,vbTextCompare) = 2 then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top