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

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Spaced out

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

--

HTH

RP

"antinoz" wrote in message
...
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



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
evenly spaced markers on log scale CP[_2_] Charts and Charting in Excel 1 August 29th 09 12:03 PM
change a spreadsheet from single spaced to double spaced? tud52 Excel Worksheet Functions 3 July 24th 07 06:12 PM
chart ledgend looks double spaced. How do I fix to single spaced? villalp Charts and Charting in Excel 1 April 25th 06 07:13 PM
average of spaced cells Blessingspoint Excel Worksheet Functions 1 January 14th 05 09:03 PM


All times are GMT +1. The time now is 04:01 AM.

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"