+ Reply to Thread
Results 1 to 7 of 7

Price Control for Distinct Product Codes

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    6

    Thumbs up Price Control for Distinct Product Codes

    Hello everyone,

    First of all, thanks for all the helpful posts for beginner excel users.

    Here is my problem:

    I am trying to create a macro button which checks whether a price of a product is same for its every other size (S, M, L, XL etc.)

    When I click the macro button (named "Check Prices"), it should check for prices and if it finds a different price for different sizes for the same product, it should prompt the message box: "Please check your prices."

    For example "Product A" has four sizes: S, M, L, XL and all sizes should have the same cost, retail price and sale price.

    I uploaded an attachment to work on it.

    Actually I have tried the code which I created below but I couldn't manage to create a MsgBox if a duplicate value found in a specified range. I am sure there is a better way without creating extra columns etc.

    Please Login or Register  to view this content.
    Aprreciate the help and sorry for basic English.
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Price Control for Distinct Product Codes

    Hi Quanom. Try this (if I understand correctly)
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Price Control for Distinct Product Codes

    nilem The code you provided works like a charm!

    Well it is a little annoying because I strived about three hours for this

    I couldn't even understand most of your code but I am a beginner after all.

    I will try to understand the code later this evening.

    One more question:

    Is there a way to make red colored all of the prices of the wrong priced product? Because one can't know which price is wrong. You have to check them both.

    Thank you very much for the help.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Price Control for Distinct Product Codes

    Quote Originally Posted by quanom View Post
    ...Is there a way to make red colored all of the prices of the wrong priced product?
    try it
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2012
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Price Control for Distinct Product Codes

    New code highlights the different price and the first price (which is at upper row) of the product; not all prices.

    For example;

    IF

    S -> 59 $
    M -> 59 $
    L -> 59 $
    XL -> 69 $

    Then it will highlight the S and XL prices.

    But it is better than the first one for sure.

    Thanks for quick reply man.

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Price Control for Distinct Product Codes

    option number three
    Please Login or Register  to view this content.
    there are simpler options

  7. #7
    Registered User
    Join Date
    09-23-2012
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Price Control for Distinct Product Codes

    Perfect! I hope someone else can utilize this code too.

+ Reply to 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