ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro for forms function (https://www.excelbanter.com/excel-programming/282129-macro-forms-function.html)

Shawn[_4_]

Macro for forms function
 
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.

Peter[_33_]

Macro for forms function
 

-----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

Tom Ogilvy

Macro for forms function
 
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

--
Regards,
Tom Ogilvy

Shawn wrote in 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.





All times are GMT +1. The time now is 03:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com