#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Ranges

I'm new to using ranges so any help you can provide is appreciated. Here is
the string of cells I'm looking to copy to another workbook, but only if the
cells in col B are populated. This is not working,

Set rng = .Range("B20:B57", "82", "B85", "B86").SpecialCells(xlConstants,
xlNumbers)
Set rng1 = Intersect(rng.EntireRow, .Columns(1))
Set rng2 = Intersect(rng.EntireRow, .Columns(2))

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Ranges

??82??
--
Gary''s Student


"JOUIOUI" wrote:

I'm new to using ranges so any help you can provide is appreciated. Here is
the string of cells I'm looking to copy to another workbook, but only if the
cells in col B are populated. This is not working,

Set rng = .Range("B20:B57", "82", "B85", "B86").SpecialCells(xlConstants,
xlNumbers)
Set rng1 = Intersect(rng.EntireRow, .Columns(1))
Set rng2 = Intersect(rng.EntireRow, .Columns(2))

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Ranges

oops B82

"Gary''s Student" wrote:

??82??
--
Gary''s Student


"JOUIOUI" wrote:

I'm new to using ranges so any help you can provide is appreciated. Here is
the string of cells I'm looking to copy to another workbook, but only if the
cells in col B are populated. This is not working,

Set rng = .Range("B20:B57", "82", "B85", "B86").SpecialCells(xlConstants,
xlNumbers)
Set rng1 = Intersect(rng.EntireRow, .Columns(1))
Set rng2 = Intersect(rng.EntireRow, .Columns(2))

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
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
union of named ranges based only on the names of those ranges sloth Excel Programming 3 October 2nd 06 03:18 AM
Copy data in named ranges to a newer version of the same template to identical ranges handstand Excel Programming 0 August 21st 06 03:51 PM
Counting variable ranges and auto-summing variable ranges Father Guido[_5_] Excel Programming 2 March 29th 06 04:07 AM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM


All times are GMT +1. The time now is 06:49 PM.

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

About Us

"It's about Microsoft Excel"