LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Application

This also works

Private Sub Workbook_Open() 'This is part of the macro in workbook VT
Dim FileOpen, FileOpenend

FileOpen = ActiveWorkbook.Path
FileOpenend = FileOpen & "\Arkiv\" & "Statistikk.xls"

Workbooks.Open FileOpenend
Application.Windows("Statistikk.xls").Visible = False

End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Michael" wrote in message
...
Hi Bob.

This is the code:

Private Sub Workbook_Open() 'This is part of the macro in workbook VT

Fileopen = ActiveWorkbook.Path
Fileopenend = Fileopen & "\Arkiv\" & "Statistikk.xls"

Workbooks.Open Fileopenend

**Now the workbook Statistikk is open, but it will not take this

Windows("Statistikk.xls").Visible = False

End Sub


--
Nil Satis Nisi Optimum


"Bob Phillips" wrote:

Michael,

That seems to suggest then that you do not have a workbook called
"Statistikk.xls" open in Excel. Is it spelt correctly?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Michael" wrote in message
...
Hi again Bob.

I forgot to tell you that i tried this one to.

Windows("Statistikk.xls").Visible = False

The message i get is "Run time error 9" "subscript out of range"
--
Nil Satis Nisi Optimum


"Bob Phillips" wrote:

Almost Michael, when I say workbook name I mean with the extension

Windows("Statistikk.xls").Visible = False


--

HTH

RP
(remove nothere from the email address if mailing direct)








 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.GetOpenFilename vs Application.Dialogs(xlDialogsOpen) Paul Martin Excel Programming 5 August 5th 05 04:44 PM
Replace application.RTD property by Application.RTDServers collect John.Greenan Excel Programming 1 July 7th 05 02:05 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
Using Application.Run in VBA Jag Man Excel Programming 0 January 17th 04 12:39 AM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"