Consulting

Results 1 to 5 of 5

Thread: Array help

  1. #1

    Array help

    Can someone look at this array program tell me what I am doing wrong.
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It would help if yo told us what was supposed to happen, and what does/does not happen.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    It is supppose to look up the part numbers on one sheet and the fill in the other sheet. ie if you buy 25 products of one thing then it will fill in the total the discount and so on.

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]'Count the number of parts and redim the arrays
    With Sheets("Sheet 3").Range("A1")
    'and
    'Display information on sales sheet
    Worksheets("Sheet 2").Range("B1").Value = Requestedcode[/VBA]

    Consider using a Userform with a Combobox for your Part Numbers and a Textbox for Quantities. Easier to use and looks better.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Here's a very basic Userform example
    Attached Files Attached Files
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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