VBA to copy from one sheet and paste values to another

stroffso

Board Regular
Joined
Jul 12, 2016
Messages
160
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have some code which works fine apart from the bit where it copies formulas rather than values across to the new sheet.

What am I missing here?

Sub Quotetracker()Application.ScreenUpdating = False
Sheets("Customer Quote").Range("B11").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(1, 0)
Sheets("Customer Quote").Range("B12").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 1)
Sheets("Customer Quote").Range("B13").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 2)
Sheets("Customer Quote").Range("B14").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 3)
Sheets("Quote Entry").Range("D7").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 4)
Sheets("Customer Quote").Range("B10").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 5)
Sheets("Customer Quote").Range("D58").Copy _
Destination:=Sheets("Quote Tracker").Cells(Cells.Rows.Count, _
1).End(xlUp).Offset(0, 6)
Application.ScreenUpdating = True
End Sub
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try...

Code:
Sub Quotetracker()
Application.ScreenUpdating = False
 Sheets("Customer Quote").Range("B11:B14").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Transpose:=True

 Sheets("Quote Entry").Range("D7").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 4).PasteSpecial Paste:=xlPasteValues
 
 Sheets("Customer Quote").Range("B10").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 5).PasteSpecial Paste:=xlPasteValues
 
 Sheets("Customer Quote").Range("D58").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 6).PasteSpecial Paste:=xlPasteValues

 Application.CutCopyMode = False
 Application.ScreenUpdating = True
 End Sub
 
Last edited:
Upvote 0
Try writing your script like this:
I did the first line you try doing the rest.
Code:
Sub Quotetracker()
'Modified 4-9-18 2:00 AM EDT
Sheets("Quote Tracker").Cells(Cells.Rows.Count, 1).End(xlUp).Offset(1, 0).Value = Sheets("Customer Quote").Range("B11").Value
End Sub
 
Upvote 0
Worked an absolute charm, thank yu so much

Try...

Code:
Sub Quotetracker()
Application.ScreenUpdating = False
 Sheets("Customer Quote").Range("B11:B14").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Transpose:=True

 Sheets("Quote Entry").Range("D7").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 4).PasteSpecial Paste:=xlPasteValues
 
 Sheets("Customer Quote").Range("B10").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 5).PasteSpecial Paste:=xlPasteValues
 
 Sheets("Customer Quote").Range("D58").Copy
 Sheets("Quote Tracker").Cells(Rows.Count, 1).End(xlUp).Offset(0, 6).PasteSpecial Paste:=xlPasteValues
 
 Application.ScreenUpdating = True
 End Sub
 
Upvote 0
You're welcome but please note the edit to my previous post :biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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