Saving files without formulas attached to figures

Macro_

New Member
Joined
Sep 3, 2014
Messages
35
Hi all, I have a macro which updates data sets and then save each individual data set to a designated folder. I need the macro to update the data sets, then remove the formulas attached to the figures in the sets before saving them to their specific folders... any ideas? Thanks in advance for any help
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
What code are you currently using? The best way to fix the numbers is usually with a Copy --> Paste Values.

/AJ
 
Upvote 0
Oh right...Currently using this code, where would I insert the paste special code?
ActiveCell.Offset(-1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "variable"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveWorkbook.SaveAs Filename:= _
"X:\filelocation\variable.xlsx", _
FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
 
Upvote 0
This code works, almost.. only the colours of highlighted cells aren't copied in the relevant cells on the new sheet... ActiveCell.Offset(1, 0).Range("A1:S84").Copy
ActiveCell.Offset(1, 0).Range("A1:S84").PasteSpecial Paste:=xlPasteValues
ActiveCell.Offset(1, 0).Range("A1:S84").PasteSpecial Paste:=xlPasteFormats
 
Upvote 0
Hmm. Not sure why the colours aren't copied :S. Are they set using conditional formatting?

/AJ
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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