+ Reply to Thread
Results 1 to 15 of 15

macronot running until userform closes

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    macronot running until userform closes

    Hi all

    i have the following code
    Please Login or Register  to view this content.
    now when i clidk the invoice button the dates and company name go straight to the sheet as it supposed to but....its only when the userform closed that the information of work done during the week gets put on the form and not at the same time as the dates etc. can anyone help please.


    here is the form

    https://www.dropbox.com/s/8dj6ygt7s7...Test.xlsm?dl=0

    the macros work ok on the sheet itself as they are set up differently its just the userform im having issues with

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    Post your file directly into your thread. At the bottom next to the post quick reply button is a Go Advanced button, click on that and then click on the paperclip icon that shows up in the new tool bar.

    View Pic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    file is 3,933Kb its to big to upload thats why i put a drop box link up....its safe

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    Quote Originally Posted by Learning ExL View Post
    file is 3,933Kb its to big to upload thats why i put a drop box link up....its safe
    Well the problem I have with drop box is it wants me to join, not interested. If you can set it up differently so those who want to download it don't have to join drop box, then let me know. I've downloaded files from there before so I don't know if it's a setting on your end or they now only allow members to download.

    Another option I have seen used here is to zip your file and then attach it.

  5. #5
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    Quote Originally Posted by Learning ExL View Post
    file is 3,933Kb its to big to upload thats why i put a drop box link up....its safe
    i think thats worked
    Attached Files Attached Files

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    Quote Originally Posted by Learning ExL View Post
    i think thats worked
    It did and I apologize because I went back to drop box to look around and there was an option there to not sign up and just download the file.

  7. #7
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    Quote Originally Posted by skywriter View Post
    It did and I apologize because I went back to drop box to look around and there was an option there to not sign up and just download the file.
    lol accepted

  8. #8
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    Can you help me recreate the issue? Which buttons, form, data etc to enter and what you want it to do.

  9. #9
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    on the userform just use the date as 22/05/2015 and 28/05/2015

    on the sheet use the same but in both sets of boxes on the right

  10. #10
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    Replace your existing code with this:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    Quote Originally Posted by skywriter View Post
    Replace your existing code with this:

    Please Login or Register  to view this content.
    The will not make the user form disappear will it as when this whole workbook is done no one will see the sheets just the userform

  12. #12
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    The whole workbook will he hidden and just the userform will be open

  13. #13
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    You can remove the hide statement at the top and the unload statement at the bottom.

    The real problem is you have disabled Screen Updating so the screen updating true is the only line you need and you should be fine.

  14. #14
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: macronot running until userform closes

    Quote Originally Posted by skywriter View Post
    You can remove the hide statement at the top and the unload statement at the bottom.

    The real problem is you have disabled Screen Updating so the screen updating true is the only line you need and you should be fine.
    you my friend are a Geneus (cant spell for toffee lol) it worked thank you

  15. #15
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: macronot running until userform closes

    My pleasure, thanks for the feedback.


    If your original request is fulfilled please click the Thread Tools drop down box above your first post and choose solved.


    If you are happy with my help, please consider clicking the add reputation button in the lower left hand corner of this post.

+ 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. UserForm not running
    By jstoler in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2013, 02:18 AM
  2. [SOLVED] Combo Box additions not showing until after Userform closes and is reopened.
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-20-2012, 03:18 PM
  3. [SOLVED] message box pop up within userform, clicking ok closes userform
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2012, 12:10 PM
  4. VBA in Word opens, closes Excel app but process still running in Task Manager
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 02-16-2011, 09:10 AM
  5. Error occurs, excel closes when running macro?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2008, 06:45 AM

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