In this article we will learn how to change only the current region of the active cell to values using VBA in Microsoft Excel.
Let’s take an example and understand how to change only the current region of the active cell to values.
How to change the value of current region?
We have data in Excel in which Column A contains some values and Column B also contains some values. We are going to update the same value of column B in the current region.
Follow below given steps:-
Sub Values_2() With ActiveCell.CurrentRegion .Value = Range("B1:B10").Value End With End Sub
Now let’s change the selection and see the results:
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.