Macro Help

T

Theresa

Hi:

I have a macro that was created in Excel 2000. I am now running it in Excel
2007. When I run the macro which opens a file and formats it, I get a debug
error message. Can someone tell me what this code is doing?

Columns("E:E").Select
I = 1
While UCase(Left(Sheets(1).Cells(I, 5).Value, 2)) <> "EA"
I = I + 1
Wend

Any help would be appreciated.
 
S

Sam Wilson

That bit of code is looking down Column 5 (column E) in sheet 1 until it gets
to a cell which doesn't start with the letters "EA"

Presumably something happens after this using the variable I, which will
point to the row after the EAs have finished.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top