Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about putting the values in a collection?
Sub test() Dim col As New Collection Dim String1 As String, string2 As String col.Add 4, "RowColor" col.Add 12, "RowHeight" String1 = "Row" string2 = "Color" MsgBox col(String1 & string2) End Sub -- Hope that helps. Vergel Adriano "Gary Keramidas" wrote: may have asked this before, but can't find it. is it possible to create a variable from 2 strings and have it return the value? Simple example, RowColor is Dimmed as Long and has as value of 4 2 strings, one String1 is "Row" the other, String2 is "Color" join the 2 strings to make "RowColor" range("A1").interior.colorindex = String1 & String2 -- Gary |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text strings from a variable string | New Users to Excel | |||
Parse variable length strings | Excel Discussion (Misc queries) | |||
Creating strings for legend | Excel Discussion (Misc queries) | |||
Converting variable text strings to numeric | Excel Discussion (Misc queries) | |||
concatenating strings to call a variable | Excel Programming |