• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Counting the excel files are being opened

vinoblm

New Member
hi Guys,
i want to count how many times excel files are being opened. precisely, when i open an excel file, count starts and when i open another excel files,counts to two and so on. this should be recorded in the registry file.

thanks,

Vinodh.
 
Hi:

Use the following code.

Code:
Set objExcel = GetObject(, "Excel.Application")
Set wb = objExcel.ActiveWorkbook
Set wb1= objExcel.Workbooks
MsgBox wb1.Count

Thanks
 
Dear,

thanks. but it doesnt work as i wanted. i want to count how many times excel
files are opened,not just any particular file, any excel file.

thanks
 
Back
Top