Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Copy every 3rd cell, define destination range for paste

Hi all,

I'm trying to copy every third cell of column c starting at C16, and paste
into column C of the next blank row of a separate workbook. This code below
kind of works but it errors where I've defined the 'pasterange' in the other
workbook (I think this is incorrect but you know what I'm trying to
achieve!). Can anyone help?? :-) Also I don't know how to set the code to
copy from C16 to nrows - if it copies from the bottom i need to go up a row,
copy that, then copy every 3rd. Column C looks like this...

35467 <---- (Row 16)
text 1
BLANK
84950
text 2
BLANK
24967
text 3
BLANK

I need all the numbers... Code below

Dim pasterange As Range
Dim i As Long
Set pasterange =
Windows("LFmacro.XLS").Sheets("Report").Range("A65 536").End(xlUp).Offset(2)
LastRow = Cells(Rows.Count, 3).End(xlUp).Row
For i = 1 To LastRow Step 2
pasterange = Cells(i, 1)
Next i
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
Range.Copy [Destination] should not use clipboard Ming[_2_] Excel Discussion (Misc queries) 0 October 1st 09 11:13 PM
Range.Copy only works with a named destination parameter? colin_e Excel Programming 5 March 17th 06 01:49 AM
copy paste values only using destination:= Spike Excel Programming 3 January 12th 06 11:27 PM
Range.Copy (Destination) Garry Douglas Excel Programming 3 January 3rd 05 03:02 PM
user form to copy and paste from source to destination rbekka33 Excel Programming 2 September 13th 04 05:01 AM


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