ChristineJ
Well-known Member
- Joined
- May 18, 2009
- Messages
- 761
- Office Version
- 365
- Platform
- Windows
This excerpt of code works to define two ranges of columns.
This excerpt of code works to replace the "D" with the value in cell ED33.
I also now want to replace the "R", "FZ", and "GK" in the first line of code with the cell values in ED34, ED35, and ED36, respectively.
I am trying the following, but getting syntax errors.
How do I need to tweak this? Thanks.
Rich (BB code):
Call SplitAny(Range("D:R,FZ:GK"), Range("68:205,542:795"), Range("D68"), Range("FZ566"))
This excerpt of code works to replace the "D" with the value in cell ED33.
Rich (BB code):
Call SplitAny(Range(Range("ED33").Value & ":Z,FZ:GK"), Range("68:205"), Range("D68"), Range("FZ566"))
I also now want to replace the "R", "FZ", and "GK" in the first line of code with the cell values in ED34, ED35, and ED36, respectively.
I am trying the following, but getting syntax errors.
Rich (BB code):
Call SplitAny(Range(Range("ED33").Value:Range("ED34").Value,Range("ED35").Value:Range("ED36").Value), Range("68:205"), Range("D68"), Range("FZ566"))
How do I need to tweak this? Thanks.