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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
my macro every second does this:
myValue.Copy
Worksheets("Sheet2").Range(colSheet2).End(xlUp).Offset(1, 0).PasteSpecial xlValues

Now, if the macro is running, and I open any program, notepad, IE, firefox, and I copy a part of a text and paste into a notepad I'm not able to copy any text and it pastes only myValue, it looks like excell keeps the memory somehow.

Any suggests?
 
Upvote 0
Excel's Copy and Paste uses the Clipboard just like any windows applications use the Clipboard.

Have you thought about reprogramming your VBA to not use Copy?
 
Upvote 0
ah, that would be very interesting, but i have no idea how i can do that.
How can i copy a value if i can't copy and paste it?
 
Upvote 0
Like this:
Code:
Range("Z1:AL14").Value = Range("A1:M14").Value
 
Upvote 0
What is myvalue? A single cell? A range?

Guessing here but would this work:
Code:
Worksheets("Sheet2").Range(colSheet2).End(xlUp).Offset(1, 0).Resize(myvalue.Rows.Count,myvalue.Columns.Count).Value=myvalue.Value
?
 
Upvote 0
Then this should work:
Code:
Worksheets("Sheet2").Range(colSheet2).End(xlUp).Offset(1, 0).Value=myvalue
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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