+ Reply to Thread
Results 1 to 5 of 5

What's the point of compiling?

  1. #1
    cdb
    Guest

    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. #2
    Bernie Deitrick
    Guest

    Re: What's the point of compiling?

    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" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #3
    cdb
    Guest

    Re: What's the point of compiling?

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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. #4
    Bernie Deitrick
    Guest

    Re: What's the point of compiling?

    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" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > 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. #5
    cdb
    Guest

    Re: What's the point of compiling?

    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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1