Copy / Paste Macro

chet645

Board Regular
Joined
Nov 10, 2010
Messages
67
Office Version
  1. 365
Platform
  1. Windows
I am trying to use the more efficient way to copy and paste values using a looping macro. The code below doesn't seem to be doing what I want it to. I don't get an error with the line of code below, yet when I run the macro, it doesn't paste my values at all.

Range("Land_Paste").Offset(Macro, 0).Value = Range("Land_Copy")

Here is my entire Macro:

Dim Macro As Integer
Dim A As Integer
Dim B As Integer


A = Range("Macro_Start")
B = Range("Macro_End")


For Macro = A To B Step 1


Range("Macro_No").Value = Macro


Range("Min_Delta").GoalSeek Goal:=0, ChangingCell:=Range("Land_Value")

Range("Land_Paste").Offset(Macro, 0).Value = Range("Land_Copy")

Next Macro


Any help would be much appreciated!!!! Thanks in advance.

Chet
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Chet:

You need to tell us what your want to do instead of showing us a script which is not working and wanting us to figure out what your wanting

Tell us in words with specific details what your wanting to do
 
Upvote 0
Chet:

You need to tell us what your want to do instead of showing us a script which is not working and wanting us to figure out what your wanting

Tell us in words with specific details what your wanting to do

Sorry, just want the macro to paste the values, lol.
 
Upvote 0
chet645,

We can not tell where your raw data is located, sheet name(s), cells, cell formatting, cell formulae, rows, columns, and, we can not tell where the results should be, sheet name, cells, cell formatting, cell formulae, rows, columns.


We would like more information. Please see the Forum Use Guidelines in the following link:

http://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html


See reply #2 at the next link, if you want to show small screenshots, of the raw data, and, what the results should look like.

http://www.mrexcel.com/forum/about-board/508133-attachments.html#post2507729
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top