Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default Workbooks("Mappe1").Activate trouble

When i run this code i got a error...
Run-time error 9
Subscript out of range.

Why ?

Sub Focus()
Workbooks("Mappe1").Activate
End Sub

Im trying to activate book "Mappe1" from book "Mappe3" - both are open!

Using Windows Vista
Excel 2003

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Workbooks("Mappe1").Activate trouble

Include the extension:

workbooks("mappe1.xls").activate



excelent wrote:

When i run this code i got a error...
Run-time error 9
Subscript out of range.

Why ?

Sub Focus()
Workbooks("Mappe1").Activate
End Sub

Im trying to activate book "Mappe1" from book "Mappe3" - both are open!

Using Windows Vista
Excel 2003


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default Workbooks("Mappe1").Activate trouble

gee. didnt think bout that, but that did it fine
thanks Dave


"Dave Peterson" skrev:

Include the extension:

workbooks("mappe1.xls").activate



excelent wrote:

When i run this code i got a error...
Run-time error 9
Subscript out of range.

Why ?

Sub Focus()
Workbooks("Mappe1").Activate
End Sub

Im trying to activate book "Mappe1" from book "Mappe3" - both are open!

Using Windows Vista
Excel 2003


--

Dave Peterson

Reply
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
Multiple "source" workbooks linked to single "destination" workboo DAVEJAY Excel Worksheet Functions 1 September 17th 07 05:33 PM
problem with Linking workbooks via "copy" and "paste link" Arkitek Excel Discussion (Misc queries) 0 December 19th 06 10:03 PM
"Select" and "Activate" failing? Ed Excel Programming 3 September 13th 06 06:29 PM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" Luc[_3_] Excel Programming 2 September 28th 05 08:37 PM
"Subscript out of range" error for: Workbooks("Test1.xls").Save Just12341234 Excel Programming 2 June 17th 05 03:16 PM


All times are GMT +1. The time now is 11:46 PM.

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"