Jeff,
maybe something like this
Sub SwitchCells()
Range("G13").Copy Range("K13")
Range("B13").Copy Range("G13")
Range("K13").Copy Range("B13")
Range("K13").ClearFormats
Range("K13").ClearContents
End Sub
--
Hope that helps.
Vergel Adriano
"JEFF" wrote:
> Greetings,
>
> I have a macro that I am using to swap the contents of two cells. When I
> use it I lose any character formatting that I have applied to the cell(s).
> Does anyone have any insights into how to do a swap cell macro but retain
> the formatting?
>
> Sub SwitchCells()
> '
> ' Macro created 4/13/2007 by willis
>
> Range("k13") = Range("g13")
> Range("g13") = Range("b13")
> Range("b13") = Range("k13")
> Range("k13") = ""
> End Sub
>
> Best regards!
> Jeff
>
>
>
|