Re: Simple Question (insert new line)
- From: "Tom Ogilvy" <twogilvy@xxxxxxx>
- Date: Wed, 27 Jul 2005 10:46:02 -0400
thisCell.Value = thisCell.Value & chr(10) & newCell.Value
in VBA, it is CHR, not CHAR
--
Regards,
Tom Ogilvy
"Joe D" <j1degiovann@xxxxxxxxxx> wrote in message
news:1122474545.924113.321840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Currently I have code that looks something like this:
>
> thisCell.Value = thisCell.Value & " " & newCell.Value
>
> Which adds the new value to the old value, separated by a space.
> However, I would rather have this line of code insert a line break. In
> the formula bar, CHAR(10) works for this, but I tried to just replace
> the space(" ") with CHAR(10) and Excel complains about it. What is the
> correct way to insert a line break?
>
> Thanks to anyone who responds,
> Joe
>
.
- Follow-Ups:
- Re: Simple Question (insert new line)
- From: Joe D
- Re: Simple Question (insert new line)
- References:
- Simple Question (insert new line)
- From: Joe D
- Simple Question (insert new line)
- Prev by Date: Re: Running Total
- Next by Date: Re: Goto "Start of Sub"
- Previous by thread: Simple Question (insert new line)
- Next by thread: Re: Simple Question (insert new line)
- Index(es):
Relevant Pages
|
Loading