By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

Difference between Excel.Application and WBook.Add.Worksheets(1)

P: 3
Dim Appxl as Excel.application
Dim WBook as Excel.workbooks
Dim WSheet as Excel.worksheet

FileName = "c:\Temp\New.xls"

Set Appxl=CreateObject("Excel.Application")
Set WBook = Appxl.Workbooks
Set WSheet = WBook.Add.Worksheets.item(1)

Appxl.visible = true

Please tell me the actual difference between worksheet and worksheets from above program. Why we have put "s" on worksheet on seventh lines.
Jan 8 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.