PC Review


Reply
 
 
art
Guest
Posts: n/a
 
      4th Dec 2008
Hello all:

I want to use a range with multiple sheets, and multiple ranges. It should
look like this:

AR = sheets(Array("Sheets1", "Sheets2", "Sheets3", "Sheets4", "Sheets5", _
"Sheets6", "Sheets7"))
..Range("A2:A208,C2:C208,E2:E208,G2:G208,I2:I208,K2:K208,M2:M208,O2:O208,Q2:Q208,S2:S208")


But there is an error. Can someone please clear this out.

Thanks

Art
 
Reply With Quote
 
 
 
 
Mike Fogleman
Guest
Posts: n/a
 
      4th Dec 2008
VBA can only access one worksheet at a time. You would need to loop thru
each sheet to access the range on that sheet.

Mike F
"art" <(E-Mail Removed)> wrote in message
news:25EA74B4-1B48-4BBA-9133-(E-Mail Removed)...
> Hello all:
>
> I want to use a range with multiple sheets, and multiple ranges. It should
> look like this:
>
> AR = sheets(Array("Sheets1", "Sheets2", "Sheets3", "Sheets4", "Sheets5", _
> "Sheets6", "Sheets7"))
> .Range("A2:A208,C2:C208,E2:E208,G2:G208,I2:I208,K2:K208,M2:M208,O2:O208,Q2:Q208,S2:S208")
>
>
> But there is an error. Can someone please clear this out.
>
> Thanks
>
> Art



 
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
Fast copy method of sub array (=array range) possible? Thomas Lebrecht Microsoft VB .NET 0 19th Mar 2009 08:49 AM
Range into Array and Array Summary into Range u473 Microsoft Excel Programming 4 24th Feb 2009 12:32 AM
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) Keith R Microsoft Excel Programming 3 13th Nov 2007 04:08 PM
copy one array formula to an array range =?Utf-8?B?Z3VlZGo1NA==?= Microsoft Excel Programming 2 29th Oct 2006 07:38 PM
Comparing ARRAY elements with RANGE data and created a 2nd array JimP Microsoft Excel Worksheet Functions 2 10th Mar 2004 07:29 PM


Features
 

Advertising
 

Newsgroups
 


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