Hi all,
I'm looking to make a button which will open the Data Form window, essentially to use Excel as a database. Does anyone know what the correct code is to do this?
Hi all,
I'm looking to make a button which will open the Data Form window, essentially to use Excel as a database. Does anyone know what the correct code is to do this?
Hi
Maybe:
Please Login or Register to view this content.
Thank you for your reply. I'm still getting an error message "ShowDataForm method of Worksheet class failed"
Here is what I'm currently using:
ActiveSheet.ShowDataForm
Range("A8").Select
ActiveSheet.ShowDataForm
I need the range to start from A8 if its possible.
For this to work, you need to have a database to set up, so you at least need column headers
I do have headers but they on row 8, does this create the issue?
Also, I only need the VBA code to open a 'data form' not a custom made User Form
If I remember aright, you have to name the range 'Database' if it does not begin within A1:B2
Good luck.
I can get the code to run properly until the open data form part. It will select cell A8 but then won't open the form.
As per my previous post, either the data must start within the range A1:B2 or you have to name the range 'Database' (formula tab, name manager). Without that the code will not work.
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks