Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
select sheets | Excel Programming | |||
Select Visible sheets | Excel Programming | |||
How to select other sheets using ADO | Excel Programming | |||
select a1 on all sheets | Excel Programming | |||
select sheets by name - how? | Excel Programming |