View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default Why no intellisense for ActiveSheet

mp explained :
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


Mark,
That's just "the nature of the beast".<g You'll always get
intellisense using explicit object refs in this context (just as you
did here using 'oWs'). Not all global objects provide intellisense for
the reasons Dave cites.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc