Microsoft
Software
Hardware
Network
Question : Easy answer for someone who knows VBA
Why does the following return 64?
Sub woho()
Range("b2") = Cells(Rows.Count).Row
End Sub
Answer : Easy answer for someone who knows VBA
Basically cells.count is the number of cells in the sheet.
SO if you divide by the number of columns you will get the value of the row on which the cells.count 'cell ' occurs. i.e. 64
Chris
Random Solutions
Ruby's Page - Open speed
DROID-ActiveSync Issue
The Microsoft Office Access database engine cannot find a record in the table with key matching field(s)
backdoor.tidserv.l!nf virus
Setting Reporting Services data driven subscription Using Web Service
Control object destruction during global destruction
sysvol trying to replicate to non-existant Domain controllers
Group Policy - domain controllers
Java web service accesing error
Program Can't See Mapped Drive But Explorer Can