Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi All, hope you are ok. I am struggling with an error runtime error "1004" which keeps o occuring when the macro runs, I protected a the master sheet and have macro to currently copy the sheet and match the entered cell value to a exsisting sheet within the workbook. Current code is: Private Sub Worksheet_Change(ByVal Target As Range) Dim sh As Worksheet If Target.Address(0, 0) = "Q7" Then On Error Resume Next Set sh = Worksheets(Target.Value) On Error GoTo 0 If Not sh Is Nothing Then Cells.Copy sh.Cells Else MsgBox Target.Value & " does not exist" End If End If End Sub Hope some body can help. Many thanks Andrew :mad -- bsnapoo ----------------------------------------------------------------------- bsnapool's Profile: http://www.excelforum.com/member.php...fo&userid=3611 View this thread: http://www.excelforum.com/showthread.php?threadid=55982 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to unlock and lock cells in password protected sheet | Excel Discussion (Misc queries) | |||
no password for protected sheet | Excel Worksheet Functions | |||
How to Copy a Password Protected Excel Worksheet | Excel Worksheet Functions | |||
password protected Sheet | Excel Discussion (Misc queries) | |||
VBa, Password protected sheet fails to get unprotected with the same password | Excel Programming |