Results 1 to 6 of 6

Thread: How to auto increment cell value after printing results on each cell VB Excel?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2021
    Posts
    2

    How to auto increment cell value after printing results on each cell VB Excel?

    I have attached two pictures on the link below to describe it more simply.

    https://imgur.com/a/ok50AIU

    We need to find the optimum monthly Cost(cost effective) by changing order quantity and Re-Order points for a warehouse.

    So I created the table on the right hand side and I want write an Excel or VBA function so that

    every cell of the table will look at the order quantity value and Re-order point value from the graph, simulate the monthly cost and then print the coresponding monthly cost in each cell of that table.

    any help would be appreciated.

    Running scenario manager for each case is not practical since I have to set parameters for each case by hand.


    Office 365 English: Windows 10: Excel knowledge: Intermediate

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    7,699

    Re: How to auto increment cell value after printing results on each cell VB Excel?

    good afternoon, CE....

    I believe you are working with VBA, not VB6. Is that true? If so, I will ask a moderator to move this Thread to a different part of this forum (Office Development). There, you will find more people with expertise in VBA and Excel.

    Sammi
    Sam I am (as well as Confused at times).

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    33,211

    Re: How to auto increment cell value after printing results on each cell VB Excel?

    It's already been reported, along with its twin in the .NET area. Should be cleaned up shortly.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    7,699

    Re: How to auto increment cell value after printing results on each cell VB Excel?

    tx tg
    Sam I am (as well as Confused at times).

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,242

    Re: How to auto increment cell value after printing results on each cell VB Excel?

    i am not sure what the printing part in the title refers to

    i can not see from the images how the data is supposed to be related to the order point for each item, i would suggest that a sample workbook (zip first) should be attached to a post here, with a lot more detail of desired results
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2021
    Posts
    2

    Re: How to auto increment cell value after printing results on each cell VB Excel?

    Quote Originally Posted by westconn1 View Post
    i am not sure what the printing part in the title refers to

    i can not see from the images how the data is supposed to be related to the order point for each item, i would suggest that a sample workbook (zip first) should be attached to a post here, with a lot more detail of desired results
    im trying to attach my file here, it does not let me.
    you are right, thats what I meant by printing. printing results into a workbook.

    I tried using Excel Addin Solver. Its nice, but it does not give a ma tri of different results

Posting Permissions

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



Click Here to Expand Forum to Full Width