Hi All
i very rarely ever use an input box so I'm not very good at them
I am trying to use one to enter just a number in a cell, it's entering the number in the cell but then causing an error, the error debugs back "If Intersect(Target, Range("B3")) = "Standard pontoon berth per metre" Then"
It's Friday afternoon and I'm running out of time and temperament, my lap top is about to get thrown through a window, closely followed by what is now left of my hair having torn most of it out with frustration
Any help would be greatly appreciated
Cheers
Paul
i very rarely ever use an input box so I'm not very good at them
I am trying to use one to enter just a number in a cell, it's entering the number in the cell but then causing an error, the error debugs back "If Intersect(Target, Range("B3")) = "Standard pontoon berth per metre" Then"
It's Friday afternoon and I'm running out of time and temperament, my lap top is about to get thrown through a window, closely followed by what is now left of my hair having torn most of it out with frustration
Any help would be greatly appreciated
Cheers
Paul
VBA Code:
Private Sub worksheet_change(ByVal Target As Range)
If Intersect(Target, Range("B3")) = "Standard pontoon berth per metre" Then
Range("F2").Value = InputBox("Enter boat length in metres.", "Boat length")
End If
End Sub