LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Odd Error-Any Possible Explanations?

Ed,

What I was referring to was not changing the range description...
Rows("2:4").Delete works the same as Rows("4:2").Delete

But the fact that if you delete rows 2:4 then row 6 becomes row 3.
That is very difficult for any program to track.

Delete the highest numbered row(s) first... row 6 then rows 2:4

Regards,
Jim Cone
San Francisco, CA

"Ed Ardzinski" wrote in message ...
Thanks Jim...

I know that the logic will get screwed up if I start deleting things from
the top down...but does it matter if I code something as

Rows(CStr(nPlans + 1 + 27) + ":54").Select

as opposed to

Rows("54:" + CStr(nPlans + 1 + 27)).Select

???? At this point of the code I was just selecting the rows, but I had
previously had the exact same line of code operate on another sheet and
subsequently do the deletion. So it could be a "confusion" issue...

And yes, I do know that concantenation is "generally" done with an
ampersand. Actually I've used languages where the option to use a plus sign
did not exist. Just a bad habit when doign VB/VBA coding. Heck, I've only
recently become anal regarding indenting, mainly because .NET forces it on a
developer, so I've kind of bent in the wind.

Again, I appreciate the input.

 
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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Mathematical explanations/equations for Excel functions in "Help" mta7000 Excel Worksheet Functions 0 November 4th 05 04:02 AM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


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