Simple Macro help for adding a record in a form

TCrank

New Member
Joined
Jun 18, 2006
Messages
9
I tried to create a simple macro to assign to a button that would pop up an entry form to add a record and I get an error message.

Here are the steps I used to record the macro:
1) Go to a cell in the table
2) Select "Data", from the menu bar
3) Select "Form"
4) Click on "New" in the data form

Then end the macro.

When running the macro I get an error message: Run-Time '1004':
ShowDataForm method of worksheet class failed

Appreciate any help you could give me on creating the macro or the code to produce the data entry form for the user and present a blank record to type in the data.
Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,730
Messages
6,126,528
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top