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


What I'm trying to do is copy a range of cells and paste it through out
my worksheet. For instance, suppose I select and copy A1:C4, how would
then select the A5:C8 using VBA in order to paste the copied cells? Can
I use some variation of the Offset command?


--
PGalla06
------------------------------------------------------------------------
PGalla06's Profile: http://www.excelforum.com/member.php...o&userid=24260
View this thread: http://www.excelforum.com/showthread...hreadid=378690

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Offsetting Cells

You can try this... Copies a range and pastes it four columns to the left...

Public Sub CopyRange()
Dim rng As Range

Set rng = ActiveSheet.Range("A1", "C4")

rng.Copy rng.Offset(0, 4)
End Sub
--
HTH...

Jim Thomlinson


"PGalla06" wrote:


What I'm trying to do is copy a range of cells and paste it through out
my worksheet. For instance, suppose I select and copy A1:C4, how would
then select the A5:C8 using VBA in order to paste the copied cells? Can
I use some variation of the Offset command?


--
PGalla06
------------------------------------------------------------------------
PGalla06's Profile: http://www.excelforum.com/member.php...o&userid=24260
View this thread: http://www.excelforum.com/showthread...hreadid=378690


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
Offsetting Dan Wood Excel Discussion (Misc queries) 3 March 3rd 10 03:23 PM
Offsetting and HLOOKUP KellyB Excel Worksheet Functions 5 January 29th 08 07:09 PM
offsetting values of multiple cells! via135 Excel Worksheet Functions 9 July 18th 06 06:15 AM
Offsetting a varible?? Ashley Milford via OfficeKB.com Excel Programming 5 June 2nd 05 03:38 PM
help needed offsetting until text Simon Lloyd[_405_] Excel Programming 2 May 5th 04 11:40 AM


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