Re: Address can not be more than 30 characters
- From: "Don Guillett" <dguillett1@xxxxxxxxxxxxx>
- Date: Wed, 17 Sep 2008 16:20:58 -0500
Its a macro. Put in a module and execute from there.
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
Microsoft MVP Excel
SalesAid Software
dguillett1@xxxxxxxxxxxxx
"NeSchw6G" <NeSchw6G@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9C8F636B-0BAD-4FBA-8CF8-7999E7B8B9C8@xxxxxxxxxxxxxxxx
Don, It looks like you have a good idea except that I have no idea what "Sub
limitcol()" means, so I don't know how to execute this. Can you simplify for
me?
Thank you!
"Don Guillett" wrote:
Sub limitcol()
mc = "J"
On Error Resume Next
lr = Cells(Rows.Count, mc).End(xlUp).Row
For Each c In Range(Cells(1, mc), Cells(lr, mc))
c.Offset(, 1) = Right(c, Len(c) - 30)
c.Value = Left(c, 30)
Next c
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@xxxxxxxxxxxxx
"NeSchw6G" <NeSchw6G@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:56D40342-C95F-40A9-8708-776FDDB23E86@xxxxxxxxxxxxxxxx
> Hello,
> I have a report that is opened through excel and it includes an address
> column. I am sending this report to a thrid party who can not have the
> address field be more than 30 characters. Is there a formula that > would
> recognize if the field is more than 30 characters and then move the > extra
> characters to the next column? the report includes over 1,000 records > so
> it
> would be nice if I did not have to do any manual work.
>
> Thank you,
.
- References:
- Address can not be more than 30 characters
- From: NeSchw6G
- Re: Address can not be more than 30 characters
- From: Don Guillett
- Re: Address can not be more than 30 characters
- From: NeSchw6G
- Address can not be more than 30 characters
- Prev by Date: Re: Address can not be more than 30 characters
- Next by Date: RE: value error
- Previous by thread: Re: Address can not be more than 30 characters
- Next by thread: named range link
- Index(es):
Relevant Pages
|