PC Review


Reply
Thread Tools Rate Thread

Alphanumeric Recognition

 
 
NewToVB
Guest
Posts: n/a
 
      25th Jan 2008
I'm using Visual Studio/Visual Basic which is very similiar to VBA. I need
for my program to recognize when a cell has 8 alphanumeric characters in
column A, and if it doesn't have 8 alphanumeric characters to delete the
entire row. Any ideas on how to do this? Thanks in advance!
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      25th Jan 2008
You haven't told us much or given us code where we create a solution for you
using your own variable names; so I'll make the assumption that you already
know how to delete a row and are just not sure how to insure your cell's
content is exactly 8 alphanumeric characters.

If Not Text Like Replace(String(8, "Z"), "Z", "[a-zA-Z0-9]") Then
' Text is **not** made up of 8 alphanumeric characters...
' so put your delete row line here
End If

Rick


"NewToVB" <(E-Mail Removed)> wrote in message
news:17A133B3-4A77-4064-BFD8-(E-Mail Removed)...
> I'm using Visual Studio/Visual Basic which is very similiar to VBA. I
> need
> for my program to recognize when a cell has 8 alphanumeric characters in
> column A, and if it doesn't have 8 alphanumeric characters to delete the
> entire row. Any ideas on how to do this? Thanks in advance!


 
Reply With Quote
 
NewToVB
Guest
Posts: n/a
 
      25th Jan 2008
Yes I already know how to delete rows and all, just wasn't sure about the
alphanumeric part, sorry about that. I'll try this thank you!

"Rick Rothstein (MVP - VB)" wrote:

> You haven't told us much or given us code where we create a solution for you
> using your own variable names; so I'll make the assumption that you already
> know how to delete a row and are just not sure how to insure your cell's
> content is exactly 8 alphanumeric characters.
>
> If Not Text Like Replace(String(8, "Z"), "Z", "[a-zA-Z0-9]") Then
> ' Text is **not** made up of 8 alphanumeric characters...
> ' so put your delete row line here
> End If
>
> Rick
>
>
> "NewToVB" <(E-Mail Removed)> wrote in message
> news:17A133B3-4A77-4064-BFD8-(E-Mail Removed)...
> > I'm using Visual Studio/Visual Basic which is very similiar to VBA. I
> > need
> > for my program to recognize when a cell has 8 alphanumeric characters in
> > column A, and if it doesn't have 8 alphanumeric characters to delete the
> > entire row. Any ideas on how to do this? Thanks in advance!

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Alphanumeric Lars-Åke Aspelin Microsoft Excel Worksheet Functions 3 26th Jul 2008 03:58 PM
Changing word recognition in Speech Recognition program. Susan Microsoft Word Document Management 0 22nd Apr 2008 04:20 PM
Vista partition recognition / windows xp partition recognition? jim Windows Vista General Discussion 1 29th Feb 2008 10:04 PM
AlphaNumeric IDs DbMstr Microsoft Access Form Coding 4 7th Jan 2007 01:43 AM
Microphone -- no recognition, no speech recognition tab.. =?Utf-8?B?Q2xpbmNoZXI=?= Windows XP Help 3 24th May 2006 11:44 AM


Features
 

Advertising
 

Newsgroups
 


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