+ Reply to Thread
Results 1 to 4 of 4

Loop through copy and paste cells VBA

  1. #1
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Loop through copy and paste cells VBA

    Hi All,

    I am having some trouble with figuring out a problem and I am hoping someone here knows the answer!

    I have the following code, which will input 2 figures from one spreadsheet into another as per my attached example spreadsheet. I want to use the value in column A on the Staff spreadsheet to paste into cell B1 on the Calculator sheet and the corresponding values in A4 and B4 to be copied next to the name in columns B and C on the Staff worksheet. and loop through all the names on the staff sheet filling in all the figures in the columns

    I hope this makes sense, thank you in advance!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Loop through copy and paste cells VBA

    The example code didn't match the example workbook. Confusing as to which one you want.

    The code below is based on your example code.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Re: Loop through copy and paste cells VBA

    You are absolutely right, my mistake, sorry. I took a break inbetween posting this question. That works absolutely perfectly, I cant thank you enough!

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Loop through copy and paste cells VBA

    You're welcome. Thanks for the feedback.

+ 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. Loop to copy paste pivot table data changing the filter every time and copy it
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2019, 06:58 AM
  2. VBA Loop - Copy and Paste Individual Cells
    By stansmith216 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2019, 11:52 AM
  3. Replies: 3
    Last Post: 09-29-2014, 09:55 PM
  4. [SOLVED] Copy/Paste Loop Needs to Recognize Blank Cells
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 11:50 AM
  5. [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
  6. [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
  7. [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

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