Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jeff
 
Posts: n/a
Default Trim and Mid with VBA

Hi,

I need help to include this formula: =MID(TRIM(A7),12,20) into a existing
VBA procedure.

I need to run the procedure in Column C for all the names in Column B

Thank you,
--
Regards,
Jeff

  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default Trim and Mid with VBA

To get rid of extra spaces within the text

Sub trimit()
x = Mid(Application.Trim(Range("a7")), 3, 6)
Range("f4") = x
End Sub
--
Don Guillett
SalesAid Software

"Jeff" wrote in message
...
Hi,

I need help to include this formula: =MID(TRIM(A7),12,20) into a existing
VBA procedure.

I need to run the procedure in Column C for all the names in Column B

Thank you,
--
Regards,
Jeff



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"