ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 97 Left(..... (https://www.excelbanter.com/excel-programming/309603-excel-97-left.html)

[email protected]

Excel 97 Left(.....
 
I had previously asked a question regarding Trim(.... not working correctly
in Excel 97. While the Trim statement works without any problems in Office
2003 it does not work in Excel 97. The solution at that time was:

WorksheetFunction.Trim(...)

That worked for Trim(...)
but does not work for Left(...)

I get an invalid method error.

Is there another solution for Left(...)
and for Mid(...)

Frank Kabel

Excel 97 Left(.....
 
Hi
AFAIK left, mid, riht don't have probelms in VBA. So why do you want to
replace them?

--
Regards
Frank Kabel
Frankfurt, Germany

"
schrieb im Newsbeitrag
...
I had previously asked a question regarding Trim(.... not working

correctly
in Excel 97. While the Trim statement works without any problems in

Office
2003 it does not work in Excel 97. The solution at that time was:

WorksheetFunction.Trim(...)

That worked for Trim(...)
but does not work for Left(...)

I get an invalid method error.

Is there another solution for Left(...)
and for Mid(...)



david mcritchie

Excel 97 Left(.....
 
Take a look at the descriptions at
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
there may be an aspect you are missing such as copying
non breaking space characters from web pages.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

" wrote in message
...
I had previously asked a question regarding Trim(.... not working correctly
in Excel 97. While the Trim statement works without any problems in Office
2003 it does not work in Excel 97. The solution at that time was:

WorksheetFunction.Trim(...)

That worked for Trim(...)
but does not work for Left(...)

I get an invalid method error.

Is there another solution for Left(...)
and for Mid(...)




Tom Ogilvy

Excel 97 Left(.....
 
Apparently you ignored the suggestions that might have actually solved the
problem.

Maybe you need to go back and take a look.

Using Worksheetfunction.Trim and prefacing the commands with VBA are
bandaids.

--
Regards,
Tom Ogilvy

" wrote in
message ...
I had previously asked a question regarding Trim(.... not working

correctly
in Excel 97. While the Trim statement works without any problems in Office
2003 it does not work in Excel 97. The solution at that time was:

WorksheetFunction.Trim(...)

That worked for Trim(...)
but does not work for Left(...)

I get an invalid method error.

Is there another solution for Left(...)
and for Mid(...)





All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com