J
JD
Everytime I try to setup a function via the visual basic editor I get '?Name
returned. What am I doing wrong??
tried this:
Function lastsaved() As Double
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function
and this
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Address(False, False) = "i14" Then
If IsNumeric(.Value) Then
Application.EnableEvents = False
Range("h14").Value = Range("h14").Value + .Value
Application.EnableEvents = True
End If
End If
End With
End Sub
both return #?name
Any help appreciated!
returned. What am I doing wrong??
tried this:
Function lastsaved() As Double
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function
and this
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Address(False, False) = "i14" Then
If IsNumeric(.Value) Then
Application.EnableEvents = False
Range("h14").Value = Range("h14").Value + .Value
Application.EnableEvents = True
End If
End If
End With
End Sub
both return #?name
Any help appreciated!