Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pasting data and then selecting the cells next to what was pasted.

I would like to:

Paste a variable number of contiguous cells that have been copied from
a different worksheet.
After pasting the cells I would like to select the cells in column to
the right of what was pasted. For example if I have just pasted five
cells, I would like the five cells to the right of those cells
selected. If I just pasted two cells, I would like to select the two
cells to the right.
(I will then do some formatting on those cells once selected but
although a newbie, I think I can handle that :)
)

Help appreciated,
~Vic

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default Pasting data and then selecting the cells next to what was pasted.

Sub tst()
range("A2:A5").Copy range("C3:C6")
range("C3:C6").Offset(0, 1).Select
End Sub


"Vic" skrev:

I would like to:

Paste a variable number of contiguous cells that have been copied from
a different worksheet.
After pasting the cells I would like to select the cells in column to
the right of what was pasted. For example if I have just pasted five
cells, I would like the five cells to the right of those cells
selected. If I just pasted two cells, I would like to select the two
cells to the right.
(I will then do some formatting on those cells once selected but
although a newbie, I think I can handle that :)
)

Help appreciated,
~Vic


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
pasting same data over many cells containing a formula Todd[_2_] Excel Worksheet Functions 4 April 18th 08 06:13 PM
Selecting last pasted object avi Excel Programming 1 April 21st 07 10:23 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
Selecting Cells With Sumproduct Formula, Then Pasting Its Value Over Top Carroll[_2_] Excel Programming 5 August 19th 05 07:00 PM
Pasting all but Column widths doesnt get pasted. Hari Prasadh Excel Discussion (Misc queries) 1 February 13th 05 06:51 PM


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