copy/paste special formula to new workbook

tourbud

New Member
Joined
Apr 28, 2011
Messages
6
Hello, this is my first post.

I have a question that may have been answered before, but i didn't see it.

I have a speadsheet that i need to copy some data and some formulas from it to a new workbook. When i am recording the macro and use the paste special/ column widths the thing works perfectly. But later when i run the macro it only copies the values. it doesn't copy the formulas.

I have tried changing my macro in VB so that it copy/paste special formulas to the new workbook but that doesn't work either.

What I am trying to accomplish is i am making a "estimator" which has some drop downs for picking options. when all the options are picked and the "estimate" is completed i want to copy the quote to a new document and return to the "estimator" and reset itself for another quote. The result I am trying to achieve is that the new workbook will have basic sum formulas included in it, so if a price is changed i don't have to put in the formula again.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
It probably has to do with how you were pasting while recording the macro.

Could you submit your code so we can see why it may not be pasting the formulas. Don't forget to use CODE tags.
 
Upvote 0
i am not sure what code tags are?

but here is the part of the code which i think is relevent. (not sure)

Selection.Copy
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Name = ("quote")
Selection.PasteSpecial Paste:=8, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Paste
Sheets("quote").Select
Application.CutCopyMode = False
Sheets("quote").Move

first i move my estimate with the paste special column width "8" to a fresh sheet, rename the sheet and move to a new book.
 
Upvote 0
nevermind, i found a different way to do it. :)

i just resized my columns before hand, and did a paste special, all format formula. and it worked.

thanks for looking though.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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