Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Column Cell character number checking

Hi all,

How can I check the number of the characters at the specified column of
whole cells? (by using Macro)

e.g.
1) Prompt the message box to select range of columns to check.

2) input the several columns would be check

3) Macro will check all the cells of the relative columns for example, the
number character (including "Spaces" and "symbols")

4) Highlight the excess number of characters cells or activate (let the user
tor re-change the content of the problem cell to below the limit of
character length)

Assume the cell character length is 20.

Thanks for your help.

TLee


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Column Cell character number checking

something simple ... this code assumes the area has been selected

dim cell as range
dim source as range
set source = Selection
for each cell in source
if LEN(cell.Value)20 then
cell.interior.ColorIndex = XLRED
end if
next

"tlee" wrote in message
...
Hi all,

How can I check the number of the characters at the specified column of
whole cells? (by using Macro)

e.g.
1) Prompt the message box to select range of columns to check.

2) input the several columns would be check

3) Macro will check all the cells of the relative columns for example, the
number character (including "Spaces" and "symbols")

4) Highlight the excess number of characters cells or activate (let the
user tor re-change the content of the problem cell to below the limit of
character length)

Assume the cell character length is 20.

Thanks for your help.

TLee


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Column Cell character number checking

Hi Patrick,

Thanks for your help, you are so powerful !!!
How you enrich the programming knowledge?

Thanks again

TLee



dim cell as range
dim source as range
set source = Selection
for each cell in source
if LEN(cell.Value)20 then
cell.interior.ColorIndex = XLRED
end if
next

"tlee" wrote in message
...
Hi all,

How can I check the number of the characters at the specified column of
whole cells? (by using Macro)

e.g.
1) Prompt the message box to select range of columns to check.

2) input the several columns would be check

3) Macro will check all the cells of the relative columns for example,
the number character (including "Spaces" and "symbols")

4) Highlight the excess number of characters cells or activate (let the
user tor re-change the content of the problem cell to below the limit of
character length)

Assume the cell character length is 20.

Thanks for your help.

TLee


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Column Cell character number checking

shucks, blush

thank you

"tlee" wrote in message
...
Hi Patrick,

Thanks for your help, you are so powerful !!!
How you enrich the programming knowledge?

Thanks again

TLee



dim cell as range
dim source as range
set source = Selection
for each cell in source
if LEN(cell.Value)20 then
cell.interior.ColorIndex = XLRED
end if
next

"tlee" wrote in message
...
Hi all,

How can I check the number of the characters at the specified column of
whole cells? (by using Macro)

e.g.
1) Prompt the message box to select range of columns to check.

2) input the several columns would be check

3) Macro will check all the cells of the relative columns for example,
the number character (including "Spaces" and "symbols")

4) Highlight the excess number of characters cells or activate (let the
user tor re-change the content of the problem cell to below the limit of
character length)

Assume the cell character length is 20.

Thanks for your help.

TLee


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Column Cell character number checking

Hi Patrick,

You're so modest : )

TLee

shucks, blush

thank you

"tlee" wrote in message
...
Hi Patrick,

Thanks for your help, you are so powerful !!!
How you enrich the programming knowledge?

Thanks again

TLee



dim cell as range
dim source as range
set source = Selection
for each cell in source
if LEN(cell.Value)20 then
cell.interior.ColorIndex = XLRED
end if
next

"tlee" wrote in message
...
Hi all,

How can I check the number of the characters at the specified column
of whole cells? (by using Macro)

e.g.
1) Prompt the message box to select range of columns to check.

2) input the several columns would be check

3) Macro will check all the cells of the relative columns for example,
the number character (including "Spaces" and "symbols")

4) Highlight the excess number of characters cells or activate (let the
user tor re-change the content of the problem cell to below the limit
of character length)

Assume the cell character length is 20.

Thanks for your help.

TLee


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
Checking one cell, if number is a range then this Jenn Excel Worksheet Functions 4 September 3rd 09 06:21 PM
checking the content of a cell if it starts with certain character Timur Excel Programming 2 August 1st 07 01:26 PM
Checking if a number appears within a cell moonrabbit Excel Discussion (Misc queries) 3 May 4th 06 06:38 PM
Checking cell for Number Lee New Users to Excel 2 October 11th 05 09:23 PM
Checking the last character is in a list [email protected] Excel Programming 2 August 18th 03 11:37 AM


All times are GMT +1. The time now is 01:37 PM.

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"