Application window size

  • Thread starter Victor and TJ Friedmann
  • Start date
V

Victor and TJ Friedmann

I associate this macro with a shape in ppt2007 presentation:

Sub servingsexcel()

Shell "C:\Program Files\Programs\Microsoft Office\Office\EXCEL.EXE" & " " &
"C:Documents and Settings\My Documents\cookbook\excel servings\marsala.xls",
vbNormalFocus

With Application
.Width = 601.5
.Height = 498.2
End With
End Sub

The idea is to open the escel window as the active window with a particular
size. Closing the excel window will return the user to the ppt presentatio.

What is wrong with this code?

Thanks.

Vic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top