• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Format value paste

Abhijeet

Active Member
Hi

I have excel data Numbers i want to paste values but what ever in column A that show value as it is i want to paste value please tell me i have mention in column B expected values i want.
 

Attachments

You'll want to use the .Text property of the cell. Example:
Code:
Sub CopyVisibleNumber()
Dim c As Range

For Each c In Range("A1:A10")
    'the .Text property references what is displayed
    c.Offset(, 2).Value = c.Text
Next

End Sub
 
Hi Luke M
Please tell me how to remove £ currency Symbol this macro pull if column A has £ currency symbol so i don't want £ currency symbol please tell me
 
Code:
Sub CopyVisibleNumber()
Dim c As Range

For Each c In Range("A1:A10")
    'the .Text property references what is displayed
   c.Offset(, 2).Value = WorksheetFunction.Substitute(c.Text, "£", "")
Next

End Sub
 
Back
Top