Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to move down a column by varying a counter for the row. Whether I use "B" & Str(RptRowCounter) or "B" + Str(RptRowCounter), the resulting string is B 5. As a result, Range(B 5).Value is giving me errors. How do I avoid the blank in between so that I get B5? Dim RptName As String Dim RptRowCounter As Integer Dim CellRefer As String RptRowCounter = 5 CellRefer = "B" & Str(RptRowCounter) RptName = Range(CellRefer).Value Thanks for your help. Aswini |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatenate two variables (String & Integer) | Excel Programming | |||
ListBox2.AddItem ListBox1.Value becomes a String when being Integer? | Excel Programming | |||
Declaring variables (Long, String, Integer) and interpretation spe | Excel Programming | |||
Is there a function to convert a string representing an integer i. | Excel Programming | |||
How can i write a vba code to get string or integer "C15" from $c$15? | Excel Programming |