VBA Excel help

dunk

New Member
Joined
Feb 19, 2002
Messages
30
Hi, Im looking for what probably is a simple piece of code, but I cant get it to work. it is a .exe file in VB

Open Excel (this works fine)

Open a | delimited file (this works fine)

Save the file as a text file of the same
name without promping the user about a file exists of the same name etc.

now close Excel(I cant get this working)

I hope somebody out there would be able to help me.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Is your code running from Excel or from VB?

If it's from Excel then use

Application.Quit

If it's from VB then use

xlAppObjectName.Quit

Where xlAppObject name is the name of the variable you're using to reference Excel. If this isn't right then you're probably best off posting the offending bit of code.

Regards,

D
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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