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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
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,191,054
Messages
5,984,388
Members
439,883
Latest member
onions44

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
Top