Spaced out

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys another Query for you to ponder.

Ok, So were in a Do loop counter = icellcounter

I check cell "A" & icellcounter to see if it is of format
NNANNNNNNN (numeric, Alpha) (cheers for prev on this)

if it is: in column "F" & icellcounter I concatonate cells B,C,D,E
I can concatenate the cells fine my problem is trying to put an & " "
(space)between each cell as the text runs into one another otherwise.

code so far: (haspattern is the function to check the cells pattern
returning a boolean (thanks SEB)

If (HasPattern(Range("A" & iCellCounter)) = True) Then
Range("F" & iCellCounter).Formula = _
"=" & "B" & CStr(iCellCounter) _
& "&C" & CStr(iCellCounter) _
& "&D" & CStr(iCellCounter) _
& "&E" & CStr(iCellCounter)

any help would be appreciated
 
If (HasPattern(Range("A" & iCellCounter)) = True) Then
Range("F" & iCellCounter).Formula = _
"=" & "B" & CStr(iCellCounter) _
& "&"" ""&C" & CStr(iCellCounter) _
& "&"" ""&D" & CStr(iCellCounter) _
& "&"" ""&E" & CStr(iCellCounter)
 

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