Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some extra spaces that pop up when copying data from a webpage.
Example: 123,123 comes into Excel as 123,123 with a space at the beginning and the end. I am doing some calculations with these cells in a macro, and of course the formula won't calculate until i delete the space at the beginning and the end. What would be a good way to get rid of those spaces? There are many cells, so a nice formula would be great, I can slip it into the macro and go about my merry way. Text to columns isn't seeming to work, The length of the data in the cells varies from 2 numbers to a 8 numbers. Any advice will be useful, THANKS!!! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jul 10, 9:20 am, bodhisatvaofboogie
wrote: I have some extra spaces that pop up when copying data from a webpage. Example: 123,123 comes into Excel as 123,123 with a space at the beginning and the end. I am doing some calculations with these cells in a macro, and of course the formula won't calculate until i delete the space at the beginning and the end. What would be a good way to get rid of those spaces? There are many cells, so a nice formula would be great, I can slip it into the macro and go about my merry way. Text to columns isn't seeming to work, The length of the data in the cells varies from 2 numbers to a 8 numbers. Any advice will be useful, THANKS!!! try =TRIM(text) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm not sure I'm getting how to utilize that in a macro. With the cell
selected do: ??? Thanks for the help! " wrote: On Jul 10, 9:20 am, bodhisatvaofboogie wrote: I have some extra spaces that pop up when copying data from a webpage. Example: 123,123 comes into Excel as 123,123 with a space at the beginning and the end. I am doing some calculations with these cells in a macro, and of course the formula won't calculate until i delete the space at the beginning and the end. What would be a good way to get rid of those spaces? There are many cells, so a nice formula would be great, I can slip it into the macro and go about my merry way. Text to columns isn't seeming to work, The length of the data in the cells varies from 2 numbers to a 8 numbers. Any advice will be useful, THANKS!!! try =TRIM(text) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim MyString, TrimString
MyString = ActiveCell TrimString = Trim(MyString) This is what i'm trying, and it's just not working. Doesn't seem to come up with any errors, just does nothing. " wrote: On Jul 10, 9:20 am, bodhisatvaofboogie wrote: I have some extra spaces that pop up when copying data from a webpage. Example: 123,123 comes into Excel as 123,123 with a space at the beginning and the end. I am doing some calculations with these cells in a macro, and of course the formula won't calculate until i delete the space at the beginning and the end. What would be a good way to get rid of those spaces? There are many cells, so a nice formula would be great, I can slip it into the macro and go about my merry way. Text to columns isn't seeming to work, The length of the data in the cells varies from 2 numbers to a 8 numbers. Any advice will be useful, THANKS!!! try =TRIM(text) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting Custom Views when Deleting Sheets | Excel Programming | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
Deleting Hyphens or Dashes from multiple cells without deleting the remaining content | Excel Programming |