Hi. I'm totally new here, but have used this forum in the past to help answer numerous questions. I've got an interesting problem that I'm hoping someone can help me with.
I've developed a rather large macro driven Excel tool and am now at the point where I'm trying to optimize some of my somewhat poorly written code. While time-testing one of my macros, I noticed that this particular line of code is particularly time consuming. It takes 2.5 s on my computer just to run this single line. If I remove the "+ 1" from the r.Rows.Count then the time drops to 0.05 s. Is this a really inefficient way of adding a row to a named range? Can anyone suggest a faster way to accomplish the same thing?
PHP Code:
Names("DevelopmentPlan").RefersTo = "=" & r.Resize(r.Rows.Count + 1, r.Columns.Count).Address
Where, r = Range("DevelopmentPlan")
Bookmarks