+ Reply to Thread
Results 1 to 2 of 2

Copy and Pasting, offsetting and looping

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    2

    Copy and Pasting, offsetting and looping

    Hi all,

    I've recently started looking into automating some of my daily tasks through VBA, however with little to no previous experience apart from basic macros, I've hit a wall. I was wondering if anyone would be kind enough to help me on this problem which I am sure is very basic, however I'm having trouble with both the looping function and moving down a value through each loop.

    Instead of embarrassing myself with my poor code thus far, what I want to do is as follows

    Sheet 1 Select
    Copy selection from Column A4 (+1)
    Sheet 2 Select
    Paste Value into column B2 - 4 times
    Repeat for second value in Sheet 1 (A5) into next blank row in Sheet 2 (B6)
    Loop till blank value in first sheet

    Sheet 1 Select
    Copy first value from Column F4 (+1)
    Sheet 2 Select
    Paste Value into column I2 - 4 times
    Repeat for second value in Sheet 1 (F5) into next blank row in Sheet 2 (I6)
    Loop till blank value in first sheet

    Sheet 1 Select
    Copy first value from Column J4 (+1)
    Sheet 2 Select
    Paste Value into column N2 - 4 times
    Repeat for second value in Sheet 1 (J5) into next blank row in Sheet 2 (N6)
    Loop till blank value in first sheet




    so as you see basically the same function for different columns.

    Any help/guidance explaining the code would be greatly appreciated.

    Thanks!

    MB

  2. #2
    Registered User
    Join Date
    05-27-2014
    Posts
    2

    Re: Copy and Pasting, offsetting and looping

    This has been answered elsewhere!

    If anyone has the same problem :

    http://www.mrexcel.com/forum/excel-q...ml#post3819889

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy two columns of data to new sheet, offsetting column by one row
    By t_e_k in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2010, 11:00 AM
  2. problem copying pasting and looping
    By danielzambello in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2009, 08:31 PM
  3. looping copying and pasting to another workbook
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2009, 09:16 AM
  4. Looping Code for Pasting
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2008, 02:13 PM
  5. Looping through sheets and Pasting
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2007, 02:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1