Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default Why no intellisense for ActiveSheet

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default Why no intellisense for ActiveSheet

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!).

On 02/05/2011 16:39, mp wrote:
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



--
Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
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


  #4   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default Why no intellisense for ActiveSheet

Oh! I see.
Thanks

"Dave Peterson" wrote in message
...
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!).

On 02/05/2011 16:39, mp wrote:
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



--
Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? Jim K. Excel Programming 2 June 2nd 08 08:09 PM
VBA Intellisense Looch Excel Programming 2 June 12th 07 03:50 AM
Intellisense Stef Excel Worksheet Functions 0 August 16th 06 03:08 PM
Copying new activesheet after other activesheet is hidden? Simon Lloyd[_790_] Excel Programming 1 June 20th 06 10:02 AM
Sometimes Intellisense, sometimes not Alan Excel Programming 2 May 14th 04 07:54 PM


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"