Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link

###Purpose of code

Purpose of code

###Purpose of code

Purpose of code

Bumped by Community user
Bumped by Community user
Tweeted twitter.com/StackCodeReview/status/976374506645282816
just some formatting, trying to get this question back on the active list
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60

I'm on my second revision of this workbook and I've brought the runtimerun-time down from 37 seconds to 9 seconds on my computer and from 30-40 minutes to 8 minutes on my boss's old laptop. I'd like to know if there is anything I can do to further increase the speed of this code that I may have missed. I took 3-4 subs and moved them all into one so the formatting is a bit off in the main but I've brought all the variables to the top. All sub/functions called by the main are included, I believe I have them reasonable optimized but I included them just to be complete.

The purpose of this code isI'd like to create sheets based on codes entered by the user, narrow down a data report using those codes, break out the dataknow if there is anything I can do to individual sheets identified byfurther increase the speed of this code, extract data from the previous report that has a match toI may have missed. I took 3-4 subs and moved them all into one so the formatting is a linebit off in the latest report, movemain but I've brought all the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes), deletevariables to the worksheets containingtop. All sub/functions called by the old datamain are included, and apply row highlight conditional formattingI believe I have them reasonably optimized but I included them just to be complete.

###Purpose of code

  • create sheets based on codes entered by the user,
  • narrow down a data report using those codes,
  • break out the data to individual sheets identified by the code,
  • extract data from the previous report that has a match to a line in the latest report,
  • move the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes),
  • delete the worksheets containing the old data,
  • and apply row highlight conditional formatting.

I'm on my second revision of this workbook and I've brought the runtime down from 37 seconds to 9 seconds on my computer and from 30-40 minutes to 8 minutes on my boss's old laptop. I'd like to know if there is anything I can do to further increase the speed of this code that I may have missed. I took 3-4 subs and moved them all into one so the formatting is a bit off in the main but I've brought all the variables to the top. All sub/functions called by the main are included, I believe I have them reasonable optimized but I included them just to be complete.

The purpose of this code is to create sheets based on codes entered by the user, narrow down a data report using those codes, break out the data to individual sheets identified by the code, extract data from the previous report that has a match to a line in the latest report, move the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes), delete the worksheets containing the old data, and apply row highlight conditional formatting.

I'm on my second revision of this workbook and I've brought the run-time down from 37 seconds to 9 seconds on my computer and from 30-40 minutes to 8 minutes on my boss's old laptop.

I'd like to know if there is anything I can do to further increase the speed of this code that I may have missed. I took 3-4 subs and moved them all into one so the formatting is a bit off in the main but I've brought all the variables to the top. All sub/functions called by the main are included, I believe I have them reasonably optimized but I included them just to be complete.

###Purpose of code

  • create sheets based on codes entered by the user,
  • narrow down a data report using those codes,
  • break out the data to individual sheets identified by the code,
  • extract data from the previous report that has a match to a line in the latest report,
  • move the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes),
  • delete the worksheets containing the old data,
  • and apply row highlight conditional formatting.
Clarified title and body
Source Link
tjb1
  • 171
  • 3

Increasing speed of Excel VBA code used for order report

The purpose of this code is to create sheets based on codes entered by the user, narrow down a data report using those codes, break out the data to individual sheets identified by the code, extract data from the previous report that has a match to a line in the latest report, move the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes), delete the worksheets containing the old data, and apply row highlight conditional formatting.

Increasing speed of Excel VBA code

Increasing speed of Excel VBA code used for order report

The purpose of this code is to create sheets based on codes entered by the user, narrow down a data report using those codes, break out the data to individual sheets identified by the code, extract data from the previous report that has a match to a line in the latest report, move the data on each sheet into date blocks including holdays that are defined on starting sheet (Past Due, Due Today, Due in next X days, Due after next x days, Quotes), delete the worksheets containing the old data, and apply row highlight conditional formatting.

Source Link
tjb1
  • 171
  • 3
Loading
lang-vb

AltStyle によって変換されたページ (->オリジナル) /