nc_waggoner
New Member
- Joined
- Sep 2, 2016
- Messages
- 21
I am looking for a VBA code to delete the contents (not formatting) of a range of a row based on the cell value. For example, as seen below, I have number (col A), Name (col B), and Gender (col C). I would like to enter a number in Cell E2 (representing a number in column A) and have it delete the values of the Name and Gender columns. So if I type in 3 and click the button it will delete "Wayne" and "M".
<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
Number | Name | Gender | Delete Number | |
1 | Stone | M | ? | |
2 | Jordan | M | ||
3 | Wayne | M | ||
4 | Prince | F | ||
5 | Allen | M |
<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>