«

»

Mar 26

Launching Peachtree

Use the Shell command to launch Peachtree. However, you must preface this statement with the ChDir (“C:PEACHW”) command. To retain the current directory settings, use CurDir to return the current directory, then pass the result to a second ChDir command. Otherwise, C:PEACHW will become the default directory for Excel, and users may inadvertantly save spreadsheet files there. Sample code:
x=CurDir
ChDir (“C:PEACHW”)
q = Shell(“C:PEACHWPEACHW.EXE”, vbMinimizedNoFocus)
ChDir (x)