PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Crashes Failure to close DialogSheet

Reply

Failure to close DialogSheet

 
Thread Tools Rate Thread
Old 09-11-2004, 09:30 AM   #1
=?Utf-8?B?VGlhZ28gQy4gQy4=?=
Guest
 
Posts: n/a
Default Failure to close DialogSheet


Hi everyone. I have a macro that pop's up a DialogSheet Box. It works fine,
but I'm trying to implement a button that would open a given worksheet and
close the DialogSheet Box. The worksheet opens, but the DialogSheet Box
remains. The line I wrote is:
DialogSheets("name").Hide

If I run the code in the Microsoft Visual Basic, run-time error 1004 occurs
(and I'm not being able to manage it - I already looked what it means, and I
just think everything is fine). If I try to run the code in Excel, this
message is displayed: "Your entry cannot be used. An integer or decimal
number may be required". Does anybody have any suggestions?

Thanks.
  Reply With Quote
Old 11-11-2004, 07:56 PM   #2
Harald Staff
Guest
 
Posts: n/a
Default Re: Failure to close DialogSheet

Hi

Guess your code errs before you reach the Hide row. Do you get a "Debug"
option with the error ? Choose that and it may take you to the problem.

HTH. Best wishes Harald

"Tiago C. C." <Tiago C. C.@discussions.microsoft.com> skrev i melding
news:9A7CE6E9-A972-44FF-B4B3-BA780AEA85EE@microsoft.com...
> Hi everyone. I have a macro that pop's up a DialogSheet Box. It works

fine,
> but I'm trying to implement a button that would open a given worksheet and
> close the DialogSheet Box. The worksheet opens, but the DialogSheet Box
> remains. The line I wrote is:
> DialogSheets("name").Hide
>
> If I run the code in the Microsoft Visual Basic, run-time error 1004

occurs
> (and I'm not being able to manage it - I already looked what it means, and

I
> just think everything is fine). If I try to run the code in Excel, this
> message is displayed: "Your entry cannot be used. An integer or decimal
> number may be required". Does anybody have any suggestions?
>
> Thanks.



  Reply With Quote
Old 12-11-2004, 10:32 AM   #3
=?Utf-8?B?VGlhZ28gQy4gQy4=?=
Guest
 
Posts: n/a
Default Re: Failure to close DialogSheet

Hi Harald,

Thank you for your reply. However, I had already checked the Debug option,
and it appointed the error was in the Hide line. Besides, the code in general
is huge and a lot more complex, and still everything else works fine, except
the dialog box that doesn't go away. My collegees at work agree the sintax
looks correct, and still nobody knows what's the problem.

Well, thanks anyway,
best regards,
Tiago.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off