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

In this chapter you will learn how to change cells in the active cell row range 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.


image 1.1
Follow below given steps:-

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

image 2


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

image 1


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


image 2
image 48


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


Leave a Reply

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

Terms and Conditions of use

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.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube