VBA copy certain cells (not entire row) from Sheet1 onto Sheet2 if criteria is met upon value entry

rimilam

New Member
Joined
Aug 7, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
This might be a simple problem and I've been scouring the internet, but I haven't quite found the solution yet. I have two sheets, "Master Parts List" is my master list with column B having the line number. What I want to do is manually enter the line number into column B in "Template" and have the data from the row with that same line number from "Master Parts List" in columns C,D,E,F,G,H,I,J,N,O,Q,R,S copied to "Template" in Columns C,D,E,F,G,H,I,J,K,L,M,N,O. I think some sort of VLookup will work, but I don't know enough about VBA to really know what the code should look like. I could input a formula into the cells on "Template", but I worry about the formula getting deleted by accident so I'd rather do a VBA code. Any help would be greatly appreciated!!
 

Attachments

  • Master Parts List.PNG
    Master Parts List.PNG
    154.5 KB · Views: 6
  • Template.PNG
    Template.PNG
    184.1 KB · Views: 6

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Watch MrExcel Video

Forum statistics

Threads
1,129,685
Messages
5,637,808
Members
416,983
Latest member
LessThanAverageUser

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