+ Reply to Thread
Results 1 to 6 of 6

Help with pricing sheet, previously (solved) but running into error.

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    Vermont
    MS-Off Ver
    Excel 2007
    Posts
    19

    Help with pricing sheet, previously (solved) but running into error.

    Daffodil11 helped me immensely with my project but I am running into a problem!!

    The link with original code is here http://www.excelforum.com/excel-gene...-document.html

    The first code, works fine if the item of my product in the C column starts with a letter. But if it is just a number, then it doesn't work.

    Example: Item number for apples is H6044 that works perfect.
    Item number for grapes is 79662 this does not work.


    The second question I have is he set up PERFECTLY a code that works with the largest account where if I enter prices directly into their acct, it auto populates to the other accts that have the same item number on the different sheets. But when I put that code onto the other sheets and replace the sheet name, it crashes Excel...am I doing this wrong??

    Some accts order items that other accts don't so the more accts I can theoretically enter, the more and more of the sheet will populate.

    Any questions or if I need to attach anythign, just let me know!!
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Help with pricing sheet, previously (solved) but running into error.

    The crash is caused by the echo effect of the changes, which creates an infinite loop. I'd recommend you use a "master sheet" with one of every product and only ever change that one sheet. This would in effect dicate the changes for all sheets.

    As for the number issue, I'll go ahead and investigate. Maybe one of the more senior Excel wizards will come up with a solution prior to myself.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    01-15-2015
    Location
    Vermont
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Help with pricing sheet, previously (solved) but running into error.

    Okay, so my document has 51 separate sheets. I would LOVE to make a master sheet as the sheets are "handed" to me all sepearately. Could I make a new sheet within the document and compile a list without having to cross reference 51 different sheets?

    Edit: I say this because I have to update this document every 3 months and new items are added to the seperate accts quarterly...so if i could somehow run a code or function quarterly as I receive the separate sheets that updates, or even i could create a new master list each time so i don't miss products.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Help with pricing sheet, previously (solved) but running into error.

    Heck yeah.

    This code goes into a module:

    Please Login or Register  to view this content.
    Updated Event Code for Master:
    Please Login or Register  to view this content.
    Finished product attached.
    Attached Files Attached Files
    Last edited by daffodil11; 01-15-2015 at 06:28 PM.

  5. #5
    Registered User
    Join Date
    01-15-2015
    Location
    Vermont
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Help with pricing sheet, previously (solved) but running into error.

    Okay, I actually think we are 95% of the way there.
    I am going to attach my final product so you can take a look at what I am missing/doing wrong.

    I got the Master Listing page all set up and ran the code. Everything looked fine, and I entered all the prices, but when I went to double check the
    individual sheets against the Master Listing, there were products on those sheets that were not on the Master List. Quite a few, both starting with
    letters and with numbers.

    I am not sure if it is because of the description of the item being similar to another item. But it just seems like this is so close!!!!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Help with pricing sheet, previously (solved) but running into error.

    I made some code changes to account for a larger range than anticipated, and also adjust the paste from ranges as well since your lists begin on row 5.

    I also wrote a second tiny macro, that gives everything on your Master Listing a test price so you can double check to see that nothing is being omitted. It takes about 30 seconds to run as each cell population then runs through all worksheets making updates.
    Attached Files Attached Files

+ 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. Dir error 1004. Previously working.
    By CptNoob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2014, 09:45 AM
  2. Replies: 5
    Last Post: 05-29-2014, 08:36 AM
  3. Copy diff cells of a sheet & paste in a NEW row below previously filld rows of other sheet
    By shubhashishdubey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2014, 12:36 AM
  4. Error- Running a Macro on a Protected Sheet
    By nacho in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2007, 08:21 PM
  5. Inventory Pricing - running averages
    By Inventory Question in forum Excel General
    Replies: 2
    Last Post: 01-03-2005, 01:23 PM

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