Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Userform Question

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Userform Question

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.

"jnf40" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Userform Question

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


On Dec 7, 2:23 pm, jnf40 wrote:
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?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Userform Question

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

"JLGWhiz" wrote:

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.

"jnf40" wrote:

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?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Userform Question

Show the code that does the reformatting. It should not require selecting
the cell.

Tim


"jnf40" wrote in message
...
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

"JLGWhiz" wrote:

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.

"jnf40" wrote:

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?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Userform Question

The workbook is on my computer at work so I will post the code on Monday

"Tim Williams" wrote:

Show the code that does the reformatting. It should not require selecting
the cell.

Tim


"jnf40" wrote in message
...
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

"JLGWhiz" wrote:

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.

"jnf40" wrote:

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?




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Userform Question

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.


"Tim Williams" wrote:

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


On Dec 7, 2:23 pm, jnf40 wrote:
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?



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Userform Question

On Dec 10, 9:21 am, jnf40 wrote:
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





"Tim Williams" wrote:
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


On Dec 7, 2:23 pm, jnf40 wrote:
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?- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform question ub Excel Discussion (Misc queries) 0 February 19th 09 06:56 PM
Userform Question Please Help Excel Programming 3 November 15th 07 08:26 PM
UserForm Question Mr BT[_3_] Excel Worksheet Functions 0 August 20th 07 04:56 AM
Userform question Oreg[_8_] Excel Programming 1 May 27th 04 02:46 AM
Userform question John Holland Excel Programming 2 October 28th 03 05:49 PM


All times are GMT +1. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"