Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default MACRO BASED ON A NUMBER OF CHARACTERS

I have the following code in a macro and it works fine. The format of my
original report changed, so i need the macro to do pick up data where
certain criteria are met.


If Range("Salesp") < "" Then Call XXXXXX

I want this line to keep looping if the amount of characters is above a
certain number. in other words, this will keep going until it hits a cell
with 10 characters or more and then it will call the other macro.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default MACRO BASED ON A NUMBER OF CHARACTERS

If Len(Range("Salesp")) 10 Then Call XXXXXX

Regards,
Per

"JOSEPH WEBER" skrev i meddelelsen
...
I have the following code in a macro and it works fine. The format of my
original report changed, so i need the macro to do pick up data where
certain criteria are met.


If Range("Salesp") < "" Then Call XXXXXX

I want this line to keep looping if the amount of characters is above a
certain number. in other words, this will keep going until it hits a cell
with 10 characters or more and then it will call the other macro.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default MACRO BASED ON A NUMBER OF CHARACTERS

On May 5, 10:36*pm, "Per Jessen" wrote:
If Len(Range("Salesp")) 10 Then Call XXXXXX

Regards,
Per

"JOSEPH WEBER" skrev i ...



I have the following code in a macro and it works fine. The format of my
original *report changed, so i need the macro to do pick up data where
certain criteria are met.


If Range("Salesp") < "" Then Call XXXXXX


I want this line to keep looping if the amount of characters is above a
certain number. in other words, this will keep going until it hits a cell
with 10 characters or more and then it will call the other macro.- Hide quoted text -


- Show quoted text -


If the number 10 changes due to format change then you need recoding.
Better use Constant

Const ct as Integer=10

If Len(Range("Salesp")) ct Then Call XXXXXX
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
return value based on number of characters in cell / field Perplexed Excel Worksheet Functions 4 December 10th 08 08:48 PM
move data based on number of characters in a cell aileen Excel Programming 10 October 16th 08 08:53 PM
Deleting rows based on number of characters catalfamo1220 Excel Discussion (Misc queries) 3 July 20th 06 06:31 PM
Split field based on number of characters and space william_mailer Excel Worksheet Functions 6 February 10th 06 01:26 AM
Split field based on number of characters and space william_mailer Excel Programming 6 February 8th 06 05:22 PM


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