Edit code to cell values and not the contents (which are formulas).

Tanner_2004

Well-known Member
Joined
Jun 1, 2010
Messages
616
Sub Test()Sheets("A").Range("D93:M93").Copy Sheets("B").Range("D" & Rows.Count).End(xlUp).Offset(1, 0)End SubThe above worked great, but it pasted the formulas within the cell instead of the values.</PRE>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try:
Code:
Sub Test()
Sheets("A").Range("D93:M93").Copy
Sheets("B").Range("D" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues
End Sub
 
Upvote 0
May I ask how to center, change the font?
Say center and Arial 10

Thank you again!
You are welcome. This is modified to produce the formatting you specified:
Code:
Sub Test()
Sheets("A").Range("D93:M93").Copy
Sheets("B").Range("D" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues
With Selection
    .Font.Name = "Arial"
    .Font.Size = 10
    .HorizontalAlignment = xlCenter
End With
End Sub
 
Upvote 0
Ahh...now I see the logic. I own all of the Mr Excel DVDs, Bill's Que VBA Book, VBA for Dummies and I am now studying Chandoos live lessons. Yet, I don't grasp many of the basics. I am hoping this all comes together for me soon. I also look forward to helping others with their code. Thank you again. I know many Joe's from where I am orginally from :)
 
Upvote 0
Ahh...now I see the logic. I own all of the Mr Excel DVDs, Bill's Que VBA Book, VBA for Dummies and I am now studying Chandoos live lessons. Yet, I don't grasp many of the basics. I am hoping this all comes together for me soon. I also look forward to helping others with their code. Thank you again. I know many Joe's from where I am orginally from :)
You are welcome. Stay the course, it takes time, and with the depth of VBA it's a virtual endless journey - there's always more to learn.
 
Upvote 0

Forum statistics

Threads
1,215,901
Messages
6,127,644
Members
449,394
Latest member
fionalofthouse

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