LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Vba code meaning

Yes. I appreciate your help, thanks a lot

"Ron Coderre" wrote:

That code

'Record the last row number where the Col_A value is not blank
LastRow = Range("A65536").End(xlUp).Row

Loop backwards up the rows, starting with that row, decrementing by 1
For i = LastRow To 2 Step -1

'If the value of the referenced cell in Col_A does not match the cell
above it...
If Range("A" & i).Value < _
Range("A" & i - 1).Value Then

'Insert a row
Range("A" & i).EntireRow.Insert
End If

'Assuming this code is in there somewhere
Next i

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"andresg1975" wrote:

Can someone tell me what is the meaning if this code

LastRow = Range("A65536").End(xlUp).Row
For i = LastRow To 2 Step -1
If Range("A" & i).Value < _
Range("A" & i - 1).Value Then
Range("A" & i).EntireRow.Insert
End If


thanks a lot







 
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
meaning of E in y=3E-.05x^3 Garland Charts and Charting in Excel 2 April 4th 23 12:44 PM
what is the meaning of <? bitwhite Excel Worksheet Functions 3 July 13th 09 04:02 PM
meaning of ######### dick Excel Discussion (Misc queries) 2 January 10th 06 01:28 PM
meaning of -- in the formulas max Excel Worksheet Functions 3 January 24th 05 03:15 PM
Meaning of simple code courtesio99[_7_] Excel Programming 2 December 12th 03 08:38 AM


All times are GMT +1. The time now is 06:11 PM.

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"