+ Reply to Thread
Results 1 to 6 of 6

purchase order error

  1. #1
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690

    purchase order error

    hi guys

    i have a problem in that this purchase order works perfectly except for one very small thing i cant get my head round

    it prints as it should , it saves as it should but

    when the macro runs it also transfers certain cell data to sheet 2
    there is not a problem if i enter a job number ie j2345 but not all purchase orders are assigned a j number
    this is in cell g23:h24

    if i stick to j numbers it transfers fine but if i put the word sttock into it , it causes problems on sheet 2 and i dont understand why.
    if any one understands why i would appreciate it
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You are creating potential problems by using Merged cells.

    Your Select case isn't correct, try

    Please Login or Register  to view this content.
    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 Contributor
    Join Date
    06-23-2007
    Posts
    690
    hi roy thanks for the reply

    thats the save destination
    and it saves where i want it to

    but the problem i have is if i put the word stock in to that cell

    it causes the transfer to sheet 2 to go awry

    try it with 2 or 3 normal ones ie j2345
    then check sheet 2 you will see they list

    then try putting the word stock in and you will see the problem

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Which macro is causing the problem? I can't test properly because it requires the destination folder.

    You declare variables like JOBNUMBER, but I can't see where you set them to a range. You also have Named Ranges such as JOBNUMBER.

  5. #5
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    hi roy
    i have to admit i have been dependant on the code

    the save to a specific folder code was made by one person
    and the transfer data to sheet 2 was another person

    it only causes a problem when i enter stock into the cell and want it to transfer to the second sheet

    the save to a specific folder is fine

    its the transfer to 2nd sheet thats aproblem

  6. #6
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    bump bump bump
    anyone please

+ 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