Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2007

Tip: Looking for answers? Try searching our database.

Userform Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jnf40 - 07 Dec 2007 22:23 GMT
I have a Userform that pops up when a cell is selected. Is there a way to
have the Userform NOT pop up if the cell is selected with code that reformats
that particular cell?
JLGWhiz - 07 Dec 2007 22:58 GMT
You probably have code in your sheet module that causes the pop up.  It was
most likely put there for a reason by someone who designed the workbook.  You
can get rid of the pop up by deleting the code, but I would check with the
author first.

> I have a Userform that pops up when a cell is selected. Is there a way to
> have the Userform NOT pop up if the cell is selected with code that reformats
> that particular cell?
jnf40 - 08 Dec 2007 04:34 GMT
I designed the workbook, and yes I do have code in the sheet module that
causes the pop up. When cell B2 is selected the userform pops up. If the user
wants to clear the entriies they have made they click a button and it
reformats the row to it's original state, however when it does the procedure
of reformatting the row since cell B2 is selected during the reformat it
causes the userform to pop up. I was just wondering if there was a way to
keep the userform from popping up during the reformat process or if maybe I
could have the close button, the red X, in the upper right corner of the
userform be utilized through code.
Thanks

> You probably have code in your sheet module that causes the pop up.  It was
> most likely put there for a reason by someone who designed the workbook.  You
[quoted text clipped - 4 lines]
> > have the Userform NOT pop up if the cell is selected with code that reformats
> > that particular cell?
Tim Williams - 08 Dec 2007 05:11 GMT
Show the code that does the reformatting.  It should not require selecting
the cell.

Tim

>I designed the workbook, and yes I do have code in the sheet module that
> causes the pop up. When cell B2 is selected the userform pops up. If the
[quoted text clipped - 23 lines]
>> > reformats
>> > that particular cell?
jnf40 - 08 Dec 2007 05:48 GMT
The workbook is on my computer at work so I will post the code on Monday

> Show the code that does the reformatting.  It should not require selecting
> the cell.
[quoted text clipped - 28 lines]
> >> > reformats
> >> > that particular cell?
Tim Williams - 08 Dec 2007 00:19 GMT
If you're referring to code you wrote to perform the reformatting:
there's no need to select a cell to reformat it.
You could post the problem code for suggestions.

Tim

> I have a Userform that pops up when a cell is selected. Is there a way to
> have the Userform NOT pop up if the cell is selected with code that reformats
> that particular cell?
jnf40 - 10 Dec 2007 17:21 GMT
Ok I checked the code and I can reformat the cells without selecting them,
however is there a way to lock and unlock cells without selecting them? I
have tried what I know and I get 'Unable to set the Locked property of the
Range class' message.

> If you're referring to code you wrote to perform the reformatting:
> there's no need to select a cell to reformat it.
[quoted text clipped - 5 lines]
> > have the Userform NOT pop up if the cell is selected with code that reformats
> > that particular cell?
Tim Williams - 11 Dec 2007 01:55 GMT
> Ok I checked the code and I can reformat the cells without selecting them,
> however is there a way to lock and unlock cells without selecting them? I
> have tried what I know and I get 'Unable to set the Locked property of the
> Range class' message.

If the sheet is protected then you'll have to unprotect it before
unlocking the cells and then relock it.

Tim

> > If you're referring to code you wrote to perform the reformatting:
> > there's no need to select a cell to reformat it.
[quoted text clipped - 7 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.