The code is really simple and I'm just trying to copy values in from_range and paste them in to_range. But it's just not working out...
Sub test14()
Range("to_range") = Range("from_range")
End Sub
Before,
After, not sure why everything in to_range is gone
Desired, just want to overwrite to_range with from_range
Could someone explain what's going on here? Thanks.



Range("to_range").Value = Range("from_range").Value, but I wonder why that does not happen automatically, because it should. Specifically it's the absence of.ValueafterRange("from_range");Range("to_range")may or may not have.Value, that does not change the outcome.Range("to_range").value = Range("from_range").[_Default]) does the right thing, but implicitly it does not. I wonder if this discussion has something to do with it.Range("to")=[{1,2,3,4}]works just fine. It must have something to do with how Excel handles ranges which are objects and not variables - they have to beSETafter all. Strange how using properties fixes the problem.