Copy and past from e-mail into exccel

tpkelley_no

Board Regular
Joined
Oct 14, 2011
Messages
188
Office Version
  1. 2010
Platform
  1. Windows
When I copy and paste date from an e-mail into excel, the number are not readable. I have to go into each cell and delete the spaces with the backspace so it can be readable. Do they have an excel formula that can do this for me? The spaces can vary.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
please give me an example of the date format in your email.
 
Upvote 0
Here is a copy of the e-mail:
10/14/2021776.77
10/14/202133,958.15

10/14/21​
776.77​
 
Upvote 0
@tpkelley_no
Is post #3 how it looks in the email or how it looks in EXcel ??
If it's in Excel tyr highlight the column and change the alignment, ie, left justified, center, etc
If they really are spaces and not non printing characters, try running this code after the data is copied from email
VBA Code:
Sub MM1()
Dim rng As Range
Set rng = ActiveSheet.UsedRange
Application.ScreenUpdating = False
With rng
    .Value = Evaluate(Replace("If(@="""","""",Trim(@))", "@", .Address))
End With
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,652
Messages
6,126,033
Members
449,281
Latest member
redwine77

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