why copy and paste doesn't work if macro is running?

earp_

Active Member
Joined
Apr 30, 2008
Messages
305
Hi, I have my macro that every second does a copy and paste.
but window doesn't copy and paste anything else but the macro's value :(
is it normal?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
can you please tell me if this is correct, seems not to work :(
Worksheets("sheet3").Range("B" & myColCheck & ":" & "E" & myColCheck).Copy Destination:=Worksheets("Sheet4").Range("B" & myColCheck & ":" & "E" & myColCheck)
to
Worksheets("Sheet4").Range("B" & myColCheck & ":" & "E" & myColCheck) = Worksheets("sheet3").Range("B" & myColCheck & ":" & "E" & myColCheck)

myColCheck is a number let's say 15
 
Upvote 0
Good luck! Am logging off now. Might be back on some time over the weekend, and will definitely be back on Monday.
 
Upvote 0
instead I guess that if I want to copy the formula that is in a Cell, that won't work anymore, right?
 
Upvote 0
You just got me before I log off. For a single cell formula copy use .Formula instead of .Value, and see if it does what you want.

You have a good weekend too.
 
Upvote 0
Worksheets("Sheet3").Range("B11:E11") = Worksheets("Sheet3").Range("B1:E1").Formula
if in B1 I have this formula
=+F10*(1-F$5)
in B11 i will have the same formula and not
=+F37*(1-F$5)
what i mean is that with copy and paste i adjust also the formula at the cell.
But not in this way,am I right or is there any solution?
 
Upvote 0
Worksheets("Sheet3").Range("B11:E11") = Worksheets("Sheet3").Range("B1:E1").Formula
if in B1 I have this formula

in B11 i will have the same formula and not

what i mean is that with copy and paste i adjust also the formula at the cell.
But not in this way,am I right or is there any solution?

Sorry about that, was in a hurry and specified Formula instead of FormulaR1C1, as in
Code:
Worksheets("Sheet3").Range("B11:E11").FormulaR1C1 = Worksheets("Sheet3").Range("B1:E1").FormulaR1C1
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,160
Members
449,209
Latest member
BakerSteve

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