complex cell referencing macro

russthebarber

New Member
Joined
Oct 4, 2016
Messages
3
Any ideas how to do this? - I have two sheets in a spreadsheet called "stockcheck" and "stock" and I want to set up an 'add' button that adds a new row to one of the sheets. This row will be pulling information from various places, however. This is what should be performed by the macro:

1. Cell below last populated cell in column A of "stocksheet" gets populated by contents of last populated cell in column G of "stock".
2. Cell below last populated cell in column B of "stocksheet" gets populated by contents of last populated cell in column J of "stock".
3. Cell below last populated cell in column C of "stocksheet" gets populated by contents of last populated cell in column K of "stock".
4. Cell below last populated cell in column D of "stocksheet" gets populated by contents of last populated cell in column S of "stock".
5. Cell below last populated cell in column H of "stocksheet" gets populated by contents of last populated cell in column Y of "stock".
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Will the last row with data of all these columns normally be same? I know the row # will always change but will lastrow with data in column A normally be the same as last row with data in column B
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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