Why no intellisense for ActiveSheet

M

mp

this code works, but when i put a . after ActiveSheet
I don't get UsedRange (or anything at all) in intellisense to show me what's
available

Debug.Print Application.ActiveSheet.UsedRange.Rows.Count

if i do
Set oWs = Application.ActiveSheet
Debug.Print oWs.UsedRange.Rows.Count
I do get intellisense....
no big deal, just wondering why

thanks
mark
 
D

Dave Peterson

The activesheet could be a worksheet, a chart sheet, a macro sheet, a dialog
sheet...

That's the reason I use a variable that's declared nicely (like you did!).
 
M

mp

Oh! I see.
Thanks

Dave Peterson said:
The activesheet could be a worksheet, a chart sheet, a macro sheet, a
dialog sheet...

That's the reason I use a variable that's declared nicely (like you did!).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top