+ Reply to Thread
Results 1 to 3 of 3

simplify & faster process in marco

  1. #1
    Registered User
    Join Date
    04-03-2015
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    8

    Question simplify & faster process in marco

    Hello,
    just encounter a problem which is the main problem of using macro for a complex situation..is that too many condition and calculation takes too much time..which should be a faq for macro in fact?
    so here's the condition...
    i have a list of pricing data e.g. below

    A B C D E F G H
    cus# | cus name | SKU # | SKU name | available from | available to | price cate | amount |
    1 abc ltd 001 001A 1/1/15 28/02/15 cate A 10

    distributed from column A to H
    and im writing a form to call price summary for a specific sku for all price cate in each date in the date range required

    here is the template for the summary shows how it should looks like..
    Please Login or Register  to view this content.
    and heres the data & condition to call

    Please Login or Register  to view this content.
    above just a demo of how it should call from the source (mysheet) to the objective (newsheet) by meeting condition in AND condition
    1. objective date => mysheet from
    2. objective date <= mysheet to
    3. objective cus = mysheet cus
    4. objective sku = mysheet sku
    5. objective price cate = specific price cate

    the result should look like this..
    date | cus # | cus name | sku # | sku name | cate A | cate B | ...... | cate Z |
    1/1/15 1 abc ltd 001 001A 10 10
    2/1/15 1 abc ltd 001 001A 10 10
    3/1/15 1 abc ltd 001 001A 10 10
    .
    .
    .
    28/2/15 1 abc ltd 001 001A 10 20

    there are around 20 price cate and predictable 3000 lines in raw data
    i've just written code for 2 price cate and find that the process time will be extremely slow while doing for 20 price cate with 7xx lines in raw only..
    i could hardly imagine how many time it will take when reaching 3000 lines..
    i know i didnt do it smartly but is there any way to improve the performance?

    many thanks for your patient & reading
    Attached Files Attached Files
    Last edited by kweep; 04-06-2015 at 12:54 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: simplify & faster process in marco

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-03-2015
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    8

    Re: simplify & faster process in marco

    just done for uploading
    thx for help Orz

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Could anyone help me simplify a very long and drawn out process?
    By Unikron in forum Excel General
    Replies: 13
    Last Post: 11-15-2012, 01:02 PM
  2. Use access to simplify data query process
    By shanea.kr in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-10-2012, 01:48 PM
  3. Replies: 1
    Last Post: 09-20-2011, 11:37 AM
  4. Simplify Long Process Function
    By imav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2011, 02:05 PM
  5. Looking to develop a Macro or Formula to Simplify Daily Process
    By AbrahamRunning in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2009, 07:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1