I am trying what I thought would be a simple button add to an excel 365 worksheet. I need to add the DataForm to a button so users will have an easy location to click and add data.
The code I am using is this:
Sub open_form()
'
' open_form Macro
Range("e5").Select (the first cell in the table of data)
ActiveSheet.ShowDataForm
End Sub
But I am getting Run-time error '1004'
ShowDataForm method of Worksheet class failed.
All the examples i am seeing on line state this should work..
What am i doing wrong??
Thanks in advance...