sheet copy vba copy/paste cells as value

pile-it Mark

Board Regular
Joined
Jan 10, 2006
Messages
125
hello,

this code copies a master sheet and turns several cells from formula to value.

i have since needed to add a few more cells to "copy/paste as value" how do i add AL11 to paste as value?


Code:
Sub SheetCopy347()
'
' SheetCopy347 Macro
'

'
    Sheets("Master 347").Select
    Sheets("Master 347").Copy Before:=Sheets(4)
    Range("E12").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Range("R5").Select
    Application.CutCopyMode = False
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
End Sub
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try this and add more lines of code like you want.

Code:
Sub SheetCopy347()
' SheetCopy347 Macro
    
    Sheets("Master 347").Copy Before:=Sheets(4)
    Range("E12").Value = Range("E12").Value
    Range("R5").Value = Range("R5").Value
    Range("AL11").Value = Range("AL11").Value
    
    End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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