Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Concatenate Variables

Hey folks,

I'm wondering if you could help me out here. My overall goal is to loop
through a set of string variable that I have defined in my code, and
display these strings on a worksheet. Something like this:

Dim hello1 As String
Dim hello2 As String

Hello1 = "Hey"
Hello2 = "What's Up"

For i = 1 to 2
Sheets(1).Cells(1, i).Value = Hello & i
Next i

If you know of another way to loop through variables stored in code I'm
all ears. I'm new to all this.

Thanks in advance,

HMiller

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Concatenate Variables

Thank you much, Alok. Worked Great!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Concatenate Variables

Thank you much, Alok. Worked Great!

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
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Concatenate variables Graham Whitehead Excel Programming 1 October 2nd 06 02:28 PM
Concatenate two variables (String & Integer) Sreenivas Varadhan Excel Programming 3 December 12th 05 01:28 PM
I know how to concatenate ,can one de-concatenate to split date? QUICK BOOKS PROBLEM- New Users to Excel 1 July 26th 05 05:07 PM
how do you concatenate two variables in VBA billabong Excel Programming 1 September 26th 03 12:30 AM


All times are GMT +1. The time now is 09:08 PM.

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"