Hi All
File attached to show problem
How do I select all the sheets that are Marked Y in column B when the button is clicked?
Thanks
Roasty
Hi All
File attached to show problem
How do I select all the sheets that are Marked Y in column B when the button is clicked?
Thanks
Roasty
Last edited by roasty_1; 10-24-2008 at 09:13 AM.
Hi roasty_1,
I have attached a workbook and i have coded the button to check each one and then add that worksheet to a array of worksheets.
to access the worksheet you can use this code
change the 1 to the index you need and the Select the method you want to call.![]()
Please Login or Register to view this content.
anything else let me know![]()
There are only 10 types of people in the world:
Those who understand binary, and those who don't!
thanks
sorry but the button does not do anything.....
no sheets are selected when the code has run?
thanks
oh right sorry i have loaded them into a array so you can access them sheets, sorry i didnt realise that you wanted them selected. i will have a look to see if i can work that one out
ok
cheers
sorry roasty_1, i cant seem to get it to work no matter what i try.
does anybody else know how to do this as i am now interested.
Try attached file.
Regards,
Antonio
There are a couple of ways of selecting the sheets.
Either using the Replace argument or by building an array of sheetnames.
![]()
Please Login or Register to view this content.
Thanks Antonio
Works well, only it crashes Excel if any of the cells are left blank, not an issue though, can work round that.
thanks for your help.
Hi Andy
thanks for your help, couldnt get your code to work unfortunetly, thanks anyway.
In what way did it not work?
raised an error
No selection of sheets
weird, it works now, before I was getting an Object error
Now works fine
Thanks!!
I'm confused where is the macro, VBA for the select sheets, its that the one for the sheet downloaded above?
I cannot get this to work, errored out on last line of code, Sheets(mySheets).Select?
miztify,
Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks