Closed Thread
Results 1 to 3 of 3

Select Case Statements

  1. #1
    Registered User
    Join Date
    03-16-2008
    Posts
    3

    Select Case Statements

    Please read forum rules - You must add the link to the cross post

    So, it seems that i have a problem with this code. I am trying to get a information from one column to match it with another column to get me a result.

    For example,

    I have a Cake on Range("D5") and From Range("B5:B19") i have a cake that consist of 5 cakes. So i want to put that value 5 into Range("E5")

    B5 Cake
    B6 Cake
    B7 Cake
    B8 Cake
    B9 Cake
    B10 Muffin
    B11 Muffin
    B12 Bread
    B13,B14..... etc

    D5 Cake

    E5 5

    So, I am requesting how many Cakes are there from B5:B19, And D5 is the name # of Cake, So E5 i put 5

    Please Login or Register  to view this content.
    or can someone give me some one on one help at AIM- ladeda063610
    Last edited by VBA Noob; 04-06-2008 at 02:50 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you want to count the number o items that code makes no sense at all. I would look at using a PivotTable.

    Post the link to the other post as requested and don't ask for one to one help, this is a Public Forum if you bother to read the Rules you will see what I mean!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    This user has had a temporary Ban at VBAX please do not reply to any further threads.
    Thread Closed!
    Not all forums are the same - seek and you shall find

Closed Thread

Thread Information

Users Browsing this Thread

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

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