C
Cortez
I am looking for a simple macro to swap the contents of two selected
cells. The cells might not be next to each other.
I know what I want it to do, but I don't know vba well enough.
If anyone has a moment to help, here is what I want to do.
Select cell1, could be A1
Control-Click additional selection of cell2, could be C1
Hot-Key Macro to:
Assign cell1 value to variable1
Assign cell2 value to variable2
Assign variable1 value to cell2
Assign variable2 value to cell1
Note: the specific cells being selected will not always be the same.
So after the macro is run the values that started in cells A1 and C1
would swap with each other.
Any suggestions would be appreciated.
TK
cells. The cells might not be next to each other.
I know what I want it to do, but I don't know vba well enough.
If anyone has a moment to help, here is what I want to do.
Select cell1, could be A1
Control-Click additional selection of cell2, could be C1
Hot-Key Macro to:
Assign cell1 value to variable1
Assign cell2 value to variable2
Assign variable1 value to cell2
Assign variable2 value to cell1
Note: the specific cells being selected will not always be the same.
So after the macro is run the values that started in cells A1 and C1
would swap with each other.
Any suggestions would be appreciated.
TK