Error in VBA
Solved/Closed
Newmie2013
Posts
10
Registration date
Monday March 21, 2016
Status
Member
Last seen
May 11, 2016
-
May 9, 2016 at 07:50 AM
Newmie2013 Posts 10 Registration date Monday March 21, 2016 Status Member Last seen May 11, 2016 - May 11, 2016 at 08:03 AM
Newmie2013 Posts 10 Registration date Monday March 21, 2016 Status Member Last seen May 11, 2016 - May 11, 2016 at 08:03 AM
Related:
- Error in VBA
- Network error occurred - Guide
- Vba case like - Guide
- Cmos checksum error - Guide
- Number to words in excel formula without vba - Guide
- Bios rom checksum error - Guide
1 response
Newmie2013
Posts
10
Registration date
Monday March 21, 2016
Status
Member
Last seen
May 11, 2016
May 11, 2016 at 08:03 AM
May 11, 2016 at 08:03 AM
Sub GesamtlisteAenderung(ByVal Target As Range)
On Error GoTo Abbrechen
Dim x As Integer
If Intersect(Target, Columns("B:B")) Is Nothing Then Exit Sub
x = Target.Offset(0, -1).Value
ActiveSheet.Unprotect Password:="AufkeinenFallloeschen!"
Target.Offset(0, -1) = x
ActiveSheet.Protect Password:="AufkeinenFallloeschen!"
Abbrechen:
Exit Sub
End Sub
On Error GoTo Abbrechen
Dim x As Integer
If Intersect(Target, Columns("B:B")) Is Nothing Then Exit Sub
x = Target.Offset(0, -1).Value
ActiveSheet.Unprotect Password:="AufkeinenFallloeschen!"
Target.Offset(0, -1) = x
ActiveSheet.Protect Password:="AufkeinenFallloeschen!"
Abbrechen:
Exit Sub
End Sub