TheChristige
New Member
- Joined
- Dec 30, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hello everyone, I have another simple (I hope question). As I am new to VBA I am not very good at debugging my code (in this case it is not a bug rather it is working but not as intended). What I would like this macro to do is replace all instances of their with his, them with he and they with his. I defined what to look for in cells T35:T37 and to replace these with in cells U35:U37. The problem is it replaces every instance in the worksheet but I would only like it to find a replace in cell M14 (which is actually 3 merged cells, M14:M16). I thought the line "Worksheets("Comments Prototype").Range("M14").Select" limit the replace to the Range("M14") but it does the entire workbook instead. Please help me limit the function of this macro to a single cell! Thank you! <3
Gradebook Prototypes.xlsm | |||
---|---|---|---|
T | |||
35 | their | ||
Comments Prototype |