+ Reply to Thread
Results 1 to 3 of 3

I need help with a Copy/Paste loop in VBA, please!

  1. #1
    Registered User
    Join Date
    01-11-2015
    Location
    Louisville, KY
    MS-Off Ver
    2013
    Posts
    2

    I need help with a Copy/Paste loop in VBA, please!

    I need help creating a loop. The rest of my sheet works like a dream but I am trying to add this final touch. Basically, the sheet sends an email and I need what was contained in the email logged on a separate sheet. So here's what I'm looking at:

    On sheet "NOTIFY", range E12:E21 is copied and then pasted onto sheet "LOG" in the first available blank cell in column A. (Already done.)

    Now, I need the following to happen after that:

    - Sheets("NOTIFY").Range("J7") to be copied and pasted into column B on sheet "LOG" (starting in first blank cell) in each row where column A contains text.
    - The current date ("mm/dd/yy") to be entered into column C on sheet "LOG" (starting in first blank cell) in each row where column A contains text.
    - Sheets("NOTIFY").Range("J12") to be copied and pasted into column D on sheet "LOG" (starting in first blank cell) in each row where column A has text.

    I know this will be fairly simple but I can't figure out where to start. I would greatly appreciate any help anyone could offer!
    Last edited by jimmy502; 07-21-2015 at 11:21 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: I need help with a Copy/Paste loop in VBA, please!

    What cell in column A are you referring to containing text? All pastes to Worksheet "LOG"?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-11-2015
    Location
    Louisville, KY
    MS-Off Ver
    2013
    Posts
    2
    Quote Originally Posted by alansidman View Post
    What cell in column A are you referring to containing text? All pastes to Worksheet "LOG"?
    This paste function should be completed for each row in the respective columns where column A contains text. And yes, all pastes to sheet LOG.

+ 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 Paste Loop
    By imaginekat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2015, 02:18 PM
  2. [SOLVED] Destination copy and paste (values only) for copy loop
    By mr_mango81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 08:59 PM
  3. [SOLVED] Copy Paste Loop ends before copy/paste is finished
    By brgr4u in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2013, 04:01 PM
  4. [SOLVED] VBA Copy and Paste LOOP
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-01-2013, 11:29 PM
  5. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  6. copy, paste and loop
    By zinoviia660 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 03:56 PM
  7. Copy and paste loop
    By MArmstrong12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2009, 07:07 PM

Tags for this Thread

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