Macro loop. If cell empty get value from another workbook.

Tilly10

New Member
Joined
Apr 27, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I'm new to Macros so any help would be much appreciated. The macro itself is very long, but basically I have a macro that loops through columns of data starting column 9 ("I") then when reaches last data row in column goes to next column (col 9 + 2) etc until no more columns of data. However, row 8 is always blank. Is there a way to get the loop to include if cell in row 8 is blank then get value of column B of workbook2 (list of values) moving down values in column B as loop goes to next column? The number of columns of data in workbook1 can vary from.
Or would it be better to first get the macro to fill workbook1, row 8 blank cells with values in workbook2 column B ? If so how?
Thanks in advance.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,388
Messages
6,124,648
Members
449,177
Latest member
Sousanna Aristiadou

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