Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Compile VBA Project

I am wondering what Compile VBA project does. I have a regular Excel
project with quite a bit of VBA being used, and I am wondering mostly if
this will compile my project into a installable program.


Thanks,
Dave Marden


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Compile VBA Project

Nope... you can not make and installable stand alone program. VBA only works
with existing programs. What compiling will do is it will check all of your
syntax and point our any errors in the syntax. You should always compile your
code. If it does not compile then you need to fix it even if it seems to be
running ok. Note that a compiled program can still generate run time errors
so you still need to use error handlers.
--
HTH...

Jim Thomlinson


"Dave Marden" wrote:

I am wondering what Compile VBA project does. I have a regular Excel
project with quite a bit of VBA being used, and I am wondering mostly if
this will compile my project into a installable program.


Thanks,
Dave Marden



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Compile VBA Project

VBA is stored in the workbook as byte-codes that correspond to
the text you type in. The actual text is never saved. When you
compile the code, VBA takes these generic opcodes and compiles
them in to platform-specific excodes, which are in turn read by
the run-time libraries when you run the code. VBA will also
compile code as needed at run time. As a practical matter,
clicking Compile just does a syntax check on the project.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Dave Marden" wrote in message
...
I am wondering what Compile VBA project does. I have a regular
Excel project with quite a bit of VBA being used, and I am
wondering mostly if this will compile my project into a
installable program.


Thanks,
Dave Marden



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
Compile error: Can't find project or library Melanie New Users to Excel 14 August 21st 09 02:54 AM
Compile error: Can't find project or library Vince Excel Programming 2 October 13th 05 04:50 PM
project wide compconditional compile constants Erich Neuwirth Excel Programming 4 May 17th 04 10:48 PM
Compile Error! Can't find project or Library --- Help! Suh Suk Ho Excel Programming 2 July 21st 03 08:26 PM
Project won't compile... tritan Excel Programming 1 July 17th 03 05:37 PM


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"