Macro for forms function

S

Shawn

Hello, I have a spreadsheet that I want to create a macro
to open the form function (under Data Form). I have not
been able to create a macro to do this. I have received
several different errors. Can someone help show me what
to type in the macro to make it work.

Thanks in advance for all of your help.
 
P

Peter

-----Original Message-----
Hello, I have a spreadsheet that I want to create a macro
to open the form function (under Data Form). I have not
been able to create a macro to do this. I have received
several different errors. Can someone help show me what
to type in the macro to make it work.

Thanks in advance for all of your help.
.
Try

ActiveSheet.ShowDataForm

Make sure that the cursor is in the data list

Regards
Peter Atherton
 
T

Tom Ogilvy

ActiveSheet.ShowDataForm

If your data does not start in the first two rows, you will be more
successful if you name the table "database"

Assume the top left corner of your data is in cell M35

Range("M35").CurrentRegion.Name = "Database"
ActiveSheet.ShowDataForm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top