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
dual screen monitors look different
Working with multiple MS SQL Server database in applicatie
XPages: can't get a simple dialog box working
Importing a simple spreadsheet into access
magento limiting number of returned items in product collection call
HELO server unrecognized command
Reading data off Raid 0
Shell Script
Event code: 3005 - An unhandled exception has occurred with custom ASP.Net app
Insert into MySQL Table from MSSQL Insert Trigger