Article ID: 116328
Article Last Modified on 10/11/2006
Sub Store_App_Options()
' Dimension variables
Dim Drag as Boolean, Move as Boolean, Dec As Boolean
Dim Formula as Boolean, Status As Boolean
Dim Notes as Boolean, Info as Boolean, Request As Boolean
Dim Places As Integer
Dim Ref As String
' Store Application Edit, View and General options
With Application
' Edit options
Drag = .CellDragAndDrop
Move = .MoveAfterReturn
Dec = .FixedDecimal
Places = .FixedDecimalPlaces
' View options
Formula = .DisplayFormulaBar
Status = .DisplayStatusBar
Notes = .DisplayNoteIndicator
Info = .DisplayInfoWindow
' General options
Ref = .ReferenceStyle
Request = .IgnoreRemoteRequests
End With
' Continue with the rest of your macro here
' Restore Application Edit, View and General options
' at the end of your macro
With Application
' Edit options
.CellDragAndDrop = Drag
.MoveAfterReturn = Move
.FixedDecimal = Dec
.FixedDecimalPlaces = Places
' View options
.DisplayFormulaBar = Formula
.DisplayStatusBar = Status
.DisplayNoteIndicator = Notes
.DisplayInfoWindow = Info
' General options
.ReferenceStyle = Ref
.IgnoreRemoteRequests = Request
End With
End Sub
Additional query words: 5.00a 5.00c 7.00a workspace XL
Keywords: kbprogramming KB116328