Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a String in Array to Range as String
If I have an array that contains strings - some of which are numbers as
strings, why can't I write them to a range as a string? For example if Array(1) = "000" Why can't I say Range("A1").Offset(1,1) = Array(1) What I'm getting is 0 (without the leading 2 zeros) and when I do a =IStext() test in the worksheet, I'm getting False. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a String in Array to Range as String
|
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a String in Array to Range as String
Hi Marston,
One way: For i = LBound(Arr) To UBound(Arr) With Range("A" & i + 1).Offset(1, 1) .NumberFormat = "@" .Value = Arr(i) End With Next i --- Regards, Norman " wrote in message ... If I have an array that contains strings - some of which are numbers as strings, why can't I write them to a range as a string? For example if Array(1) = "000" Why can't I say Range("A1").Offset(1,1) = Array(1) What I'm getting is 0 (without the leading 2 zeros) and when I do a =IStext() test in the worksheet, I'm getting False. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Passing Query String into MS Excel | Excel Discussion (Misc queries) | |||
Passing string as array variable (Pivot VBA) | Excel Discussion (Misc queries) | |||
string passing to DLL | Excel Programming | |||
VBA - Convert my variable range array to single cell string | Excel Programming | |||
PASSING A STRING VALUE | Excel Programming |