Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: data transfer does not match up

  1. #1
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12

    data transfer does not match up

    With userform the criteria is Date and Team Sheet (a or b or c) and either day,afternoon,night or All (all 3 shifts) to have exact match for transfer of data to Group A sheet.....currently it does not place data in Group A correctly....

    This line errors
    Code:
    arrOP_PS(PSCounter, 1) = CDate(Data(CurrentRow, 1)) 'date
    Attached Files Attached Files

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    PFA.
    Attached Files Attached Files
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12
    Thanks Admin

    Works well except it places Planned Stops also in the Machine Stops-external....places Planned Stops correctly at the Planned Stops range but also in the Machine Stops-External range

    Thanks again
    Attached Files Attached Files

  4. #4
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    PFA.
    Attached Files Attached Files
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #5
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12
    Thanks Admin

    Works great...if I want to say just use All and not Day,Afternoon and Night individually what part of the code would I Comment out (just in case I want to use again)....saves deleting this part of the code

    Thanks again

  6. #6
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    It's already considering the shift. See these part of the code

    Code:
    If Shift = "all" Then 'all
        CREATE_OUTPUT i, LB
    ElseIf Data(i, 2) = Shift Then 'match shift
        CREATE_OUTPUT i, LB
    End If
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  7. #7
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12
    Thanks Admin

    As I now transfer all 3 shifts and all 3 Stops everytime which part of the code do I change please?

    I only need the Date and Team groups plus the commandbutton on the Userform as everytime I transfer I will be transferring every shift and every stop so do not need the options to select individually

    Thanks and happy new year

  8. #8
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12
    bump

  9. #9
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    I'm not clearly understand the query ? Can you rephrase the query ?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  10. #10
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    12
    Can the option of selecting Day,Afternoon and Night be removed as I transfer all 3 shifts each time .. I also need the option of Planned Stops,Unplanned Stops Internal and External removed as I want to transfer all 3 each time....I changed the userform to show what I mean...When I select the Userform all I need to select is a Date and a Team.....When a date and Team is selected and I then press transfer button it needs to Transfer All shifts and All Stops for the exact date and team....
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 09-27-2013, 05:47 AM
  2. Replies: 6
    Last Post: 08-25-2013, 12:35 PM
  3. Replies: 7
    Last Post: 07-26-2013, 06:34 PM
  4. How To Move Transfer Or Copy Data To A Protected Sheet
    By rich_cirillo in forum Excel Help
    Replies: 7
    Last Post: 07-13-2013, 06:52 PM
  5. Excel to Excel Data transfer without opening any of the files(source or target)
    By Transformer in forum Excel and VBA Tips and Tricks
    Replies: 14
    Last Post: 08-22-2012, 10:57 AM

Posting Permissions

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