andylowekcx
New Member
- Joined
- Feb 26, 2015
- Messages
- 2
hi i am getting a run time error 13 mistype when i copy a cell from one workbook to another. The cell just contains an address.
on the workbook i am copying to it has some vba running. The code is used to take a name from cell D3 and rename the tab on the bottom.
i am not even adjusting this cell when the error occurs. excel keeps highlighing the a specific line.
bear in mind i am no expert and have tried to put code together using other peoples examples from online.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target = Range("D3") Then
ActiveSheet.Name = Range("D3").Value
Call SortSheets
Worksheets(Sh.Name).Activate
End If
End Sub[/CODE]
it works normally until i copy.
any help would be greatful.
thanks in advance
on the workbook i am copying to it has some vba running. The code is used to take a name from cell D3 and rename the tab on the bottom.
i am not even adjusting this cell when the error occurs. excel keeps highlighing the a specific line.
bear in mind i am no expert and have tried to put code together using other peoples examples from online.
Code:
If Target = Range("D3") Then
ActiveSheet.Name = Range("D3").Value
Call SortSheets
Worksheets(Sh.Name).Activate
End If
End Sub[/CODE]
it works normally until i copy.
any help would be greatful.
thanks in advance