PC Review


Reply
Thread Tools Rate Thread

Checkbox works in one window but not another

 
 
pdberger
Guest
Posts: n/a
 
      23rd May 2008
Good afternoon --
I've designed a workbook to have checkboxes on two worksheets. Then, I
wrote a macro to open the workbook in two tiled windows (so that reference
info stays visible in one window when the other scrolls as the user adds more
info).

My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
Sheet2 don't. They only work when I switch to the other window and go that
same sheet Whoda thunk?

Very simple code. If the box is checked, place a value in a particular
cell. But the box is unresponsive on one (active) window and, when I make
the other window active and go to that sheet, it works just fine. Any idea
what might be happening here?

TIA
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      24th May 2008
Well, I figured out part of the problem. You cannot have two checkboxes with
the same name active at the same time. Excel would not even show the
property windows for the second checkbox in my setup, which had a checkbox1
on sheet one and a checkbox1 on sheet two.

So, I changed the name of the one on sheet two and sure enough, then it
would fire. However, It seemed to fire three consecutive times on one of the
sheets while the other one operated as expected. I am not sure what effect
that would have on any code being run since the final effect is the same on
the third iteration as it is on the first, but I would like to understand why
it is doing that.

The reason I know it fires three times on sheet two is that I have a message
box in the click event to let me know that the code did execute and I have to
click the OK button three times before it passes control back to the user.
Odd.

At least now you know why the other checkbos didn't fire.



"pdberger" wrote:

> Good afternoon --
> I've designed a workbook to have checkboxes on two worksheets. Then, I
> wrote a macro to open the workbook in two tiled windows (so that reference
> info stays visible in one window when the other scrolls as the user adds more
> info).
>
> My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
> Sheet2 don't. They only work when I switch to the other window and go that
> same sheet Whoda thunk?
>
> Very simple code. If the box is checked, place a value in a particular
> cell. But the box is unresponsive on one (active) window and, when I make
> the other window active and go to that sheet, it works just fine. Any idea
> what might be happening here?
>
> TIA

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      24th May 2008
You can forget what I just said about renaming the checkbox, it still don't
work in the split window.

"pdberger" wrote:

> Good afternoon --
> I've designed a workbook to have checkboxes on two worksheets. Then, I
> wrote a macro to open the workbook in two tiled windows (so that reference
> info stays visible in one window when the other scrolls as the user adds more
> info).
>
> My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
> Sheet2 don't. They only work when I switch to the other window and go that
> same sheet Whoda thunk?
>
> Very simple code. If the box is checked, place a value in a particular
> cell. But the box is unresponsive on one (active) window and, when I make
> the other window active and go to that sheet, it works just fine. Any idea
> what might be happening here?
>
> TIA

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th May 2008
It's a "feature/bug" of split windows.

Maybe you can use freeze panes and put the control at the top???

pdberger wrote:
>
> Good afternoon --
> I've designed a workbook to have checkboxes on two worksheets. Then, I
> wrote a macro to open the workbook in two tiled windows (so that reference
> info stays visible in one window when the other scrolls as the user adds more
> info).
>
> My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
> Sheet2 don't. They only work when I switch to the other window and go that
> same sheet Whoda thunk?
>
> Very simple code. If the box is checked, place a value in a particular
> cell. But the box is unresponsive on one (active) window and, when I make
> the other window active and go to that sheet, it works just fine. Any idea
> what might be happening here?
>
> TIA


--

Dave Peterson
 
Reply With Quote
 
pdberger
Guest
Posts: n/a
 
      24th May 2008
Dave --

I wish I could freeze the panes. It's a time card, and the various users
want to see hours per day, per client, etc., etc., etc. so if I showed all
that and froze the panel, there wouldn't be any lines showing as they
scrolled down.

Bummer about the "feature/bug". Thanks for the info, so I don't beat myself
up trying to solve it.

"Dave Peterson" wrote:

> It's a "feature/bug" of split windows.
>
> Maybe you can use freeze panes and put the control at the top???
>
> pdberger wrote:
> >
> > Good afternoon --
> > I've designed a workbook to have checkboxes on two worksheets. Then, I
> > wrote a macro to open the workbook in two tiled windows (so that reference
> > info stays visible in one window when the other scrolls as the user adds more
> > info).
> >
> > My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
> > Sheet2 don't. They only work when I switch to the other window and go that
> > same sheet Whoda thunk?
> >
> > Very simple code. If the box is checked, place a value in a particular
> > cell. But the box is unresponsive on one (active) window and, when I make
> > the other window active and go to that sheet, it works just fine. Any idea
> > what might be happening here?
> >
> > TIA

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th May 2008
Maybe you could replace the checkboxes from the Control toolbox toolbar with
checkboxes from the Forms toolbar.

You'll have to fiddle with the code, but the controls from the Forms toolbar may
work.

pdberger wrote:
>
> Dave --
>
> I wish I could freeze the panes. It's a time card, and the various users
> want to see hours per day, per client, etc., etc., etc. so if I showed all
> that and froze the panel, there wouldn't be any lines showing as they
> scrolled down.
>
> Bummer about the "feature/bug". Thanks for the info, so I don't beat myself
> up trying to solve it.
>
> "Dave Peterson" wrote:
>
> > It's a "feature/bug" of split windows.
> >
> > Maybe you can use freeze panes and put the control at the top???
> >
> > pdberger wrote:
> > >
> > > Good afternoon --
> > > I've designed a workbook to have checkboxes on two worksheets. Then, I
> > > wrote a macro to open the workbook in two tiled windows (so that reference
> > > info stays visible in one window when the other scrolls as the user adds more
> > > info).
> > >
> > > My problem -- the checkboxes on Sheet 1 work fine, but the checkboxes on
> > > Sheet2 don't. They only work when I switch to the other window and go that
> > > same sheet Whoda thunk?
> > >
> > > Very simple code. If the box is checked, place a value in a particular
> > > cell. But the box is unresponsive on one (active) window and, when I make
> > > the other window active and go to that sheet, it works just fine. Any idea
> > > what might be happening here?
> > >
> > > TIA

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subreports checkbox works but needs help with tweaking ! Ben Microsoft Access Reports 1 15th Aug 2008 04:26 PM
Read-Only Checkbox in Folder Property window Peter K Windows Vista General Discussion 1 16th Jun 2008 07:36 PM
.net / checkbox / popup window Rob Meade Microsoft ASP .NET 1 2nd Dec 2005 10:53 AM
Browse in same window checkbox disabled in Edit File Type Dialog =?Utf-8?B?Unlhbg==?= Windows XP General 0 15th Jul 2005 03:52 PM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.