Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Close Project 2010 without saving using VBA

$
0
0

Hi All,

I have written a code in excel which opens project, runs a macro, and then shuts project. It works fine but it asks if I want to save upon closing. I have tried allsorts to stop it but I have run out of ideas.

Can you please help?!!!

Thanks

Alex

Dim A As Object
Set A = CreateObject("MSProject.Application")
    A.Visible = False
    A.Application.DisplayAlerts = False
    A.FileOpen ("My Files.mpp"), ReadOnly:=True
    A.Macro "Save_Temp"
    A.FileClose


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>