View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Doug929 Doug929 is offline
external usenet poster
 
Posts: 11
Default Trim Function... does not work?

I am using trim and can not figure out why it does not work!! I have some
text in a cell and use mid fuction to get a piece out, I want to trim the
spaces to use as worksheet name but can not figure why it won't trim spaces.
The data is a html I open in Excel, no problem, I save it as Excel and it
still does not work.

Dim strMarket As String
strMarket = Trim(Mid(ActiveCell.FormulaR1C1, 9))
ActiveSheet.Name = strMarket