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:
ActiveSheet.ShowDataForm
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
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
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
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.
Good luck.
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
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks