+ Reply to Thread
Results 1 to 2 of 2

STUCK: Attempting VBA code to provide movement & time to dates to manufacturing process

Hybrid View

J91 STUCK: Attempting VBA code to... 02-04-2025, 08:07 AM
MSDols Re: STUCK: Attempting VBA... 02-06-2025, 02:14 PM
  1. #1
    Registered User
    Join Date
    02-04-2025
    Location
    Sheffield, Uk
    MS-Off Ver
    16
    Posts
    1

    STUCK: Attempting VBA code to provide movement & time to dates to manufacturing process

    Hi all,

    As above, I am attempting to progress the time and date of a cell to another time and date. I'm relatively new to coding and relying on AI to help patch the holes, but I have come to a stopping point.

    Where I2 is the static date, J2 is the result, and K2 is the provided value of time to progress by. The code is actually moving the time on, but getting the code to follow the shift pattern is proving troublesome.

    I was hoping somebody would be able to help tell me what I am doing wrong, adjust the code accordingly or simply let me know if I'm, proverbially, urinating into the wind

    I've added my test sheet to the thread with the shift pattern included in the separate tab. Ultimately, I need the code to apply to all dates in value in I:I, J:J, and K:K correspondingly but I have just been trying to apply the code to the 2nd row to see if it would function correctly.

    Any help you can provide to a newbie would be much appreciated.

    test data.xlsm

  2. #2
    Registered User
    Join Date
    01-25-2025
    Location
    Presov, Slovakia
    MS-Off Ver
    365
    Posts
    101

    Re: STUCK: Attempting VBA code to provide movement & time to dates to manufacturing proces

    Hi J91,

    I fixed a few inconsistencies in your code.
    It works partially.
    Too many more conditions need to be added...

    A possible solution can be found in "Module2" and the "SETUP" sheet.
    The procedure is started by clicking on the cell ">> Onto Line (Base) Act >>".
    Comments can be turned off in the "SETUP!E2" sheet.

    ms
    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. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  2. Attempting to Countifs and Averageifs between two dates
    By maskari100 in forum Excel General
    Replies: 1
    Last Post: 11-07-2014, 02:26 PM
  3. Replies: 0
    Last Post: 07-31-2013, 09:25 AM
  4. Replies: 11
    Last Post: 02-11-2013, 08:10 AM
  5. Stuck with a new Object Creation Process.
    By vikasbhandari in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2007, 06:10 PM
  6. How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 06:06 AM
  7. [SOLVED] How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 02:06 AM

Tags for this Thread

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