Excel 2 a Windows Application

crobertson

New Member
Joined
Nov 14, 2005
Messages
32
I have an excel workbook that is functioning perfectly and giving me the data I need. My macros are working great, but my goal is to incorporate the sheet into a Windows Application somehow?

Is there a way to build a windows app in VB that I could use to all the excel sheet and run the macros in the background, without the user seeing what is happening, just getting the csv file that is exported after the macros are run?

Any help is greatly appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
without the user seeing what is happening
Have you tried ScreenUpdating and DisplayAlerts?
Code:
Sub foo
  With Application
     .ScreenUpdating = False
     .DisplayAlerts = False

     '   Your Code

     .ScreenUpdating = True
     .DisplayAlerts = True
   End With
End Sub
That will suppress screen activity and program prompts.

You can make a process seem almost seamless to an end user witha little work.

Hope that helps,

Smitty
 
Upvote 0
So, how could I run this without running the excel document?

Could I call the excel document from a VB Script?
 
Upvote 0
I'm not real familiar with VB Script, but it seems that the Shell command would work.

Smitty
 
Upvote 0
Ok, I have everything incorporated into a UserForm, and that is almost working perfectly. How could I have the user run the xls file but only see the user form?
 
Upvote 0
See this post.

You can also use
Code:
Private Sub Workbook_Open()
   UserFormName.Show
End Sub
To show the UF when the WB is opened.

Smitty
 
Upvote 0

Forum statistics

Threads
1,203,486
Messages
6,055,712
Members
444,809
Latest member
mwh85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top