LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default string concatenate

Doris,

Am happy to hear that you got it to work! You are very Welcome!

keep on Exceling...

--
steveB

Remove "AYN" from email to respond
"DorisM" wrote in message
...
Hi Steve;

Thank you for your help. I modify the code to what I needed to do in my
program and it works.

DorisM

"STEVE BELL" wrote:

This code will check column A,
rows 1 to 25 and make a string
see if this helps...

=================================
Sub StringCreat()
Dim rw As Long, str As String

For rw = 1 To 25
If Len(Cells(rw, 1)) 0 Then
If Len(str) 0 Then
str = str & ", " & Cells(rw, 1).Text
Else
str = Cells(rw, 1).Text
End If
End If
Next
MsgBox str
End Sub
====================================

--
steveB

Remove "AYN" from email to respond
"DorisM" wrote in message
...
New to VBA so I'm not sure if this is possible. In a program, I'm
trying
to
concatenate string variables with comma after each variable, but the
number
of occurrences of string variable can be different from time to time.
????






 
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
logical test and concatenate(string) dpayne Excel Discussion (Misc queries) 7 April 5th 07 08:30 PM
Concatenate in a string IntricateFool Excel Worksheet Functions 4 June 7th 06 07:29 PM
Opposite of Concatenate (Breaking apart a string) XMLCimo Excel Worksheet Functions 1 March 5th 06 12:20 AM
superscript in part of a string when using concatenate Ged2 Excel Discussion (Misc queries) 1 August 23rd 05 02:47 PM
concatenate a text string if two different cells contain the sam. Linda G Excel Worksheet Functions 5 January 17th 05 07:53 PM


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