View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Patrick[_2_] Dave Patrick[_2_] is offline
external usenet poster
 
Posts: 25
Default Conflict reporting No of columns

Public Sub colcount()
Cells.Select
MsgBox Selection.Columns.Count
End Sub


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Jack" wrote:
| Hello,
| How many columns spreadsheet has?
| oExcel.ActiveWorkbook.ActiveSheet.Columns.Count returns number 256
| but when I scroll spreadsheet horizontallyI see much more of them.
| Roughly, my count is 27*27 which is equal to 729.
| Why is that discrepancy?
|
|