+ Reply to Thread
Results 1 to 6 of 6

Loop VBA code to create a pricelist based on input values in "Calculator" sheet

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    Hi Everyone,

    Could anyone perhaps guide me on how to loop the below code through a range. I have a calculator sheet, and a price list sheet. What is happening I inserting values into the calculator from the Price list sheet, which gives the price, and in turn I paste it on the appropriate cell in the pricelist, which the code below does, but its only for the first two lines of criteria... I need it to loop through another 800000 lines to complete my pricelist, is this possible?

    Kind Regards
    Duke


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    Try to use this macro, I hope that can help you to fix your problem:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    04-12-2016
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Re: Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    Hi Antonio

    Thank you so much, it seems to be doing the job. Very much appreciated. Will it run the formula until the last row that has data in it, or to the very last row in the sheet at 1048... odd?

    Once again, really appreciate this.

    Kind Regards
    Duke

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    Ther code runs until the last row that found in the sheet 'WiroA3 C100gsm I100gsm 20-22pp ', not until 1048576.

    Regards,
    Antonio

  5. #5
    Registered User
    Join Date
    04-12-2016
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Re: Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    Thanks Antoka05, I have been running it, and it has gone through the night, all of excel goes stagnant, and all I see is a blue round mouse pointer going round and round. I am sure it is working, would it be possible to incorporate a status bar into the code to see how far the progress runs, so that I an be sure that excel has not frozen up?

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Loop VBA code to create a pricelist based on input values in "Calculator" sheet

    You could use this code that shows, on the bottom left of excel, the row and the percentage:
    Please Login or Register  to view this content.
    Regards,
    Antonio

+ 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] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  2. [SOLVED] Code that copies row of data to another sheet based on text "Complete"/"Delete"
    By Dremzy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-20-2014, 05:51 PM
  3. Replies: 2
    Last Post: 04-20-2014, 11:18 AM
  4. PriceList with qty order to copy specific cells to other sheet "PO"
    By Knicknock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2013, 12:35 PM
  5. Replies: 3
    Last Post: 05-31-2013, 05:16 AM
  6. create a "live" input table for product prices from a list of automatic unique values
    By andymcnichol in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-11-2012, 06:13 AM
  7. Enter Data on "Main" or "Input" Sheet and Copy to One of Many Other Sheets
    By timothy_no7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2012, 07:29 PM

Tags for this Thread

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