Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

[SOLVED] Using "Cells(n, 9)" inside Range("I3:I20")

$
0
0
I tried to replace this:

Code:

Range("I3:I20")
for this:

Code:

Range("Cells(3, 9):Cells(n, 9)")
In this case n=20, but I want it to be a variable. The way I did it went wrong. Which is the correct syntax?

Viewing all articles
Browse latest Browse all 50070

Trending Articles