Change cells in the Activecell rowrange to values using VBA in Microsoft Excel

Let’s take an example and understand how we write the VBA code for change the cells in the active cell row range to values.

How to change cell in the active cell row range to values?

We have data in Excel, in which we want the replace the active cell row range to values.










Follow below given steps:-

  • Press Alt+F11 key to open the Visual Basic Application













  • In VBA Project Double click on Sheet 1
  • Enter the below given VBA Code

Option Explicit

Sub Values_5()

Range("A:A").Value = Range("D:D").Value

End Sub

To run the code press F5 key

  • Define range value will get updated










If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.

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

Add a Comment

Your email address will not be published. Required fields are marked *