PC Review


Reply
Thread Tools Rate Thread

about ctrl+g in vbe

 
 
tom taol
Guest
Posts: n/a
 
      13th Oct 2007


i want to clear the texts after ctrl+g in vbe.
for example
debug.print 3
debug.print 3
debug.print 7


and then
debugWnd.clear this syntax....



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Zone
Guest
Posts: n/a
 
      13th Oct 2007
I believe this has come up before, and the answer was there is no way to
programmatically clear the immediate pane. Easiest way to clear it is to
place the cursor in the immediate pane, press Ctrl-a, then press Delete.
James
"tom taol" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> i want to clear the texts after ctrl+g in vbe.
> for example
> debug.print 3
> debug.print 3
> debug.print 7
>
>
> and then
> debugWnd.clear this syntax....
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      13th Oct 2007
I think someone came up with a suggestion, but sometimes it crashed excel
(IIRC).

Maybe just doing something like:

Option Explicit
Sub testme01()
Dim iCtr As Long
For iCtr = 1 To 1000
Debug.Print
Next iCtr
End Sub

would be enough for the OP.

Zone wrote:
>
> I believe this has come up before, and the answer was there is no way to
> programmatically clear the immediate pane. Easiest way to clear it is to
> place the cursor in the immediate pane, press Ctrl-a, then press Delete.
> James
> "tom taol" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> >
> > i want to clear the texts after ctrl+g in vbe.
> > for example
> > debug.print 3
> > debug.print 3
> > debug.print 7
> >
> >
> > and then
> > debugWnd.clear this syntax....
> >
> >
> >
> > *** Sent via Developersdex http://www.developersdex.com ***


--

Dave Peterson
 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      13th Oct 2007
MZ Tools (www.mztools.com) seems to do it programmatically, but I don't know
how it works. I tried subclassing the Immediate window using SPY++ to see
what messages it was receiving, but I never got the right messages. This is
but one of many very nice tools that are supplied by MZ Tools; it is a good
add-in for any serious VB/VBA/NET programmer.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I think someone came up with a suggestion, but sometimes it crashed excel
> (IIRC).
>
> Maybe just doing something like:
>
> Option Explicit
> Sub testme01()
> Dim iCtr As Long
> For iCtr = 1 To 1000
> Debug.Print
> Next iCtr
> End Sub
>
> would be enough for the OP.
>
> Zone wrote:
>>
>> I believe this has come up before, and the answer was there is no way to
>> programmatically clear the immediate pane. Easiest way to clear it is to
>> place the cursor in the immediate pane, press Ctrl-a, then press Delete.
>> James
>> "tom taol" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> >
>> >
>> > i want to clear the texts after ctrl+g in vbe.
>> > for example
>> > debug.print 3
>> > debug.print 3
>> > debug.print 7
>> >
>> >
>> > and then
>> > debugWnd.clear this syntax....
>> >
>> >
>> >
>> > *** Sent via Developersdex http://www.developersdex.com ***

>
> --
>
> Dave Peterson


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      13th Oct 2007
I'm not sure if I remembered correctly. I think that the problem with one
suggestion (a long time ago) was that it used sendkeys to try to clear that
immediate window. And sometimes, it would clear the data on a worksheet. (It
may not have anything to do with crashing excel.)



Dave Peterson wrote:
>
> I think someone came up with a suggestion, but sometimes it crashed excel
> (IIRC).
>
> Maybe just doing something like:
>
> Option Explicit
> Sub testme01()
> Dim iCtr As Long
> For iCtr = 1 To 1000
> Debug.Print
> Next iCtr
> End Sub
>
> would be enough for the OP.
>
> Zone wrote:
> >
> > I believe this has come up before, and the answer was there is no way to
> > programmatically clear the immediate pane. Easiest way to clear it is to
> > place the cursor in the immediate pane, press Ctrl-a, then press Delete.
> > James
> > "tom taol" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >
> > >
> > > i want to clear the texts after ctrl+g in vbe.
> > > for example
> > > debug.print 3
> > > debug.print 3
> > > debug.print 7
> > >
> > >
> > > and then
> > > debugWnd.clear this syntax....
> > >
> > >
> > >
> > > *** Sent via Developersdex http://www.developersdex.com ***

>
> --
>
> Dave Peterson


--

Dave Peterson
 
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
Can I set ctrl+s and ctrl+o window size & ctrl+o save as type defa Moonbarker Osbourne Windows XP General 1 18th Jan 2008 02:10 PM
Shortcut keys like Ctrl+C, Ctrl+V, Ctrl+A etc Not Working gettechtips@yahoo.co.in Windows XP General 1 23rd Sep 2006 12:43 PM
Word 2003 go to start of document - ctrl home taking me to CTRL G =?Utf-8?B?bGVs?= Microsoft Word Document Management 3 12th Jul 2006 01:34 PM
How to enable Ctrl+C, Ctrl+V, Ctrl+X in textBoxes? kari Microsoft C# .NET 1 16th May 2006 02:19 AM
Re: VB script that mimics CTRL+C, CTRL+G, CTRL+V, ENTER? Fergus Cooney Microsoft VB .NET 0 8th Nov 2003 01:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.