Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Create a macro to trim selected cells in excel

Avatar of damixa
damixaFlag for Denmark asked on
Microsoft OfficeMicrosoft ExcelMicrosoft Applications
3 Comments1 Solution1687 ViewsLast Modified:
Im looking to create a macro to trim the selected cells. By trim i mean get rid of extra space on both sides. I kow I can do this with with the function TRIM() but i was looking to do this with a macro since there are several columns to be trimmed, and it would save me a lot of time to select the cells and just run the macro.

thanks a lot.
Avatar of Jorge Paulino
Jorge PaulinoFlag of Portugal imageIT Pro/Developer
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers