loop and copy paste value

  1. M

    Loop through folders and subfolders & copy and paste data from specific sheet and cells to another sheet

    Hi, I have a really basic but important task that involves copying and pasting data from a daily worksheet into another worksheet each day. I was wondering if its possible using vba could a macro loop through all the folders and subfolders in a directory to then find and copy and paste the...
  2. M

    copy nonadjacent cells from one ws to next available row on another ws

    Hello and thanks. I have four cells on a Sheet1 ("T39", "T47", "T57", "N61:N62") that i would like to copy and paste to the next available row on Sheet2 in range ("N:Q"). ElseIf Cells(i, 3).Value = "" Then Sheets("Sheet 1").Range("T39", "T47", "T57", "N61:N62").Copy Sheets("Sheet...
  3. M

    Loop Copy portions of rows to another sheet

    Hello and much thanks in advance. I'm trying to write a loop that searches a range of rows (19-31) and if there is data in column C for that row then i want t paste columns C:U from that row into another sheet. It's been a long time since i've done this and VBA is not part of my regular work -...
  4. J

    If sheet name contains specific text select range and paste to another ws

    Need help building a code. I want to search all worksheets in a workbook that contain a specific string in its sheet name to copy cell data of a range and paste as values into a different ws. What I ultimately need to do is take data from A2 of all BL ws and paste into Column A of Summary ws...
  5. A

    VBA Copy from one worksheet to several

    Hello, and thanks in advance for any help. I have a giant list of social security numbers, about 30,000 rows. I use a function to get the first five digits of the social security number in Column D. I can't have more then 4 rows with the first five digits on the same sheet. Currently I run the...
  6. M

    VBA to loop filter through sheets and export data column to new worksheet

    Hello friends! I am trying to create a macro and hitting some walls. The goal is to: Loop through worksheets (# of sheets may vary) Filter Column D for "Equipment" and "Grid" Take resulting data from Column A on each worksheet (excluding header) and paste to a new worksheet or workbook End...
  7. L

    VBA coding Help - opening and copying several spreadsheets in a folder

    Hello there. I am a bit rusty with Excel and VBA following differing jobs not needing it so much, however I am now currently in a role where using advanced Excel and VBA would be extremely beneficial. I am currently stuck on something which I am guessing is reasonably simple, and google is not...
  8. G

    VBA copy values from multiple sheets based on multiple criteria into one worksheet

    Dears! I have managed to modify a VBA code with the following result. I can have multiple criteria for which my code search to different workbooks and if criteria meets then brings the required values to a new worksheet for each criteria value. What I want to achieve is to bring all the values...
  9. E

    Loop works on 1st cell in range but then stops...any suggestions?

    Hi All, I am trying to loop thru each account in my account master, find the range of cells 7 rows over in the next tab, copy those cells into a calculation sheet with a multiple the values, then I want to paste the end result back into my account master sheet. I am able to get the 1st account...
  10. M

    Multiple Column Loop from wbA and copy/paste all data to 1 column on wkB

    Hello all, I'm trying to create an array loop that goes through columns A1,D1,G1, J1 (Keeping the headers) from one workbook and paste all the data to one column (keeping cell formatting) on another workbook. The data in the copied columns (A,D,G,J) will vary every time the macro runs so I'm...
  11. P

    VBA loop with wildcard in Sheet name

    Hi All, I'm pretty new to VBA, this is my also my first time posting on here. Hoping somebody can help me tweak my code; The code loops through all the files in a folder to copy data from a sheet called ("P&L 2019 - UK GAAP") into one workbook. The issue that I'm having is that, a couple of...
  12. T

    Loop through a range of cells and skip blank cells.

    I have a spreadsheet that survey's equipment condition for equipment condition for multiple places, which is designated by ID (see Data Input example). For each row I need the equipment under the columns header "E1" and "E1C" copy/pasted into another worksheet ("Data Output") with the ID number...
  13. K

    VBA for copy/paste to different sheet with loop

    Hi guys, I'm new to VBA macros and cannot figure out a way to add a loop to my macro. I have data output from an experiment and want to do the following: Copy/paste data from sheet "Data" to sheet "Summary" (see below code). Loop with an offset of 130 rows. The paste function should select...
  14. R

    Loop-through Macro

    Hi, I'm wondering if anyone can help me with the below? I have 2 files (Client X & Client B). They are saved in the following folder: I:\Content & Creative\Design Admin\_Revenue Additionally, I have my summary file (which does not yet have a macro - but this is where I'm wanting the macro to...
  15. D

    Looping of a copy/paste/PDF generator macro

    Dear MrExcel community. Over the last year I have needed to collect and process more and more data which is coming my way from an online survey distributed to colleagues. The output of this survey is generating an array of data which is 40 column x 300 row (thereabouts). I am currently...
  16. D

    Excel Ninjas: Loop Copy/Paste Category Types at Row Level

    Hello, I am trying to create a macro that does the following: Loop down sheet and copy the Description (Column E) Ex: Copy "Cash in Bank" [Note: the empty cells at the category description level (Beg and End)] Paste the description in (Column L) next to each transaction Ex: Paste "Cash in...
  17. C

    VBA Loop to Create and Save Multiple Workbooks and also import client names and totals into document

    Hello, I am in need of a code to create and save 93 excel client reports and also insert client names and totals into the report (specific cells). I currently have an excel document that is the template report and another document that lists client names and total amounts. I'm hoping there is...
  18. F

    Excel VBA. Copy and paste from one cell to another based on value.

    Hi All. Fairly new to the world of VBA. i'll give a brief description first and then add more detail. I'm basically wanting to search down a column for specific words, each time I hit one of these words I want to jump into the previous column and cut the value from there and paste it as a...
  19. B

    VBA Run-Time Error in loop for pasting range values from one workbook to another

    WHAT I'M WORKING WITH: I have two workbooks, MacroTestingSheet2.xlsm is the source, and Target.xlsx is the destination. MacroTestingSheet2.xlsm has several worksheets in it that serve as the data source for the rest of the worksheets. Target.xlsx is a copy of all the remaining worksheets...
  20. B

    Better Way to Loop and Copy and Paste Items

    Hi, I currently have the following code running no problem (just a little slow for my liking). FYI crng is in ws2. For Each Cell In crng If Cell.Value = concatenate Then r = Cell.row Exit For...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top