PC Review


Reply
Thread Tools Rate Thread

What does the compile debug option do?

 
 
DG
Guest
Posts: n/a
 
      6th Nov 2007
I have Office 2003 w/ visual basic 6.3. In visual basic if you click the
debug menu option the first option is Compile VBAProject. What does it do?
I click it and nothing happens. In fact it get greyed out. If it will make
my programs faster then how do I use it?

Dan


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      6th Nov 2007
The compile option just reports errors. You will get the same errors if you
execute the code. I run the compile option when I have long programs that
are not ready to run, but I want to get rid of the errors.

There are three levels of error checking in VBA. The first are syntax
errors on individual lines which get reported when you type. The second type
are the compile errors such as an IF statement without an end. The third
type are the run errors.

The second type only gets reported when you compile the code or when you
start to execute the code. VBA automatically performs the compile feature
before running the code.

"DG" wrote:

> I have Office 2003 w/ visual basic 6.3. In visual basic if you click the
> debug menu option the first option is Compile VBAProject. What does it do?
> I click it and nothing happens. In fact it get greyed out. If it will make
> my programs faster then how do I use it?
>
> Dan
>
>
>

 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      6th Nov 2007
VBA code is never stored in the text format that you typed in. Instead, it
is stored as a series of byte codes called OpCodes (conceptually similar to
the way Java works). These are platform and version independent. In order to
by read and run by the VBA run-time interpreter, these OpCodes must be
translated to platform and version specific codes called ExCodes. That is
what Compile actually does, create ExCodes from OpCodes.


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


"Joel" <(E-Mail Removed)> wrote in message
news:A7C8EF0F-2009-4D2C-941E-(E-Mail Removed)...
> The compile option just reports errors. You will get the same errors if
> you
> execute the code. I run the compile option when I have long programs that
> are not ready to run, but I want to get rid of the errors.
>
> There are three levels of error checking in VBA. The first are syntax
> errors on individual lines which get reported when you type. The second
> type
> are the compile errors such as an IF statement without an end. The third
> type are the run errors.
>
> The second type only gets reported when you compile the code or when you
> start to execute the code. VBA automatically performs the compile feature
> before running the code.
>
> "DG" wrote:
>
>> I have Office 2003 w/ visual basic 6.3. In visual basic if you click the
>> debug menu option the first option is Compile VBAProject. What does it
>> do?
>> I click it and nothing happens. In fact it get greyed out. If it will
>> make
>> my programs faster then how do I use it?
>>
>> Dan
>>
>>
>>


 
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
Re: looking for release dll in debug compile Pete Kane Microsoft C# .NET 1 21st Aug 2008 09:44 PM
Compile only for debug? Bob Altman Microsoft VC .NET 6 25th Feb 2008 03:58 PM
Debug/Compile VBAProject not available =?Utf-8?B?bWlsbHk=?= Microsoft Excel Programming 3 21st Jul 2005 08:58 AM
How to auto-re-compile with /debug option from inside DbgCLR.exe Debugger ? Keith Clark Microsoft C# .NET 1 20th Aug 2004 05:13 PM
how to compile/debug from within VS Robert Blackwell Microsoft C# .NET 1 16th Sep 2003 06:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:55 PM.