Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel nightmare

Status
Not open for further replies.

tait

Technical User
Jan 31, 2003
4
GB
I am trying to pass the contents of cell A1, A2 etc to a new worksheet only if the corresponding check box in cells B1, B2 etc are selected. I also need the new worksheet to show the cells neatly formatted with no blank cells.

Thanks
 
Not a lot of detail there - what part exactly are you struggling on?

You can access the check box values via the OLEObjects collection of the sheet.

If you've named your check boxes eg chk_1, chk_2, etc, then you could have a loop eg
Code:
for i = 1 to 25
    if sheet1.oleobjects("chk_"&i) = true then
        ' da de da, pass it over
         end if
     next

Gotta agree that manipulating OLE Objects is a right pain in the cahoonies.

Hope this helps.

Bryan.
 
What have you got so far and I'll have a look - I've done something similar myself
 
Thanks Guys, I've actually managed to acheive what I was looking for using Worksheet functions

tait
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top