#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Macro Help

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Macro Help

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.


"Theresa" wrote:

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.

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 04:20 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"