Hi, I am trying to run a macro in excel 2013 but it is very slow. It runs way faster (30 secs) on my PC with Excel 2007 but takes around 10 mins to run on my dell latitude i5 8GB ram laptop. Everything works fine except a code which is adding sheets. Excel 2013 hangs while adding sheets in a loop (For lp = 1 To r2 Step 1
Sheets.Add(After:=Sheets(Sheets.Count)).Name = Worksheets("Opportunity Owners").Cells(lp, 1).Text
Application.Wait (Now + TimeValue("0:00:05"))
Next lp). Please let me what are the possible solutions. Thanks in advance!
![]()
Please Login or Register to view this content.
Bookmarks