Data Forms that won't show

Domigos

New Member
Joined
Mar 20, 2002
Messages
11
Hi there all you wizards - I wonder if anyone can solve this one?

I am tring to get a Dataform to show using a macro button on the screen. I have recorded the macro which reads (once recorded) as "ActiveSheet.ShowDataForm"

However, when I subsequently try to run this macro, I get the error message:-
'Run time error '1004'
ShowDataForm method of Worksheet class failed.

Any ideas on how to get this to work? - any replies would be appreciated as this will be a real help in putting a large project together.

Domigos.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi Domigos,
In your Command Buttons properties,
set the property "Take focus on click" to = FALSE.

If that alone does not solve the problem, then precede the show
ActiveSheet.ShowDataForm with this instruction:

Range("A1").Activate

Try it
Tom
 
Upvote 0
Tom,

I cant find a properties dialog for the button (which I created from the Forms toobar)- am I being daft?

Domigos.
 
Upvote 0
No Domigos,
I'm not sure what "daft" means, but maybe
that is my title...
I apoligize for leading you down the wrong trail here.
Am fairly new to Excel but with some experience in VBA...
After checking out the form's type command button, it does not appear that there are any properties for it???
I never even knew there was another type of command button. I don't know why there is.

Sorry,
I hope someone else can help you on this one,
Tom
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,941
Members
448,534
Latest member
benefuexx

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