Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
could anyone tell me what could possibly be wrong in my code - see remark below? i keep on getting an error message thanks Private Sub Workbook_Open() Const sAPPLICATION As String = "Excel" Const sSECTION As String = "QUOTE1" Const sKEY As String = "QUOTE1_key" Const nDEFAULT As Long = 1& Dim nNumber As Long With ThisWorkbook.Sheets("3") (what could be wrong here?) With .Range("F9") If IsEmpty(.Value) Then .Value = Date .NumberFormat = "dd mmm yyyy" End If End With With .Range("K2") If IsEmpty(.Value) Then nNumber = GetSetting(sAPPLICATION, sSECTION, sKEY, nDEFAULT) .NumberFormat = "@" .Value = Format(nNumber, "0000") SaveSetting sAPPLICATION, sSECTION, sKEY, nNumber + 1& End If End With End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code error | Excel Discussion (Misc queries) | |||
Code error | Excel Discussion (Misc queries) | |||
Error in Code | Excel Discussion (Misc queries) | |||
error in this code | Excel Worksheet Functions | |||
Error Code 481 | Excel Discussion (Misc queries) |