#1   Report Post  
Posted to microsoft.public.excel.programming
Art Art is offline
external usenet poster
 
Posts: 587
Default Array Range

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,K 2:K208,M2:M208,O2:O208,Q2:Q208,S2:S208")


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

Thanks

Art
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Array Range

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" wrote in message
...
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
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
Moving data from an array to a range when range consists of areas? kfguardian Excel Programming 3 June 8th 08 04:04 PM
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[_2_] Excel Programming 3 November 13th 07 04:08 PM
copy one array formula to an array range guedj54 Excel Programming 2 October 29th 06 07:38 PM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Excel Programming 0 July 27th 05 03:59 PM
Range as array Chip Pearson Excel Programming 0 September 10th 03 10:40 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"