PC Review


Reply
Thread Tools Rate Thread

Displaying Members in Visual Basic

 
 
AlwaysFroosh!
Guest
Posts: n/a
 
      5th Mar 2008
I cannot seem to figure out how to enable the member lists that drop down as
your programming in VBA. This problem only persists in Excel. Whenever I am
programming in Access or Word, I have no problem, the lists appear as they
should, but not in Excel.

When I am in VBA booted from Excel, if I pres CTRL + J, it displays a long
list, as it should. This list includes ActiveCell, ActiveChart, ActivePrinter
etc. If I move my cursor down to ActiveSheet and then type a period, I don't
get another list, I just get a windows system beep. You know the annoying one
you get when you do something wrong? That one!

Like I said, in both Access and Word, by typing a period after it allows you
to keep drilling down until you get what you want. Does anyone know why I
can't do this in Excel?
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      5th Mar 2008
Regretably you don't get intellisence with any of the Active objects like
activesheet. ActiveSheet could be a worksheet or a chart sheet which have
different properties or methods. Try this however

sub test()
dim wks as worksheet
set wks = activesheet

'now type Activesheet.

'now type wks.

end if

wks which is a worksheet should have the intellisence. ActiveSheet which
could be either a worksheet or a chart (won't be know until run time) will
not have intellisence.
--
HTH...

Jim Thomlinson


"AlwaysFroosh!" wrote:

> I cannot seem to figure out how to enable the member lists that drop down as
> your programming in VBA. This problem only persists in Excel. Whenever I am
> programming in Access or Word, I have no problem, the lists appear as they
> should, but not in Excel.
>
> When I am in VBA booted from Excel, if I pres CTRL + J, it displays a long
> list, as it should. This list includes ActiveCell, ActiveChart, ActivePrinter
> etc. If I move my cursor down to ActiveSheet and then type a period, I don't
> get another list, I just get a windows system beep. You know the annoying one
> you get when you do something wrong? That one!
>
> Like I said, in both Access and Word, by typing a period after it allows you
> to keep drilling down until you get what you want. Does anyone know why I
> can't do this in Excel?

 
Reply With Quote
 
AlwaysFroosh!
Guest
Posts: n/a
 
      5th Mar 2008
Ahhhhhh, how right you are. That's great, and it makes sense too. Thanks for
your help Jim. Here I thought it was some setting or something that I was
missing!

Graham

"Jim Thomlinson" wrote:

> Regretably you don't get intellisence with any of the Active objects like
> activesheet. ActiveSheet could be a worksheet or a chart sheet which have
> different properties or methods. Try this however
>
> sub test()
> dim wks as worksheet
> set wks = activesheet
>
> 'now type Activesheet.
>
> 'now type wks.
>
> end if
>
> wks which is a worksheet should have the intellisence. ActiveSheet which
> could be either a worksheet or a chart (won't be know until run time) will
> not have intellisence.
> --
> HTH...
>
> Jim Thomlinson
>
>
> "AlwaysFroosh!" wrote:
>
> > I cannot seem to figure out how to enable the member lists that drop down as
> > your programming in VBA. This problem only persists in Excel. Whenever I am
> > programming in Access or Word, I have no problem, the lists appear as they
> > should, but not in Excel.
> >
> > When I am in VBA booted from Excel, if I pres CTRL + J, it displays a long
> > list, as it should. This list includes ActiveCell, ActiveChart, ActivePrinter
> > etc. If I move my cursor down to ActiveSheet and then type a period, I don't
> > get another list, I just get a windows system beep. You know the annoying one
> > you get when you do something wrong? That one!
> >
> > Like I said, in both Access and Word, by typing a period after it allows you
> > to keep drilling down until you get what you want. Does anyone know why I
> > can't do this in Excel?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe. Roberto Rasto Microsoft VB .NET 2 11th Jan 2008 09:05 PM
Learning curve for Visual Basic 6 programmers moving to Visual Basic.net Chris Asaipillai Microsoft Dot NET 8 20th May 2007 06:24 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? =?Utf-8?B?am9obi5qYWNvYnM3MQ==?= Microsoft Excel Programming 3 26th Dec 2005 02:22 PM
Blank Visual Basic help screens for ADODB object class members =?Utf-8?B?RWR3YXJkX2pfNTE=?= Microsoft Access 5 17th Dec 2004 11:55 AM
Code for in visual basic dotnet for a newbie in visual basic 6 =?Utf-8?B?WWFzc2VyaQ==?= Microsoft VB .NET 3 9th Oct 2004 11:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:28 AM.