View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
David T David T is offline
external usenet poster
 
Posts: 70
Default Open Excel in New Window using a Macro

Hey dave-

That's cool!!!! It worked very nicely. I'm getting a second monitor for my
computer and was wondering if it is possible to tweak this code to where it
will open this worksheet in another workbook so that I can view this
worksheet on one monitor and view the other worksheet on the other monitor.
Thanks in advance

David

"David T" wrote:

Hey guys-

I need a macro to open a file in a separate window so that I can view the
current file and the new file side by side. My current macro is opening the
file within the same window. I also need a message box that will say "Can
not file file" if the macro cannot find the file. My current macro opens the
message box regardless if if finds the file or not. Can someone
help???????????!!!!!!!!!!!1


Sub open_Wiresheet()
On Error GoTo Exits

Application.Workbooks.Open ("O:\SEM\Common\Accounting\Mar-07 Wire Transfer
Schedule.xls")

Exits: reply = Msgbox("Cannot find file. Please open file manually", vbOK
Or vbQuestion)

If reply = vbOK Then

Exit Sub
End If
End Sub