PDA

View Full Version : Solved: edit macro cancel step



Pete
07-24-2008, 07:50 AM
Hi

Driving me mad.....but cannot see the answer.

Here is the problem: - Need the macro to do the following two steps ONLY.

1. If you clicks worksheet "Administrator" then a userform appears which they can press cancel to go back to wworksheet "Daily Cmmunicatons Log" - if they press ok then nothing happens would like a msg box "Please Enter A Vaild Password"

2. If then the user clicks the worksheet "Daily communications log" whlist in the worksheet "Administrator" they are unbale to switch worksheet without pressing the cancel button on the userform......what to be able to switch irrespective of if i press cancel on the userform or the other worksheet Tab...

just that

Bob Phillips
07-24-2008, 09:25 AM
Display the form modeless



Userform1.Show vbModeless

Pete
07-24-2008, 11:06 AM
hay!!!!!!!!! told u having a bad day????

which module????

Bob Phillips
07-24-2008, 11:15 AM
That was yesterday!

What do you mean, which module? I presume that you know where you show the form from.

Pete
07-24-2008, 11:20 AM
yes...please sir.......ok bad two day never happened to u????

Bob Phillips
07-24-2008, 11:34 AM
I am sorry, I really do not know what you are asking. I didn't offer a solution, I made a statement that you should know where to add that code mod.