LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Making the macro's execution faster

I would like to know if there is a way to make my macro's execution faster.
It follows that during its execution I work in 2 different worksheets in
parallel. So it shows me in the screen each active sheet every line the macro
runs. I tried occulting the sheets (in which the macro works) but then the
macro did not run. Is there a way to occult the sheet without having problem
with its exectuion?

Is there any other way to make it faster?

I built the simple following macro just to illustrate the problem.

Thanks in advance. I really appreciate any tip or attempt.

Daniel (Brazil)

Sub Macro1()
'
Sheets("Plan1").Select
Range("a1").Select
Range("a1") = "1"
Sheets("Plan2").Select
Range("a1").Select
Range("a1") = "1"
Sheets("Plan1").Select
cont = 0

For a = 1 To 500
ActiveCell = Cells(1, 1).Value + cont
ActiveCell.Offset(1, 0).Select
Sheets("Plan2").Select
ActiveCell = Cells(1, 1).Value + cont
ActiveCell.Offset(1, 0).Select
Sheets("Plan1").Select
cont = cont + 1
Next a

End Sub


 
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
Making a spreadsheet calculate faster EricK Excel Discussion (Misc queries) 4 August 15th 07 10:08 PM
Making Windows XP Start 60% Faster Stranger Excel Discussion (Misc queries) 1 May 16th 07 10:06 PM
Macro finishes faster when left clicking during execution Martin[_21_] Excel Programming 1 January 10th 06 10:46 AM
Fetching a VBA Macro's Name During Execution SidBord Excel Programming 4 April 17th 04 07:56 PM
making macro run faster? goorooj Excel Programming 5 February 19th 04 04:16 PM


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