+ Reply to Thread
Results 1 to 7 of 7

Userform - integrating code from old form into new template, timestamp, ID No etc

  1. #1
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    Userform - integrating code from old form into new template, timestamp, ID No etc

    Hi,

    I'm trying to combine a form template (which has working back and forwards controls) with my functioning existing form. Some of the controls are not working however, mainly:

    (1) The ID number in Column A - incrementally increasing by 1 -eg 1,2,3...

    (2) The time stamp to appear in column B

    My original functioning timestamp code (below) is inputting the timestamp into column C, but I would like for it to appear in Column B.

    Please Login or Register  to view this content.
    (3) the date column D is not displaying the selected calendar dates

    (4) the original VLookup for employee name and employee no, and the department according to the team leader name.

    Please Login or Register  to view this content.
    If even if only one of these issues can be fixed I'd appreciate it.

    By the way, this is where I've got the template from: http://www.myonlinetraininghub.com/e...t-update-delet

    Thanks
    Attached Files Attached Files
    Last edited by excelconditional; 05-27-2017 at 02:34 AM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    Thank you, Mehmetcik, the ammended timestamp code works. So that's point (2) crossed off the list

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    I would have thought issue 1 was resolved too.

  5. #5
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    Quote Originally Posted by mehmetcik View Post
    I would have thought issue 1 was resolved too.
    Yes, Mehmetcik, it appears it is now . So issues (3) and (4) left.

  6. #6
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    Hello,do you think you can help me figure out why I'm getting run time errors now?...I've gone through each property name and there doesn't seem to be an issue there...

    I've reattached the file..
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform - integrating code from old form into new template, timestamp, ID No etc

    I tried stepping through your code and believe me it is horrendous.

    If you have a lot of worksheet Specific macros then you need to be a bit cuter when you make changes to your worksheet.

    Presently your macro makes a change
    Which kicks of a sheet specific macro
    Which makes a change
    Which kicks of a sheet specific macro
    Which makes a change ad infinitum.


    So you need to control what macros are started when your macro is running.

    Use

    Please Login or Register  to view this content.
    To stop macros being kicked off

    Please Login or Register  to view this content.
    To restart Macros.

+ 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. date format code for multiple userform textboxes on form initialize
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2017, 05:30 AM
  2. [SOLVED] Icon in userform - do I have to copy code into every form?
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2014, 10:48 AM
  3. Replies: 1
    Last Post: 08-12-2014, 03:05 AM
  4. [SOLVED] Is there a way to rewrite this code for a UserForm in loop form?
    By bananajelly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2014, 01:21 PM
  5. Integrating leave blank cell if error into existing code
    By WinningKing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2014, 12:12 AM
  6. [SOLVED] Userform for combolist/timestamp and commments code
    By nmckever in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2012, 02:33 AM
  7. Integrating Solver add-in, using VBA code
    By salilcheeran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2011, 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