Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default paste in next availible column?


i have multiple selections in three column blocks that need to be paste
in the next free column of another sheet or the next free cel
horizantally. needs to be in VBA code

ty al

--
cwatso
-----------------------------------------------------------------------
cwatson's Profile: http://www.excelforum.com/member.php...fo&userid=2460
View this thread: http://www.excelforum.com/showthread.php?threadid=38248

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default paste in next availible column?

Sub TryNow()
Dim myArea As Range
For Each myArea In Selection.Areas
myArea.Copy Worksheets("SheetName").Range("IV1").End(xlToLeft) (1, 2)
Next myArea
End Sub

HTH,
Bernie
MS Excel MVP


"cwatson" wrote in
message ...

i have multiple selections in three column blocks that need to be pasted
in the next free column of another sheet or the next free cell
horizantally. needs to be in VBA code

ty all


--
cwatson
------------------------------------------------------------------------
cwatson's Profile:

http://www.excelforum.com/member.php...o&userid=24608
View this thread: http://www.excelforum.com/showthread...hreadid=382480



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default paste in next availible column?

set lastcol = Worksheets("Other").Cells(3,"IV").End(xltoLeft)
selection.Copy Destination:=LastCol.Offset(0,1)

--
Regards,
Tom Ogilvy

"cwatson" wrote in
message ...

i have multiple selections in three column blocks that need to be pasted
in the next free column of another sheet or the next free cell
horizantally. needs to be in VBA code

ty all


--
cwatson
------------------------------------------------------------------------
cwatson's Profile:

http://www.excelforum.com/member.php...o&userid=24608
View this thread: http://www.excelforum.com/showthread...hreadid=382480



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
A way to increase the number of columns availible in Excel? jaba44 Excel Discussion (Misc queries) 1 January 28th 08 04:48 PM
Is there AccessLinks add-in program availible in 2003? anna New Users to Excel 0 June 10th 06 01:37 AM
In excel pointers should be availible Mike@Delphi Excel Worksheet Functions 2 March 31st 05 03:13 PM
Is it possible to increase Excel's availible memory? Anya[_2_] Excel Programming 0 July 7th 04 10:49 PM
Is it possible to increase Excel's availible memory? Ed P Excel Programming 1 July 7th 04 10:41 PM


All times are GMT +1. The time now is 01:51 AM.

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"