Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Why would 1 excel PC understand chr(13) and anoughter wouldn't?

I have created a textbox within a Userform within excel.
Within the code I used the code for a carriage return "chr(13)".

My PC likes this code and everything runs fine, but other PC's do not
understand it and refuse to run the code?

Why? We are all using the same OS and the same version of Excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Why would 1 excel PC understand chr(13) and anoughter wouldn't?

On Nov 22, 1:57 pm, thefirstcybot
wrote:
I have created a textbox within a Userform within excel.
Within the code I used the code for a carriage return "chr(13)".

My PC likes this code and everything runs fine, but other PC's do not
understand it and refuse to run the code?

Why? We are all using the same OS and the same version of Excel?


Seems a bit strange ... try using vbCrLf instead of chr(13) and see if
that works.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Why would 1 excel PC understand chr(13) and anoughter wouldn't?

Are you using the code from the same workbook or merely identical copies of
the same code. If the latter, my guess is the textbox's MultiLine property
is true in one wb & false in the other, and/or similar with WordWrap.

Regards,
Peter T

"thefirstcybot" wrote in message
...
I have created a textbox within a Userform within excel.
Within the code I used the code for a carriage return "chr(13)".

My PC likes this code and everything runs fine, but other PC's do not
understand it and refuse to run the code?

Why? We are all using the same OS and the same version of Excel?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Why would 1 excel PC understand chr(13) and anoughter wouldn't?

It possibly is not the Chr(13) at all. One thing to check on the machines
that have the problem is look for missing refernces. In the VBE select
Tools|Refernces and look for anything that starts with Missing:
--
HTH...

Jim Thomlinson


"thefirstcybot" wrote:

I have created a textbox within a Userform within excel.
Within the code I used the code for a carriage return "chr(13)".

My PC likes this code and everything runs fine, but other PC's do not
understand it and refuse to run the code?

Why? We are all using the same OS and the same version of Excel?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Why would 1 excel PC understand chr(13) and anoughter wouldn't?

99% sure that this is caused by a missing reference as explained by Jim T.

RBS


"thefirstcybot" wrote in message
...
I have created a textbox within a Userform within excel.
Within the code I used the code for a carriage return "chr(13)".

My PC likes this code and everything runs fine, but other PC's do not
understand it and refuse to run the code?

Why? We are all using the same OS and the same version of Excel?


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
Why doesn't Excel understand what 'Manual' for Calculations? msnyc07 Excel Discussion (Misc queries) 4 February 4th 10 10:24 PM
Does Excel understand Latitude and Longitude (GPS) co-ordinates? Simpson Excel Discussion (Misc queries) 2 February 28th 07 07:47 PM
Making Excel understand the diffrence in capitialization? [email protected] Excel Programming 8 February 13th 07 03:54 AM
How many workbooks and worksheets can Excel understand? Mike Excel Discussion (Misc queries) 1 February 10th 06 01:58 PM
I don't Understand elusiverunner Excel Worksheet Functions 6 November 25th 05 09:19 PM


All times are GMT +1. The time now is 02:46 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"