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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Test for Empty Cell

Status
Not open for further replies.

canix1

Technical User
Oct 22, 2001
12
0
0
SE
Hi there!

I´m trying to put data into a Excel Workbook. I whant to know how to start filling the rows where I ended, so I update the Workbook with the new information.
How do i do this test for empty cells wiht VBScript of course.

Thanx, Canix
 
I found it my self. Heres an example:

Dim intIndex, iRow
iRow=0
Do While objXL.ActiveCell.Offset(iRow,0).Value<>&quot;&quot;
iRow = iRow+1
Loop
intIndex = iRow

Sub Show(strDate, strServer, strVolName, strAvDisk, strTotUsable, strPercentFree)
objXL.Cells(intIndex, 1).Value = strDate
objXL.Cells(intIndex, 2).Value = strServer
objXL.Cells(intIndex, 3).Value = strVolName
objXL.Cells(intIndex, 4).Value = strAvDisk
objXL.Cells(intIndex, 5).Value = strTotUsable
objXL.Cells(intIndex, 6).Value = strPercentFree
intIndex = intIndex + 1
objXL.Cells(intIndex, 1).Select
End Sub

Regards Canix1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top