Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
fjs fjs is offline
external usenet poster
 
Posts: 3
Default copy range with different ranges.

How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?

The start of the range will always be different, and the cell to be
copied will always be different.

EX: this time copy a1 to a2:a28

next time copy a5 to a6:a28

and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.

Thanks.
Frank.

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default copy range with different ranges.

One approach:

With Range("A1")
.Copy .Offset(1,0).Resize(27, 1)
End With


"fjs" wrote:

How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?

The start of the range will always be different, and the cell to be
copied will always be different.

EX: this time copy a1 to a2:a28

next time copy a5 to a6:a28

and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.

Thanks.
Frank.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default copy range with different ranges.


Dim rng As Range
Set rng = ThisWorkbook.Sheets("Sheet1").Range("A5:A33") 'or whatever
rng.Value = rng.Cells(1).Value


Tim


"fjs" wrote in message
ups.com...
How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?

The start of the range will always be different, and the cell to be
copied will always be different.

EX: this time copy a1 to a2:a28

next time copy a5 to a6:a28

and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.

Thanks.
Frank.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default copy range with different ranges.

With great difficulty based upon those parameters.

You don't know the cell to copy nor the range to copy to.

Is there anything that could determine which cell to copy?

I see your pattern for the start point of the range to copy to but what would
determine the size of the range from there?


Gord Dibben MS Excel MVP

On Sat, 07 Jul 2007 20:42:56 -0700, fjs wrote:

How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?

The start of the range will always be different, and the cell to be
copied will always be different.

EX: this time copy a1 to a2:a28

next time copy a5 to a6:a28

and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.

Thanks.
Frank.


  #5   Report Post  
Posted to microsoft.public.excel.programming
fjs fjs is offline
external usenet poster
 
Posts: 3
Default copy range with different ranges.

That's the problem. The size of the range is based on orders. They
are always diferent.




On Jul 7, 11:59 pm, Gord Dibben <gorddibbATshawDOTca wrote:
With great difficulty based upon those parameters.

You don't know the cell to copy nor the range to copy to.

Is there anything that could determine which cell to copy?

I see your pattern for the start point of the range to copy to but what would
determine the size of the range from there?

Gord Dibben MS Excel MVP



On Sat, 07 Jul 2007 20:42:56 -0700, fjs wrote:
How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?


The start of the range will always be different, and the cell to be
copied will always be different.


EX: this time copy a1 to a2:a28


next time copy a5 to a6:a28


and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.


Thanks.
Frank.- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default copy range with different ranges.

Are these orders based upon a filtered list or something similar?

How do you currently select what data to copy and paste manually?

Gord

On Sat, 07 Jul 2007 21:19:17 -0700, fjs wrote:

That's the problem. The size of the range is based on orders. They
are always diferent.




On Jul 7, 11:59 pm, Gord Dibben <gorddibbATshawDOTca wrote:
With great difficulty based upon those parameters.

You don't know the cell to copy nor the range to copy to.

Is there anything that could determine which cell to copy?

I see your pattern for the start point of the range to copy to but what would
determine the size of the range from there?

Gord Dibben MS Excel MVP



On Sat, 07 Jul 2007 20:42:56 -0700, fjs wrote:
How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?


The start of the range will always be different, and the cell to be
copied will always be different.


EX: this time copy a1 to a2:a28


next time copy a5 to a6:a28


and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.


Thanks.
Frank.- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.programming
fjs fjs is offline
external usenet poster
 
Posts: 3
Default copy range with different ranges.

Everything is copied and pasted manually right now. The orders are
based on a production run.
When(if) production gets behind, that is why the cell to get copied is
different, and the size of the to copied to range is also different.




On Jul 8, 10:07 am, Gord Dibben <gorddibbATshawDOTca wrote:
Are these orders based upon a filtered list or something similar?

How do you currently select what data to copy and paste manually?

Gord



On Sat, 07 Jul 2007 21:19:17 -0700, fjs wrote:
That's the problem. The size of the range is based on orders. They
are always diferent.


On Jul 7, 11:59 pm, Gord Dibben <gorddibbATshawDOTca wrote:
With great difficulty based upon those parameters.


You don't know the cell to copy nor the range to copy to.


Is there anything that could determine which cell to copy?


I see your pattern for the start point of the range to copy to but what would
determine the size of the range from there?


Gord Dibben MS Excel MVP


On Sat, 07 Jul 2007 20:42:56 -0700, fjs wrote:
How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?


The start of the range will always be different, and the cell to be
copied will always be different.


EX: this time copy a1 to a2:a28


next time copy a5 to a6:a28


and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.


Thanks.
Frank.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default copy range with different ranges.

I am unable to give you any pointers based on the information you have given in
this post or earlier postings.

Only you know which cell to copy and to where.


Gord

On Sun, 08 Jul 2007 12:50:12 -0700, fjs wrote:

Everything is copied and pasted manually right now. The orders are
based on a production run.
When(if) production gets behind, that is why the cell to get copied is
different, and the size of the to copied to range is also different.




On Jul 8, 10:07 am, Gord Dibben <gorddibbATshawDOTca wrote:
Are these orders based upon a filtered list or something similar?

How do you currently select what data to copy and paste manually?

Gord



On Sat, 07 Jul 2007 21:19:17 -0700, fjs wrote:
That's the problem. The size of the range is based on orders. They
are always diferent.


On Jul 7, 11:59 pm, Gord Dibben <gorddibbATshawDOTca wrote:
With great difficulty based upon those parameters.


You don't know the cell to copy nor the range to copy to.


Is there anything that could determine which cell to copy?


I see your pattern for the start point of the range to copy to but what would
determine the size of the range from there?


Gord Dibben MS Excel MVP


On Sat, 07 Jul 2007 20:42:56 -0700, fjs wrote:
How do I make a marco to copy one cell in to many cells without
knowing the starting of the range?


The start of the range will always be different, and the cell to be
copied will always be different.


EX: this time copy a1 to a2:a28


next time copy a5 to a6:a28


and the next time it could be a54 to a55:a150


The start of the range will always be the next cell that is being
copied.


Thanks.
Frank.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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 can I copy big ranges of cells without drag or copy/paste? Ricardo Julio Excel Discussion (Misc queries) 3 March 23rd 10 02:38 PM
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
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
compare ranges in different workbooks and copy "not matching values" at bottom of range 1 Kaza Sriram Excel Programming 1 August 6th 04 07:47 PM
Compare ranges n copy at bottom of first range Kaza Sriram Excel Programming 0 August 5th 04 02:16 PM


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