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


I'm working on a paste special macro so as to help aliviate some of the
difficulties accociated with using my parts list.

If will work in the following manner

Paste the values to a static location (say forinstand, A200)
Count the size of the selection
Cut & Paste A200 to location
cut & paste A201 to location + 1
cut & paste A202 to location + 2
etc.

Here is the trick... when I get to row 40 or so, I have to skip about 4
rows then resume. How do I do that?


--
wilro85
------------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...o&userid=26935
View this thread: http://www.excelforum.com/showthread...hreadid=494956

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pasting Macro


It's difficult to point out a good solution without knowing the basic
code structure, but here's an idea:


Code:
--------------------
:startloop
If <offset = 40 then <offset = <offset + 4
cut & paste A200.offset(<offset, 0) to location
<offset = <offset + 1
:endloop
--------------------


Hope this helps!


--
Excelibur
------------------------------------------------------------------------
Excelibur's Profile: http://www.excelforum.com/member.php...o&userid=29788
View this thread: http://www.excelforum.com/showthread...hreadid=494956

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pasting Macro


What I'm expirmenting with looks something like this. I just need a
example of how to put a controled "skip" into the break.

Sub test()
co = ActiveCell.Column
ro = ActiveCell.Row
Range("A100").PasteSpecial Paste:=xlValues
num = Selection.Count
For i = 0 To num
Range((Cells(100 + i, 1))).Cut Range(Cells(ro + i, co)) 'I'm having a
error here for some reason, too.
Next i
End Su

--
wilro8
-----------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...fo&userid=2693
View this thread: http://www.excelforum.com/showthread.php?threadid=49495

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
Copying and pasting with a macro Wombat Excel Discussion (Misc queries) 1 March 4th 10 10:10 AM
Copying and Pasting Macro Jurassien Excel Discussion (Misc queries) 6 February 7th 07 11:57 PM
macro for pasting CMD Excel Discussion (Misc queries) 2 May 26th 06 10:03 PM
Macro Copy and Pasting Christine[_9_] Excel Programming 3 June 23rd 05 11:02 PM
Another coping and pasting macro Jennifer Excel Programming 1 June 23rd 05 11:03 AM


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