loops vba

  1. 2

    VBA Copy Data from Sheet to Email depending on Assignee

    Hello! I currently have a Macro that creates an email for each row of data, then copies and pastes that row into the email. Each row is assigned to an individual (receiver of the email),, but sometimes, the same individual is assigned to multiple rows. I wanted to see if I could change up the...
  2. J

    VBA loop using index and match with columns and rows.

    Hi All I am writing a code in VBA to index and match against a date which runs in each column, and returns down each row. I can do this for each row if i write it for each as attached, is there a easier way so that it loops rather than me having to write multiple macros? ''' Sub test2() Dim...
  3. D

    Copy Excel sheets from various Excel files

    I'm new to VBA and I'm trying to create a script that allows be to put a selected group of Excel files in a folder and do the following: 1) A pop up window to ask me which folder the files are in 2) Select all the files in the folder 3) Open each Excel file one by one 4) Upon opening the Excel...
  4. S

    VBA | Comparing Two Cell Values on Separate Sheets, Then Iterating by Row

    I am trying to figure out how I can see if one cell is equal to another one on a different sheet, perform an action once that IF statement has been determined, and then iterate down one row on both sheets to perform the same analysis on the cells in the row directly below. Essentially what I...
  5. J

    How can I unite these two scripts to send emails with single or multiple attachments to a list of contacts?

    Hi all, The goal of the script is to display an email containing one or more attachments and a screenshot of the details of such attachments for each one of the clients within a column. The attachments tend to be Invoices and a single customer may have one or multiple. As of now, I have the...
  6. H

    Loop through folders and open folder whose name matches with yesterdays month.

    Hello all, I am new to VBA coding. I had taken a programming course almost 6 years ago and never touched it since but I would like to start learning slowly to automate a lot of my excel stuff. I have 18 folders at a particular location in my drive. Out of the 18 files, 12 are files with names...
  7. F

    VBA function that includes a loop

    <style></style>I need to know how to write a VBA function that includes a loop that prints "Hello" 50 times. Then create a button on tab 4 that triggers this function. Then save the function.
  8. J

    Loop to test range of cells

    I am in the need of some assistance! I need to evaluate all the cells that contain dates in column R, to the end of the range….however, I can expect that there will be dates missing, where the end users hasn’t input an ‘Agreed CR Due Date’. I have accounted for the empty cells in the if...
  9. O

    Copy Excel Files from Source Folder to New Folder

    Hi Guys, First time poster. Need your help. I've got about 500 excel that are in "C:\Test" Folder. I want to generate a macro that: loops through all the files in the folder For each excel file in the folder (1.xlsx,...) copy all worksheets into a new workbook with the same filename as the...
  10. I

    HW involving For-Next loops, wage doubling, input boxes, message boxes.

    Think you can solve it? I'm stumped on a homework assignment with VBA. The question goes as follows.. Write a VBA program using For-Next loops to find out how much money you would be paid, if your starting pay was a nickel and your paydoubled every day for a specified number of days. Input...
  11. K

    Loops and rows

    How to loop through table rows and then the columns? I am new to VBA and what I am trying to do is to pull information into datasheet from user form, that enters 7 rows not 7 columns. Currently the code 'copy the data to the database With ws .Cells(lRow, 2).Value = Me.cboEmployID.Value...

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