Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Can A Macro Help Me?

Excellent. To be more specific, what I need to do is thus:

1. I have one file in which one column contains a list of Charge Codes
("codes"). For each of these codes, I need to locate that code within a
different file.
2. Each code has its own row of information. Once the code is located, there
are three conditions that I need to test for. First, I need to ensure that a
certain field in that row contains a certain letter (ie. A, not I). Second, I
need to verify that another certain field within that row contains a date
that is not in the past (ie. is after today). Lastly, I need to verify that
another field within that row contains one of three possible entries (ie.
says 123, 234, or 345 only).
3. I need some way of knowing which codes fail the above tests, possibly by
changing the cell/row's color, etc.

It seems that having two seperate files may complicate this process, in
which case I can easily copy the column of codes to be test from the first
file into the second. A second possible complication is that for each code
that I test (which comes from the first file), there will be a couple of rows
within the second file that have the same code, but differ in other fields,
and need to be tested. To put it another way, I need to run the test on every
instance of the code within the second file, not just the first instance.

Thank you in advance for your help!



"Jacob Skaria" wrote:

Definitely YES. Reply with more details so that someone here would help you.
If you have a code which you have already written post that too....

If this post helps click Yes
---------------
Jacob Skaria


"asmith87" wrote:

I've been given an assignment that I think an Excel Macro can help me with,
but I'm not sure. Here's what I need to do:

I need to search within the file for a certain code (to be located in a
certain column in the file), and once I've found that code I need to verify
that the information in the code's corresponding row meets a few certain
requirements (ie. a specific cell reads "A" not "I"). I need to do this for
1000+ codes, and be able to tell which codes do and which codes do not meet
the specified requirements.

Appreciate any input, anything from feasibility to suggested methods. Thank
you!

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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro to copy and paste values (columns)I have a macro file built C02C04 Excel Programming 2 May 2nd 08 01:51 PM
AutoRun Macro with a delay to give user the choice to cancel the macro wanderlust Excel Programming 2 September 28th 07 04:09 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 12:34 AM.

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

About Us

"It's about Microsoft Excel"