Shweta
Well-known Member
- Joined
- Jun 5, 2011
- Messages
- 514
Hi All,
I have created a macro for column C that is based on column A and column B. It is working properly.
But when I am inserting a column between column B & C then the coding of column C should be moved to column D because I have inserted this column for something else but it is remaining for the same column.
For example:
.range("C"&i).value = .range("A"&i).value + .range("B"&i).value
After inserting the column it should be work like this
.range("D"&i).value = .range("A"&i).value + .range("B"&i).value
without doing any change in coding.
Please help!
Regards,
Shweta
I have created a macro for column C that is based on column A and column B. It is working properly.
But when I am inserting a column between column B & C then the coding of column C should be moved to column D because I have inserted this column for something else but it is remaining for the same column.
For example:
.range("C"&i).value = .range("A"&i).value + .range("B"&i).value
After inserting the column it should be work like this
.range("D"&i).value = .range("A"&i).value + .range("B"&i).value
without doing any change in coding.
Please help!
Regards,
Shweta