Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Restricting Characters in a cell.

How would I restrict a column to show only 90 characters; even though you may
have 200 characters downloaded from another dbase?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Restricting Characters in a cell.

the first step would be

columns(6).ColumnWidth = 90

Then you would need something in each cell in the adjacent column on the
right.

--
Regards,
Tom Ogilvy



"R Bitterman" <R wrote in message
...
How would I restrict a column to show only 90 characters; even though you

may
have 200 characters downloaded from another dbase?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Restricting Characters in a cell.

Thanks Tom, but I can only show a maximum of 90 characters of data regardless
of how many characters are downloaded. Our customer then takes the file &
downloads the information into their system. An error message comes back if
their are more than 90 characters.
Ramona

"Tom Ogilvy" wrote:

the first step would be

columns(6).ColumnWidth = 90

Then you would need something in each cell in the adjacent column on the
right.

--
Regards,
Tom Ogilvy



"R Bitterman" <R wrote in message
...
How would I restrict a column to show only 90 characters; even though you

may
have 200 characters downloaded from another dbase?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Restricting Characters in a cell.

Then you would have to write a macro to remove the excess characters

for each cell in selection
if len(cell) 90 then
cell.Value = left(cell,90)
end if
Next

--
Regards,
Tom Ogilvy
"R Bitterman" wrote in message
...
Thanks Tom, but I can only show a maximum of 90 characters of data

regardless
of how many characters are downloaded. Our customer then takes the file &
downloads the information into their system. An error message comes back

if
their are more than 90 characters.
Ramona

"Tom Ogilvy" wrote:

the first step would be

columns(6).ColumnWidth = 90

Then you would need something in each cell in the adjacent column on

the
right.

--
Regards,
Tom Ogilvy



"R Bitterman" <R wrote in message
...
How would I restrict a column to show only 90 characters; even though

you
may
have 200 characters downloaded from another dbase?






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
Restricting Number of characters in a cell Colin Hayes Excel Worksheet Functions 9 September 11th 09 01:45 PM
Restricting cell selection Jemwig Excel Discussion (Misc queries) 3 March 16th 09 03:27 PM
Restricting Characters within a User Form DarnTootn Excel Discussion (Misc queries) 3 December 10th 08 10:45 PM
restricting use of certain characters Rob Excel Discussion (Misc queries) 4 June 8th 06 01:07 AM
Restricting Cell Format zhj23 Excel Discussion (Misc queries) 3 August 27th 05 02:53 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"