PC Review


Reply
Thread Tools Rate Thread

Deselect a single sheet

 
 
Scott
Guest
Posts: n/a
 
      1st Dec 2009
Hello,

I was wondering if it was possible to deselect a single sheet in a
workbook.

My code will receive a workbook with all sheets selected. There are
dozens to hundreds of sheets. I want to just unselect a single
sheet. Is there a quick way to do this.

For example, to select all sheets you can say: workbook.sheets.select

This doesnt work, but is there something like workbook.sheets
(3).deselect

Any help would be great.

Thanks
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      1st Dec 2009
Say you receive a wb with sheets 1 thru 3 selected but you do not wan sheet
2 to be selected.

Sheets(Array("Sheet1", "Sheet3")).Select

Now sheet2 has been deselected. You can do the same thing manually by
holding Ctrl and clicking the sheet2 tab.



"Scott" <(E-Mail Removed)> wrote in message
news:eec0ca37-2d49-49e9-a150-(E-Mail Removed)...
> Hello,
>
> I was wondering if it was possible to deselect a single sheet in a
> workbook.
>
> My code will receive a workbook with all sheets selected. There are
> dozens to hundreds of sheets. I want to just unselect a single
> sheet. Is there a quick way to do this.
>
> For example, to select all sheets you can say: workbook.sheets.select
>
> This doesnt work, but is there something like workbook.sheets
> (3).deselect
>
> Any help would be great.
>
> Thanks



 
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
consolidate data (i.e. a single cell) from multiple spreadsheets intoa single sheet James Sheriff Microsoft Excel Programming 4 4th Aug 2010 05:35 PM
consolidate data (i.e. a single cell) from multiple spreadsheets intoa single sheet James Sheriff Microsoft Excel Discussion 1 4th Aug 2010 03:56 PM
lookup single value in one sheet, return multiple results from theother sheet Chuck Microsoft Excel Worksheet Functions 1 4th Apr 2008 06:17 AM
ActiveChart.Deselect won't Deselect Mark Stephens Microsoft Excel Charting 2 16th Jun 2005 02:54 AM
is it possible to use F9 to manually calculate in a single sheet or single workbook? Hersbt Microsoft Excel Misc 2 29th Dec 2004 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 PM.