cdiwindows
MIS
I have a workbook that the end user will paste the values from a workbook that is generated from another application. Columns D:L are numeric but when pasted into my spreadsheet, they are coming in as text. I have the code to convert all these values to numeric values that I would like to run when the user clicks another sheet.
I tried putting the code in the Private Sub Worksheet_Deactivate, but after the code runs it stays on the sheet I am trying to leave. How can I tell which sheet was clicked on and move to that sheet after the code runs.
Here is the code I have:
Also, is there a better way to convert all the text numbers to actual numbers?
Thank You
I tried putting the code in the Private Sub Worksheet_Deactivate, but after the code runs it stays on the sheet I am trying to leave. How can I tell which sheet was clicked on and move to that sheet after the code runs.
Here is the code I have:
Code:
Private Sub Worksheet_Deactivate()
Sheets("CAR_W1").Select
Range("D9:L207").Select
For Each xcell In Selection
xcell.Value = xcell.Value
Next xcell
End Sub
Also, is there a better way to convert all the text numbers to actual numbers?
Thank You