LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 536
Default Code works but goes into endless loop and crashes

On Wednesday, October 9, 2013 12:29:15 AM UTC-7, Claus Busch wrote:
Hi Howard,



Am Wed, 9 Oct 2013 00:20:46 -0700 (PDT) schrieb Howard:



For i = 13 To 6 Step -1


If .Cells(rngPN.Row, i) < "" Then


c.Offset(0, 1) = .Cells(rngPN.Row, i)


Exit For


End If




change it to:

For i = 13 To 8 Step -1

If .Cells(rngPN.Row, i) < "" Then

c.Offset(0, 1) = .Cells(rngPN.Row, i)

Exit For

End If

Next



If all cells have "" then you get no entry





Regards

Claus B.


Works great. Thanks Claus. Appreciate it.

Regards,
Howard
 
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
Endless Loop - Shortcut Key To Stop Code? dim Excel Programming 5 December 31st 07 12:29 AM
endless loop - using input box [email protected] Excel Programming 2 February 8th 07 04:26 AM
Endless loop freddie mac Excel Programming 2 August 1st 06 03:19 PM
endless loop help John Excel Programming 1 October 26th 05 04:51 PM
Endless loop? John Excel Programming 24 August 2nd 05 06:41 PM


All times are GMT +1. The time now is 07:56 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"