PC Review


Reply
Thread Tools Rate Thread

What is compiling and should I do it?

 
 
dim
Guest
Posts: n/a
 
      11th Jun 2008
Hi folks,

My program consists of 197 .xls files in 5 sub-folders. 134 of these files
contain programming and macros.

The different files interact with each other in various ways, with different
macros opening and closing other files at different times, and data being
added to, removed from, or used by various files by macros when under the
control of various other files.

Anyway, In the Debug menu of the VBA Editor I see the 'Compile VBA Project'
command. My understanding of compiling is that it compresses the code files
to remove various elements used when creating the program, and make the
program ready for release. Is this correct?

Do I need to compile my program before release, and if so, do I need to
compile each .xls file individually?

Thanks.
 
Reply With Quote
 
 
 
 
John Wilson
Guest
Posts: n/a
 
      11th Jun 2008
Pretty good answer (and explanation) here:

http://www.vbaexpress.com/forum/showthread.php?t=9772


"dim" <(E-Mail Removed)> wrote in message
news:C8F576EF-EDF9-4050-B970-(E-Mail Removed)...
> Hi folks,
>
> My program consists of 197 .xls files in 5 sub-folders. 134 of these files
> contain programming and macros.
>
> The different files interact with each other in various ways, with
> different
> macros opening and closing other files at different times, and data being
> added to, removed from, or used by various files by macros when under the
> control of various other files.
>
> Anyway, In the Debug menu of the VBA Editor I see the 'Compile VBA
> Project'
> command. My understanding of compiling is that it compresses the code
> files
> to remove various elements used when creating the program, and make the
> program ready for release. Is this correct?
>
> Do I need to compile my program before release, and if so, do I need to
> compile each .xls file individually?
>
> Thanks.


 
Reply With Quote
 
RB Smissaert
Guest
Posts: n/a
 
      11th Jun 2008
That sounds like a very complex project!
I would do a compile before every save, if there was any substantial code
change.
This will then pick any problems and avoid a save with these problems left
unfixed.
Also make sure that every module (normal module, class module and form
module) has Option Explicit at the top.

RBS


"dim" <(E-Mail Removed)> wrote in message
news:C8F576EF-EDF9-4050-B970-(E-Mail Removed)...
> Hi folks,
>
> My program consists of 197 .xls files in 5 sub-folders. 134 of these files
> contain programming and macros.
>
> The different files interact with each other in various ways, with
> different
> macros opening and closing other files at different times, and data being
> added to, removed from, or used by various files by macros when under the
> control of various other files.
>
> Anyway, In the Debug menu of the VBA Editor I see the 'Compile VBA
> Project'
> command. My understanding of compiling is that it compresses the code
> files
> to remove various elements used when creating the program, and make the
> program ready for release. Is this correct?
>
> Do I need to compile my program before release, and if so, do I need to
> compile each .xls file individually?
>
> Thanks.


 
Reply With Quote
 
dim
Guest
Posts: n/a
 
      11th Jun 2008
Thanks folks,

That site pretty much explained it. I'll run the compile manually for each
of my files just in case.

Yeah, its the most complex Excel based program I've ever come across! lol
Unfortunately this is the final Exce build. For the next version I'm moving
over to C++.

Can you explain the Option Exlicit some more please, I've never used it?

 
Reply With Quote
 
RB Smissaert
Guest
Posts: n/a
 
      11th Jun 2008
> Can you explain the Option Exlicit some more please, I've never used it?

All explained nicely in the VBA help.
If you do in the VBE:
Tools, Options, Editor and tick Require variable declaration then Option
Explicit will always be automatically added for you when you add a new
module.

RBS


"dim" <(E-Mail Removed)> wrote in message
news:3438444F-FE4F-4636-A1D8-(E-Mail Removed)...
> Thanks folks,
>
> That site pretty much explained it. I'll run the compile manually for each
> of my files just in case.
>
> Yeah, its the most complex Excel based program I've ever come across! lol
> Unfortunately this is the final Exce build. For the next version I'm
> moving
> over to C++.
>
> Can you explain the Option Exlicit some more please, I've never used it?
>


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jun 2008
You may want to read Dan Baarnes' white paper:
http://archive.baarns.com/excel/develop/vbaperfm.asp

Along with Robert Bruce's post:
http://groups.google.co.uk/group/mic...1b10a86ce16ae9

or

http://snipurl.com/2fh0n



dim wrote:
>
> Hi folks,
>
> My program consists of 197 .xls files in 5 sub-folders. 134 of these files
> contain programming and macros.
>
> The different files interact with each other in various ways, with different
> macros opening and closing other files at different times, and data being
> added to, removed from, or used by various files by macros when under the
> control of various other files.
>
> Anyway, In the Debug menu of the VBA Editor I see the 'Compile VBA Project'
> command. My understanding of compiling is that it compresses the code files
> to remove various elements used when creating the program, and make the
> program ready for release. Is this correct?
>
> Do I need to compile my program before release, and if so, do I need to
> compile each .xls file individually?
>
> Thanks.


--

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
Help for compiling delphine_fontaine@yahoo.com Microsoft C# .NET 2 18th Jan 2006 07:00 PM
compiling a DLL Luigi Puleio Microsoft VC .NET 2 29th Jun 2004 07:49 AM
Compiling with .NET 1.0 Matt Tapia Microsoft Dot NET Compact Framework 1 8th Jun 2004 08:16 PM
Stop compiling doesn't stop compiling Rudy Ray Moore Microsoft VC .NET 0 5th May 2004 12:50 AM
vb.net compiling Tim Shelton Microsoft VB .NET 4 24th Apr 2004 11:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.