thomassharp
Board Regular
- Joined
- Dec 10, 2014
- Messages
- 84
Hi I've constructed a list of email formulas from email text values so i can use them with a VBA script. The problem I have is that I need to replace the end part of the formulas, the final cell reference, with it's static text value before I can use it. I know I can select the cell ref and press f9 which gives the exact result I need, but I have looked at the VBA for this by recording a macro and unfortunately it retains the text relative to each cell rather than the process. Example
For each cell it lists the individual text value relative to that cell and obviously they are all different so this won't work as a looped script
Is there a way that the the last cell reference can be made static with a range of cells?...
Code:
Range("G9").Select
ActiveCell.FormulaR1C1 = "=RC[-5]&"".""&RC[-4]&""@acme.com"""
Range("G10").Select
ActiveCell.FormulaR1C1 = "=RC[-5]&"".""&RC[-4]&""@Abccorp.com"""
For each cell it lists the individual text value relative to that cell and obviously they are all different so this won't work as a looped script
Is there a way that the the last cell reference can be made static with a range of cells?...