Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default vbcrlf question

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but when i
run the code at my client's site, the box is visible?

--


Gary Keramidas
Excel 2003


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default vbcrlf question

They might be using Excel XP. Try Chr(10) or Chr(13) instead.

If that's not working, try it with replacing:

Worksheets("Sheet1").Range("A1").Replace _
What:=vbCrLf, Replacement:=Chr(10)

Hubisan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default vbcrlf question

Hi Gary,

I am a bit confused by what you mean by a "label in a cell". Do you mean
simply text in a cell where the text is wrapped and includes a line feed? If
so, use vbLf in lieu of vbCrLf. vbLf is the same character that is inserted
when you use Alt/Enter in the interactive mode to insert a line feed in a
cell.

--
Regards,

OssieMac


"Gary Keramidas" wrote:

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but when i
run the code at my client's site, the box is visible?

--


Gary Keramidas
Excel 2003


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default vbcrlf question

will do, tried chr(10) and sent it to them yesterday. have not heard back yet.

--


Gary Keramidas
Excel 2003


"OssieMac" wrote in message
...
Hi Gary,

I am a bit confused by what you mean by a "label in a cell". Do you mean
simply text in a cell where the text is wrapped and includes a line feed? If
so, use vbLf in lieu of vbCrLf. vbLf is the same character that is inserted
when you use Alt/Enter in the interactive mode to insert a line feed in a
cell.

--
Regards,

OssieMac


"Gary Keramidas" wrote:

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but
when i
run the code at my client's site, the box is visible?

--


Gary Keramidas
Excel 2003


.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default vbcrlf question

If you really use vbcrlf in a cell, you should see either:
two boxes (if wordwrap is turned off)
or
a box (vbcr) and a second line (caused by the vblf).

Are you sure you're using vbcrlf?

ps. I don't use a Mac so I don't know how those are treated on that platform.
Are you both using PCs?

Gary Keramidas wrote:

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but when i
run the code at my client's site, the box is visible?

--

Gary Keramidas
Excel 2003


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default vbcrlf question

yes, i'm sure i am using vbcrlf. not using any mac's. i want the text for the label
on 3 lines in the cell, so i used vbcrlf. at my client's site, the label text is on
3 lines, there are just boxes at the end of the first and 2nd line. don't some up on
mine.

i sent them new code yesterday that used chr(10) but have not heard back from them,
to see if it still shows the box. not sure if they are using office xp yet.

--


Gary Keramidas
Excel 2003


"Dave Peterson" wrote in message
...
If you really use vbcrlf in a cell, you should see either:
two boxes (if wordwrap is turned off)
or
a box (vbcr) and a second line (caused by the vblf).

Are you sure you're using vbcrlf?

ps. I don't use a Mac so I don't know how those are treated on that platform.
Are you both using PCs?

Gary Keramidas wrote:

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but
when i
run the code at my client's site, the box is visible?

--

Gary Keramidas
Excel 2003


--

Dave Peterson


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default vbcrlf question

If you used vbcrlf, you should see the box character, too.

And you could use vblf instead of chr(10). That constant is built into excel
and (I think) is easier to read/understand for most people.

Gary Keramidas wrote:

yes, i'm sure i am using vbcrlf. not using any mac's. i want the text for the label
on 3 lines in the cell, so i used vbcrlf. at my client's site, the label text is on
3 lines, there are just boxes at the end of the first and 2nd line. don't some up on
mine.

i sent them new code yesterday that used chr(10) but have not heard back from them,
to see if it still shows the box. not sure if they are using office xp yet.

--

Gary Keramidas
Excel 2003

"Dave Peterson" wrote in message
...
If you really use vbcrlf in a cell, you should see either:
two boxes (if wordwrap is turned off)
or
a box (vbcr) and a second line (caused by the vblf).

Are you sure you're using vbcrlf?

ps. I don't use a Mac so I don't know how those are treated on that platform.
Are you both using PCs?

Gary Keramidas wrote:

i use vbcrlf when i create a label in a cell.
anyone know why i don't see the non-printable character (box) in the cell but
when i
run the code at my client's site, the box is visible?

--

Gary Keramidas
Excel 2003


--

Dave Peterson


--

Dave Peterson
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
using vbCrLf in email body does not work with HTMLBody Tom Joseph Excel Programming 2 May 4th 09 03:24 PM
Textbox linewrap with vbCrLf problem gtslabs Excel Programming 2 March 1st 09 12:39 PM
Deleting a row in a message (opposite to VbCrLf) Wesslan Excel Programming 3 February 14th 08 08:13 PM
VBCRLF not doing anything [email protected] Excel Programming 3 January 16th 07 06:08 PM
square boxes when using vbcrlf Joan[_2_] Excel Programming 5 August 5th 03 05:19 PM


All times are GMT +1. The time now is 05:51 AM.

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"