vba loop

  1. E

    How to add value to current cell,

    Hello People I have made following code. The code loop through all cells in a master file column "H" for each value(example H cell contains "Hello") , open a new file check if the value is equal to any of the cells in column "H"; if the value is equal(this case "Hello") take the value same row...
  2. E

    Instead of replace a number add.

    Hello people, The code does following: Loop through all Cells for every row in the Master file. for each cell open a Separate file Loop through all used cells in column in "H", If the cells are equal take the Cell same row Column "i"; paste it in the Master file to the same row as the first...
  3. C

    VBA for a multiple GoalSeek on three rows

    Hi all, That has to be dead simple but I can figure it out (a beginner!). I have three rows: 5, 12 and 19. my columns run from L to BM for all three lines. What I need is a loop that does this: Range("L5").GoalSeek Goal:=Range("L12").Value, ChangingCell:=Range("L19") .... but for the...
  4. D

    Filter and Replace Loop

    I have one sheet with a Vendor column that has non-exact matches. (e.g. Walmart #6511 vs. Walmart #1654). I want to make all of those nonexact matches the same (Turn the example values into just Walmart.) I was not able to find a way to directly remove the non-exact matches. This led me to...
  5. K

    Web Data Scraping from HTML Data Table

    Hello all! I posted a couple questions about an ongoing project a while back. With the help of people here, and some modifications to the code, I now have a code which signs into the website specified in a certain cell, using user input boxes for username and password. The code will skip this...
  6. B

    copying to adjacent cell

    Hi all, Is there a way to loop through a column(lets say A),where most of the cells are empty(size of the column will varying in length),but when the loop hits a cell that has data in(please see Fig1)the data is copied over to the adjacent cell in the next column.Any help appreciated:) Fig1...
  7. T

    Loop through array - looking up multiple columns

    <TBODY> Data_Tbl</SPAN></SPAN> Staff_ID</SPAN></SPAN> Department 1</SPAN></SPAN> Department 2</SPAN></SPAN> Department 3</SPAN></SPAN> City</SPAN></SPAN> Date Hired</SPAN></SPAN> Grade</SPAN></SPAN> Hotspot Level</SPAN></SPAN> ID1</SPAN> Marketing</SPAN> Analytics</SPAN> Core...
  8. N

    VBA Loop for each to build forecast

    I have a data set that includes Column1 (Dates, week-to-week starting on Mondays), Column2 (product by SKU), Columns3 (product status, active... this will eventually be left out as soon as I finish the VBA to permit a list to be built allowing only active products to be selected in the data...
  9. M

    VBA loop through one column then pass next

    Hi Everybody, I have created a code that goes through all rows of a column and apply some conditions and create values in other columns, vode works fine but i want code to loop through other columns, see my code below here i loop through column C but after column C is done i want to apply same...
  10. S

    VBA code help

    Hello, I'm hoping someone can help me out with this code. I'm new to VBA and trying to figure it out. I got the code to work for the first cell to copy down column A but can't get it to do the same for the next column of data. Any help is greatly appreciated. Here is my code, I've highlighted...
  11. B

    VBA to right align text if the first characters are " "

    I have data in column A that I would like align right if =(LEFT($A10,4)=" ") is true. Is there a way with VBA to run through all of the rows in column A and apply the align right to all the cells that are true? Thanks for your help!
  12. B

    VBA: to bold text if the text starts with" ["

    I'm trying to create a macro that will bold all text on a row if the text in column A starts with " [" then move down to the next row and repeat. Any suggestions? Example: Column A Column B Column C [501650 Dues] 123 456 Billboard...
  13. P

    Vba to open a series of workbooks and update one tab

    Hi, I hope someone can help.. I would like some vba code to open a series of workbooks (based off a list of workbook names) and up date one tab (called raw data), refresh pivots, refresh formulae and close. I would like this to run until the list of workbook names is blank. Hope this makes...
  14. J

    Loop through my worksheets doing the exact same process

    All, I just learned how to create code today at my new job. Had no idea I would be learning code so forgive me if I make no sense. I created this code below to autofill data. After writing, I learned I could do a loop through my worksheets. Can someone help in where is should put my loop...
  15. S

    VBA Loop from a list to comulms

    I I'm looking for a VBA loop that goes down column A and copies the first 7 cells to column C and then the next seven cells from column A to column D and so on. Basically what I'm trying to do is i have a list of data but i want to put them into column rows so they represent weeks. Thanks for...
  16. S

    VBA loop

    Hi I'm trying to do a VBA loop for copying B6 pasting it to L4 and then copying K2 to C6, then doing the same again but copying from B7 pasting it to L4 and then copying K2 to C7 the bold numbers are the ones that I want to copy/paste next to after these would be copy from B8............C7 I...
  17. J

    VBA Loop Help Needed

    Hello, I have a series of costs and I want to group them into X dollar groups (In the example below its 300). I have a much larger set of data then shown below and want to create an automated way of doing this because I will have to repeat the process with new data in the future. I am trying to...
  18. R

    vba loop repeat numbers

    KInldy support me get the loop as mentioned below using for next loop Thank you very much for support 1 1 1 2 2 2 3 3 3
  19. L

    Excel Macro Loop / VBA code help

    Hello, Are there any Excel super stars that can help me? I have never written any VBA code, but I think I need it for the following: I wish to write a macro which has the following steps: (1) Goes to a sheet called "Price Data" (2) Copies a row of data (e.g. cells A2 to J2) (3) Puts the...
  20. M

    vba loop not moving to next worksheet

    I have a built two macros--one that calls the other. The first one copys down the formula in the last row, then paste's the values of the last cell. This code works if I just run it on one sheet Sub CopyDownAndPaste() Dim Col As Range For Each Col In Range("C:U").Columns With...

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