Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto Open Not Functioning
Hi,
I have the following routine running with AutoOpen, but it is just not working - it was fine until I included the IF statement at the beginning. Help appreciated! Sub AutoOpen() If LCase(ThisWorkbook.Name) = "readyreckoner.xls" Then Sheets("READY RECKONER").Visible = True Sheets("READY RECKONER").Select Sheets("READY RECKONER").Protect DrawingObjects:=False, Contents:=False, Scenarios:=False Range("CONTRACT_LENGTH").Select Selection.ClearContents Range("NO_OF_TEMPS").Select Selection.ClearContents Range("DAILY_HOURS").Select Selection.ClearContents Range("PAY_RATE").Select Selection.ClearContents Range("ENTER_MARGIN").Select Selection.ClearContents Range("ENTER_MARKUP").Select Selection.ClearContents Range("ENTER_FIXED").Select Selection.ClearContents Sheets("READY RECKONER").Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("READY RECKONER").Visible = False Sheets("ROLLING PENNY").Visible = True Sheets("ROLLING PENNY").Select Sheets("READY RECKONER").Protect DrawingObjects:=False, Contents:=False, Scenarios:=False Range("Q12").Select ActiveCell.FormulaR1C1 = "1" Range("S12").Select ActiveCell.FormulaR1C1 = "1" Range("A1").Select Sheets("READY RECKONER").Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("ROLLING PENNY").Visible = False End If ' display user input form ReadyReckoner.Show End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
the auto date feature is not functioning properly - how to reset | New Users to Excel | |||
Auto Open | Excel Discussion (Misc queries) | |||
Problem With Auto Open | Excel Programming | |||
Auto Open won't die or go away | Excel Programming | |||
Auto Open | Excel Programming |