Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default sheets.select

Hi

I Have a funny thing
Wen I run a VBA macro with this code


Debug.Print Me.Name (
Debug the file name correct)
Debug.Print ActiveSheet.Name ( Debug
the actual sheetname correct)
Workbooks("filename.xls").Activate
Sheets("Sheet name").Select



But it dont select the new sheet (sheet name) ??
It doesent either work with Windows("filename.xls").Activate

I am using windows 2000 and excell 2003

Anyone have an Idea??


regards

Kurt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default sheets.select

My first guess would be either the sheet is not visible, or screenupdating
is off, or both. Try:

Sheets("Sheet name").Select
ActiveSheet.Visible = True
'and/or
Application.ScreenUpdating = True

Mike F
"kurt" wrote in message
ups.com...
Hi

I Have a funny thing
Wen I run a VBA macro with this code


Debug.Print Me.Name (
Debug the file name correct)
Debug.Print ActiveSheet.Name ( Debug
the actual sheetname correct)
Workbooks("filename.xls").Activate
Sheets("Sheet name").Select



But it dont select the new sheet (sheet name) ??
It doesent either work with Windows("filename.xls").Activate

I am using windows 2000 and excell 2003

Anyone have an Idea??


regards

Kurt



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default sheets.select


Mike Fogleman skrev:

My first guess would be either the sheet is not visible, or screenupdating
is off, or both. Try:

Sheets("Sheet name").Select
ActiveSheet.Visible = True
'and/or
Application.ScreenUpdating = True

Mike F
"kurt" wrote in message
ups.com...
Hi

I Have a funny thing
Wen I run a VBA macro with this code


Debug.Print Me.Name (
Debug the file name correct)
Debug.Print ActiveSheet.Name ( Debug
the actual sheetname correct)
Workbooks("filename.xls").Activate
Sheets("Sheet name").Select



But it dont select the new sheet (sheet name) ??
It doesent either work with Windows("filename.xls").Activate

I am using windows 2000 and excell 2003

Anyone have an Idea??


regards

Kurt


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
select sheets snax500[_2_] Excel Programming 6 June 8th 05 04:48 AM
Select Visible sheets Darin Kramer Excel Programming 5 January 31st 05 03:48 PM
How to select other sheets using ADO farmer[_2_] Excel Programming 2 October 24th 04 06:56 PM
select a1 on all sheets Piers Clinton-Tarestad Excel Programming 1 October 1st 03 08:34 PM
select sheets by name - how? Walt[_2_] Excel Programming 5 July 30th 03 10:42 PM


All times are GMT +1. The time now is 09:46 AM.

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

About Us

"It's about Microsoft Excel"