Don
Mon May 28 07:25:55 CDT 2007
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
--
Don Guillett
SalesAid Software
dguillett1@austin.rr.com
"Don Guillett" <dguillett1@austin.rr.com> wrote in message
news:e3LglFSoHHA.4124@TK2MSFTNGP02.phx.gbl...
> Instead of a formula that eats up resources to re-calculate, this is a
> macro that does it only once and leaves just the values. As written, it
> will leave everything to the left of the FIRST space encountered.
>
> --
> Don Guillett
> SalesAid Software
> dguillett1@austin.rr.com
> "TxWebdesigner" <beverly@beverlylanedesigns.com> wrote in message
> news:eGi7okLoHHA.1388@TK2MSFTNGP05.phx.gbl...
>> Hello,
>>
>> Thank you for your response but I'm not sure I follow....
>>
>> Am I supposed to create a function based on the below? I am not
>> experienced in functions or code with Excel so if you could help me
>> understand how I go about implemeneting the code below, I would
>> appreciate it.
>>
>> Thank you!
>>
>> "Don Guillett" <dguillett1@austin.rr.com> wrote in message
>> news:eJvnN1KoHHA.3704@TK2MSFTNGP02.phx.gbl...
>>> Sub striplastltr()
>>> For Each c In Range("g2:g" & Cells(Rows.Count, "g").End(xlUp).row)
>>> If InStr(c, " ") > 0 Then c.value = Left(c, InStr(c, " "))
>>> Next
>>> End Sub
>>>
>>> --
>>> Don Guillett
>>> SalesAid Software
>>> dguillett1@austin.rr.com
>>> "TxWebdesigner" <beverly@beverlylanedesigns.com> wrote in message
>>> news:OBSSvkKoHHA.4772@TK2MSFTNGP06.phx.gbl...
>>>>I have a long list of first names but some have a middle initial after
>>>>their first name that I need to drop from the entire list. Sample would
>>>>be: "Jennifer A"
>>>>
>>>> Can anyone tell me what function/code I could use to drop that last
>>>> single letter from every row in that column, or leave it alone, if
>>>> there is not a single letter at the end?
>>>>
>>>> Thank you!
>>>>
>>>
>>
>>
>