PC Review


Reply
Thread Tools Rate Thread

Deleting a row where characters 34, 35, 36 are 000

 
 
New Member
Join Date: Jul 2011
Posts: 1
 
      20th Jul 2011
Hi, I'm doing work experience with no experience in excel VBA and I've been asked to write the code for the following purpose:I have a list of files and within a macro, not starting a new one, i have to delete or not include the files where the 34th, 35th and 36th character of each row = 000 using a button already created.Do you know the code that i can include in a macro to do this? Thanks.
 
Reply With Quote
 
 
 
 
New Member
Join Date: Jul 2011
Posts: 20
 
      21st Jul 2011
You can check a cell's value for that condition by using code like:

For Each myC In Range("A2",Cells(Rows.Count,1).End(xlUp))
If Mid(myC.Value,34,3)="000" Then myC.ClearContents
Next myC

This example will check a list in column A, starting in row 2, but, overall, you question is way too vague to offer more meaningful help. If you post the code that you already have....

Bernie
 
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
Deleting the first 2 characters =?Utf-8?B?TnlsYSBL?= Microsoft Access Queries 2 20th Jul 2007 07:28 PM
Deleting Characters =?Utf-8?B?VmlubnkwMTI4?= Microsoft Excel Misc 2 7th May 2007 03:19 AM
deleting characters PLPE Microsoft Excel Programming 4 7th Jul 2005 02:03 PM
Deleting characters Blair Microsoft Word Document Management 2 10th Jul 2004 03:53 PM
Deleting Characters =?Utf-8?B?Q2F0aHk=?= Microsoft Excel Worksheet Functions 7 9th Apr 2004 10:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.