|
-
Nov 13th, 2000, 02:27 PM
#1
Thread Starter
Junior Member
How do you reference columns in excel by a number.
Case in point:
do while x < 10
range("A1", 5).value = x
x = x+1
loop
I need to increment that A1 to B1 and then C1 and so on.
Any help?
Steve
-
Nov 13th, 2000, 02:32 PM
#2
Frenzied Member
hmm.
Hi,
Just some information.
If you intend to get a
responce you probably
should put everyone
down than ask the question.
A hint.
-
Nov 13th, 2000, 02:43 PM
#3
Fanatic Member
?!
Just a quick idea....
U have to fix a bit
li_Counter = 1
Do While li_Counter < 10
Debug.Print UCase(Chr(65 + li_Counter)) & "1"
range(UCase(Chr(65 + li_Counter)) & "1",5).value = x
li_Counter = li_Counter + 1
Loop
U may have to add the chr value for the quot mark around
-
Nov 13th, 2000, 04:18 PM
#4
Junior Member
Use R1C1?
If you just want to move over one column at a time, use the R1C1 reference style in your programming.
-
Nov 13th, 2000, 05:12 PM
#5
_______
<?>
Evan:
For what it's worth, it's called "Child Psychology"
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 13th, 2000, 05:22 PM
#6
Fanatic Member
The best way to reference cells in Excel using row and columns, use Cells(Your Row, Your Column).Select
This question is elementary, don't even need a VB master to answer it.
Chemically Formulated As:
Dr. Nitro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|