Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Excel Question

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have the following Excel VB script:

ActiveSheet.Cells(i, 14).Formula = "=$C$2"

What I would like to do is the following:

Dim i As Integer
i=2
Do
i=i+1
ActiveSheet.Cells(i, 14).Formula = "=$C$i"
Loop until i >100



But Formula does not read i as an integer. What other way can

this be written?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top