Help with two VBA codes please - deleting rows and copying data to another workbook

AV_Geek

New Member
Joined
Jan 23, 2022
Messages
32
Office Version
  1. 365
Platform
  1. MacOS
OK, I'm going to hit you guys up for two macros. I'm hoping that my project is nearing completion.

  • Delete all rows where the first character in either one of columns C or D are “X,” with the other column possibly being blank. Note – the remaining columns need to remain in the same order, so sorting is probably not an option unless we can restore them to their original order.
  • This is going to be a little complex: referring to the row in workbook named 171, sheet “Smith,” the row that has “MSB” in column D, if the value in column R <= 10, or is blank, place an “X” in cell A5 of workbook named “Orange”, sheet named “Apple,” otherwise copy that value to Cell C7 of workbook named “Orange”, sheet named “Apple,”
Note: The second macro will be in stored in the workbook named “Orange”
 

Attachments

  • 171.png
    171.png
    98.9 KB · Views: 17
  • Orange.png
    Orange.png
    97.4 KB · Views: 17

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hey Guys: I was just wondering if anyone out there could help me with these.
 
Upvote 0
As Excel can't work with such picture …​
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,052
Members
448,940
Latest member
mdusw

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