for each array

  1. U

    Using 'For Each' loop in Ms Excel VBA

    For each Match in the workbook,I wish to add the value in the B cell of worksheet1 and the value in the C cell of worksheet2 and display the result if less than 100. This same process is repeated for worksheet1 and worksheet3 and on until worksheet10. The iteration now starts from worksheet2 and...
  2. A

    Help adding loop

    hello all! i am learning to code, and have 7 books but still have such a hard time understanding loops. i'm desperate for help. My boss wants me to loop through a years worth of files and pull data. I tried for days, and am just not retaining the rules behind the action. I hope someone will just...
  3. D

    Read row one by one

    hello everyone i have created a vba code to send email via outlook now i have to do one thing it is to read the first row and next and next , for example in A2 ,A3....... so on there are list of email recipient to be added to the field (TO of Outlook) and B2,B3... C1,C2.... so on there are text...
  4. N

    Object required error in for each command

    Hello, I am getting the "object required" error when I try to perform a for each command. Basically, I want, for each string text in a defined array, create a new spreadsheet. However, I got stuck at the for each command. Any help would be appreciated. The code is as follows: Dim rng As Range...
  5. V

    Vince

    I am learning VBA for excel. I have need to add hyperlinks to a series of some 4000 cells.Each is based on a identical cell pattern in sequential worksheets. So far I have tried the following: Range("B2").Select ActiveSheet.Hyperlinks.Add Anchor:=Selection, address:=""...
  6. B

    Loop through sheets problem

    I am trying to loop through all the sheets in my workbook and rearrange some data. So far I have been unsucessful for some reason. I think I have the loop and everything set up correctly, but the macro gets hung up on one sheet and executes the code over and over again on the same sheet without...
  7. B

    For Each Loop in an Array of Sheets

    Hi I have written a bunch of code with the intention of throwing it into a For Each loop to apply the code to several different worksheets. The problem I have is that I can't remember how to do it! I have: Dim Work_Sheet As Worksheet For Each Work_Sheet In Sheets(Array("Sheet1", "Sheet2"...

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