In Excel, I have a created a cell that randomly generates values. Using a Macro, I would like to copy the randomly generated Cell and paste special the value in another cell. Then I want the macro to repeat this process X times, but paste the randomly generated value in a different cell. For example, if I am randomly generating the values in Cell A1, I want the macro to randomly generate Cell A1, copy the value, and paste special in Cell B1. Then I want the macro to randomly generate a value in Cell A1 again, copy the value, and paste special the value in Cell B2, etc. etc.
I created a basic Macro, but it does not work correctly. The VBA code is as follows:
-----------------------------![]()
Please Login or Register to view this content.
The above code essentially does what I want to do, but it pastes each iteration over the same cell. I realize that the issue is with the Range("L22").Select portion of the code. However, I do not how to resolve this issue. If anyone could help I would greatly appreciate it. Thanks
Josh
Bookmarks