Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Range Selection


Hey,

I know that what I,ve given below is wrong and that exactly is th
reason why I'm asking your help.
So, how do I correct this statement below?

Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy

I need to select a range of cells, But with reference

anyone out there??? :

--
Baap
-----------------------------------------------------------------------
Baapi's Profile: http://www.excelforum.com/member.php...fo&userid=2733
View this thread: http://www.excelforum.com/showthread.php?threadid=46832

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Range Selection

Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy

Get rid of the quotes and use the row and column indexes in instead of
the R1, C1 references:

Range(Cells(1, 3):Cells(1, 17)).Copy

Nick Hebb
BreezeTree Software
http://www.breezetree.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Range Selection

Well, If I had to use the row and column indexes, I don't have to use the
cells option at all and I can simply put it as A1:A17

OK, what I.m trying to do is to search for a name in a list (Row 1to 100 and
column 3) and copy the information against that name.
I've put in a loop to search the name in the 100 rows.


Baapi


"Nick Hebb" wrote:

Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy


Get rid of the quotes and use the row and column indexes in instead of
the R1, C1 references:

Range(Cells(1, 3):Cells(1, 17)).Copy

Nick Hebb
BreezeTree Software
http://www.breezetree.com


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Range Selection

i am trying to picture your sheet. you have names in column c in rows 1 to
100. where's the data you want to copy located?

--


Gary


"Baapi" wrote in message
...
Well, If I had to use the row and column indexes, I don't have to use the
cells option at all and I can simply put it as A1:A17

OK, what I.m trying to do is to search for a name in a list (Row 1to 100
and
column 3) and copy the information against that name.
I've put in a loop to search the name in the 100 rows.


Baapi


"Nick Hebb" wrote:

Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy


Get rid of the quotes and use the row and column indexes in instead of
the R1, C1 references:

Range(Cells(1, 3):Cells(1, 17)).Copy

Nick Hebb
BreezeTree Software
http://www.breezetree.com




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Range Selection

You want another one?

cells(r1,c1+2).resize(1,15).copy

Start in whatever cell cells(r1,c1+2) is and resize it to 1 row high by 15
columns wide.



Baapi wrote:

Hey,

I know that what I,ve given below is wrong and that exactly is the
reason why I'm asking your help.
So, how do I correct this statement below?

Range("Cells(R1, C1 + 2):Cells(R1, C1 + 16)").Copy

I need to select a range of cells, But with reference

anyone out there??? :)

--
Baapi
------------------------------------------------------------------------
Baapi's Profile: http://www.excelforum.com/member.php...o&userid=27333
View this thread: http://www.excelforum.com/showthread...hreadid=468323


--

Dave Peterson


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
Narrow Range based on Selection in Another Range David Excel Discussion (Misc queries) 3 July 1st 07 05:12 PM
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
Range Selection MrHappy Excel Programming 1 January 18th 05 06:03 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM
Creating range name for a range selection Mervyn Thomas Excel Programming 1 January 26th 04 05:18 PM


All times are GMT +1. The time now is 02:38 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"