Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Problem copying checkbox values

Hello.

This might be a bit difficult to explain, but I'll have a
go.

I have an OLD workbook which contains 20 checkboxes and
assorted pieces of data. Checking one or more of the
checkboxes activates a macro(s) within that book.

I have a NEW version of that same workbook which contains
the same 20 checkboxes with spaces for the OLD data and
additional blank spaces for new data.

I have written a transfer utility which copies all of the
data from OLD to NEW. I want this transfer utility to
mimic the checked checkboxes from OLD to NEW as well.
(For example, if OLD boxes 1, 5 and 9 are checked in OLD,
this utility will check the corresponding 1, 5 and 9 in
NEW.)

I got the coding to work OK, but the problem is that the
checkboxes in OLD and NEW activate the code in
ActiveWorkbook.xls. When I run my utility, the utility
(not NEW) is the active workbook, and I get an error.
(NOTE: I have to use ActiveWorkbook.xls because the
workbook could be named anything.)

What is happening is that when the utility encounters the
first OLD checked box and "checks" the corresponding NEW
box, it tries to run the macro in NEW (which I would like
for it to do), but it can't, because NEW is not the
active workbook.

I realize I could put in an escape (such as a junk GoTo),
but I DO want the macro to run in NEW when the box is
checked.

Any suggestions? Let me know if it isn't clear.

Thanks,
MARTY
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
Checkbox values? T135 Excel Worksheet Functions 2 January 12th 07 10:46 AM
problem with checkbox control Giselle Excel Worksheet Functions 1 March 31st 06 12:57 PM
Importing Checkbox Values Marty Excel Programming 4 June 28th 04 07:05 PM
CheckBox values Allan[_4_] Excel Programming 1 December 22nd 03 05:02 PM
Checkbox values from a web client Larry[_10_] Excel Programming 1 September 11th 03 06:45 PM


All times are GMT +1. The time now is 11:21 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"