Transfer cells range to another sheet if first cell of destination range is empty

kopapa

New Member
Joined
Oct 23, 2013
Messages
10
Hi to all!
I've got a project which is quite complex (at least for me). So, I'm taking it one step at a time

The first step is creating a macro evoked by a push button (which is already in place) which will achieve the following:

Sheet1 is the source worksheet
Sheet2 is the destination sheet

With the push of the macro button (present in Sheet1) I want to calculate formulas in specific cells (B4, C4, B6, L61) AND copy the cells' values to specific cells in Sheet2 (M10, N10, O10, S10) BUT only if the FIRST cell of this range (i.e. M10) is empty.

If it contains data then paste the values to the cells below (M11, N11, O11, S11) etc etc. The "check for empty cell" routine is necessary because the macro will be evoked continuously (push the button on Sheet1 - Calculate - Transfer to empty cells on Sheet2 - Loop)

Any help will be greatly appreciated!
Thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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