Copy Pasting data instead of the formula, Code

HeyThere

New Member
Joined
Dec 10, 2009
Messages
6
Hey, i am trying to copy and paste data entered into a cell into another sheet, then moves down a cell via the click of a button, I am aware that this Code


ActiveSheet.Rows("1:1").EntireRow.Cut Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1)</pre>
Cuts the whole line of information and pastes it into the next sheet and moves it down one, however the only problem is that this also copies the borders, font and everything else in that row which is a problem.
So instead i am wondering if it is possible just to cut/copy and paste the entered text data into the other sheet via a code.

Another question I have is if its possible to display the data being displayed from another cell, without just displaying the formula/function within the cell. for example: if a cell contained the formula "=(A1)" if A1 contained the formula "=(A2+A3)" i would like it to show the answer to A2+A3 instead of the expected "=(A2+A3)".

Sorry if this doesn't make any sense, but please try to help :) x
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
For the first question. You can copy > paste values and then delete the copy range:

Code:
With ActiveSheet.Rows("1:1").EntireRow
    .Copy 
    Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlValues
    .Delete
End With
 
Upvote 0
You could try using the code
Code:
pastespecial

Excel recognises this and just inputs the values.

HTH
 
Upvote 0
For the first question try

Code:
ActiveSheet.Rows(1).Cut
Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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