Paste Special in macro not working

scrupul0us

Well-known Member
Joined
Sep 7, 2004
Messages
641
Ive got an entire column of formulated text in a column, and im trying to copy just the result over to another column, when I manually do paste special > VALUES it works fine. When it embedded in my macro it copies down the first value of the reference column for the entire destination column:

Code:
    Columns("D:D").Select
    Selection.Copy
    Columns("C:C").Select
    Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=False
 
I noticed you're turning calculation to manual at the start and back to automatic at the end- shouldn't you add a Calculate command after

Selection.AutoFill Destination:=Columns("D:D"), Type:=xlFillDefault

or just do away with turning it to manual calculation altogether?
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
well i\now that im on my home machine it worked ust fine WTF!?! any ways.. now im having another issue...

im trying to insert a new blank row at the top of my worksheet and excel is babbling about how that could attribute to data loss and wont let me... even if i macro this action i get an error... can this be gotten rid of?
 
Upvote 0
Im noticing its one column in the set of data that is causing this problem... its full of zip codes... but its not formatted any special way or linked... ideas?
 
Upvote 0
How much data is in your col? Does it go all the way to row 65000++? I know i have had problems with excel and large amts of data.
 
Upvote 0
this months report is only 155 lines...

i have columns a:u and i can move each of them down except col F... wierd
 
Upvote 0
Actually I fixed it... the column that was causing problems was one where I copied special that put "" in all the maining rows for the entire page and excel cant push cells of the page, hence the error...so i just ran a thinger to delete all empty rows again and it worked like a charm... finally after 2 weeks this is done
 
Upvote 0

Forum statistics

Threads
1,226,237
Messages
6,189,790
Members
453,568
Latest member
LaTwiglet85

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