Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cdb
 
Posts: n/a
Default What's the point of compiling?

In the Debug option of the VBA window there's an option to compile the
project. What exactly does this do and what's the point in it?
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Compiling the project checks that the syntax is correct and that the
variables are correctly typed in (that is, if you used Option Explicit,
which you always should.) Sort of checking for errors prior to running the
macro.

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
In the Debug option of the VBA window there's an option to compile the
project. What exactly does this do and what's the point in it?



  #3   Report Post  
cdb
 
Posts: n/a
Default

So should you compile after every change you make to check it's not incorrect
anywhere?

"Bernie Deitrick" wrote:

Compiling the project checks that the syntax is correct and that the
variables are correctly typed in (that is, if you used Option Explicit,
which you always should.) Sort of checking for errors prior to running the
macro.

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
In the Debug option of the VBA window there's an option to compile the
project. What exactly does this do and what's the point in it?




  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

It depends on how much you've changed your code and how critical the
application is. Also remember that it doesn't test your code to make sure
that it actually does what you want - no compiler can do that. All it does
is make sure your have your Next's and End if's and all that...

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
So should you compile after every change you make to check it's not

incorrect
anywhere?

"Bernie Deitrick" wrote:

Compiling the project checks that the syntax is correct and that the
variables are correctly typed in (that is, if you used Option Explicit,
which you always should.) Sort of checking for errors prior to running

the
macro.

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
In the Debug option of the VBA window there's an option to compile the
project. What exactly does this do and what's the point in it?






  #5   Report Post  
cdb
 
Posts: n/a
Default

OK, will bear this in mind.

Cheers

"Bernie Deitrick" wrote:

It depends on how much you've changed your code and how critical the
application is. Also remember that it doesn't test your code to make sure
that it actually does what you want - no compiler can do that. All it does
is make sure your have your Next's and End if's and all that...

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
So should you compile after every change you make to check it's not

incorrect
anywhere?

"Bernie Deitrick" wrote:

Compiling the project checks that the syntax is correct and that the
variables are correctly typed in (that is, if you used Option Explicit,
which you always should.) Sort of checking for errors prior to running

the
macro.

HTH,
Bernie
MS Excel MVP

"cdb" wrote in message
...
In the Debug option of the VBA window there's an option to compile the
project. What exactly does this do and what's the point in it?






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
finding the coordinates of the maximum point on a graph eastham85 Charts and Charting in Excel 2 January 16th 05 01:34 PM
I need to shift cells down only to a point w/o disturbing the bot. wade2753 Excel Discussion (Misc queries) 2 January 14th 05 04:35 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM
On a scatter chart show two point have same value Maz Page Charts and Charting in Excel 1 December 16th 04 01:00 PM
Import chart to Power Point and Macro problem Woody13 Excel Discussion (Misc queries) 1 December 8th 04 05:47 PM


All times are GMT +1. The time now is 11:29 AM.

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"