I'm confused.... (PasteSpecial problem)

mobiius

New Member
Joined
Mar 30, 2011
Messages
37
I'm using the following code:

Code:
Range("M1:N500").Copy
Sheets("Sheet2").Select
Range("A1").End(xlUp).Offset(0, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False

What this does is grab a column of user names from M on Sheet1 and a list of cooresponding numbers in colum N, also on Sheet 1 and pastes it into Sheet2.

In Cell A1, it has a name as it should, but in B1, it says Counts instead of having the proper value... ?
The rest of the items look ok, it's just that one cell (B1) that isn't right..

Anyone have an idea why this is happening an how to fix it?
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I don't understand the Offset(0,0) which does nothing. Maybe

Code:
Range("M1:N500").Copy
Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
 
Upvote 0
*sigh*...

It's been a very long day.

Sorry about that, small overight on my part.
Thanks for the help guys.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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