Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I'm using a VbScript for Outlook , and want to get informations about Excel file (Number of line and Column used) Tks -- Knowlege grows when shared. http://bensoft.miniville.fr/tra |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Off the top
Dim XLApp As Object Dim XLWB as Object Dim NumRows As Long Dim NumCols As Long Set XLApp = CreateObject(Excel.Application") Set XLWB = Workbooks.Open(Filename:="C:\test\filename.xls") NumRows = XLWB.Worksheets(1).UsedRange.Rows.Count NumCols = XLWB.Worksheets(1).UsedRange.Columns.Count Set XLWB = Nothing Set XLApp = Nothing -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bbnimda" wrote in message ... Hi All, I'm using a VbScript for Outlook , and want to get informations about Excel file (Number of line and Column used) Tks -- Knowlege grows when shared. http://bensoft.miniville.fr/tra |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Bob,
Great tks Bye "Bob Phillips" a écrit dans le message de news: ... Off the top Dim XLApp As Object Dim XLWB as Object Dim NumRows As Long Dim NumCols As Long Set XLApp = CreateObject(Excel.Application") Set XLWB = Workbooks.Open(Filename:="C:\test\filename.xls") NumRows = XLWB.Worksheets(1).UsedRange.Rows.Count NumCols = XLWB.Worksheets(1).UsedRange.Columns.Count Set XLWB = Nothing Set XLApp = Nothing -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bbnimda" wrote in message ... Hi All, I'm using a VbScript for Outlook , and want to get informations about Excel file (Number of line and Column used) Tks -- Knowlege grows when shared. http://bensoft.miniville.fr/tra |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare sheet 1 column A numbers with sheet 2 column A number | Excel Worksheet Functions | |||
Last number in a column shows in the total/summay line cell | Excel Worksheet Functions | |||
MATCH A NUMBER IN A COLUMN WITH A COLUMN IN A DIFFERENT SHEET | Excel Discussion (Misc queries) | |||
change last serie to be line in the line-column Excel chart in Wor | Charts and Charting in Excel | |||
Enabling Line/Column number in code | Excel Programming |