Originally Posted by
bopo
Regarding the code to disable the toolbars
'Public Formula Bar', keeps coming up saying
Complier Error
Expected: End of Statement
I have copied to code exactly, any idea on the problem?
Thanks
Also, i have been trying to change the coding below to work with any cell in column A, such as A1, A2, A3,A4 etc etc, however do I change the coding so its works on all the column A cells.
[vba]Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "A8" '<== change to suit
On Error Goto ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Resize(, 8).Select
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub [/vba]
Cheers