If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > compile .exe files with vba?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-04, 10:24
arie ribbens arie ribbens is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
Question compile .exe files with vba?

Hi,

I'm working on a project in excel. I start of with one .xls file which auto opens a form. This form has different buttons to open different .xls files.
It would be nice if i could compile the first form to a .exe as i only need the form and not the .xls file that opens it.
Does anyone know if this is possible in vba? Or is it only possible in VB?
Thanks in advance!

Cheers,
Arie
Reply With Quote
  #2 (permalink)  
Old 01-05-04, 12:14
RickKnight RickKnight is offline
Registered User
 
Join Date: Sep 2003
Location: Cincinnati, Oh USA
Posts: 203
Re: compile .exe files with vba?

Not to my knowledge. The difference beween VB and VBA is that VBA can not be compiled. You could of course create a VB application.

Quote:
Originally posted by arie ribbens
Hi,

I'm working on a project in excel. I start of with one .xls file which auto opens a form. This form has different buttons to open different .xls files.
It would be nice if i could compile the first form to a .exe as i only need the form and not the .xls file that opens it.
Does anyone know if this is possible in vba? Or is it only possible in VB?
Thanks in advance!

Cheers,
Arie
__________________
Rick Knight
KnightShift Office Solutions and Horse Breaking
VB, VBA, FileMaker, Access Solutions, Web Solutions
Reply With Quote
  #3 (permalink)  
Old 01-06-04, 02:54
arie ribbens arie ribbens is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
thanks for making that clear rick, guess i'll have to use vb then.

cheers,
Arie
Reply With Quote
  #4 (permalink)  
Old 01-06-04, 11:30
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Red face

Not so fast... you're doing the work in Excel and so you're always going to have to open Excel sometime. You can "open an Excel spreadsheet or form as an OLE object" or somesuch to change the appearance of what is happening, but there's no EXE in the world that's going to be able to do this job without an MS-Excel environment initialized and present (visible or not). "If you're in for the penny, you're in for the pound." May as well keep with status quo, IMHO and JM2CW.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #5 (permalink)  
Old 01-13-04, 05:17
arie ribbens arie ribbens is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
thanks for that reply.
I've made the form in vb now and i want to open excel and eventually the excel file when i click a button. But i can't get it to work (compile error - sub or function not defined) i'm a bit new to vb so i guess this will be a n00b question, but what i'm i doing wrong?

Private Sub Command1_Click()
AppExecute Command:="Excel"
End Sub


Cheers Arie
Reply With Quote
  #6 (permalink)  
Old 01-13-04, 09:01
Xl-Dennis Xl-Dennis is offline
Registered User
 
Join Date: Dec 2003
Location: Östersund Sweden
Posts: 60
Arie,

Following KB-article will get You started:

http://support.microsoft.com/default...;en-us;Q219151

Kind regards,
Dennis
__________________
Kind regards,
Dennis
Reply With Quote
  #7 (permalink)  
Old 01-13-04, 09:07
arie ribbens arie ribbens is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
thanks XL-Dennis, on a first quick look this article seems to do the job for me.
Thanks!!!

cheers
arie
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On