+ Reply to Thread
Results 1 to 2 of 2

Userform problems - message box + hide/close userform

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    cyprus
    MS-Off Ver
    Microsoft 365
    Posts
    182

    Userform problems - message box + hide/close userform

    in the attached file, I am working on the userform "PANDL" which works pretty good but considering that I have no knowledge in VBA I am stuck with small details/bugs and I really wish someone help me.

    My codes works good when I select a ref in the userform and click on print. This works good.

    However I have some issues when I perform a search/filter.....

    - I open the PANDL useform and then click on the binocular which opens the subform "search_pandl" which allows me to filter the datas based on month/ref/bl date.

    1st problem (stupid one I know but still): I don't know when to unload SEARCH PANDL.....I tried to put it after filter, after getdata nothing does what I want......This userfom is used to input the filter criterias but once the PandL has get the datas for at least the first ref, this search Pand l form should close on the condition of course that it does not loose the criterias of the filter......

    2nd problem: when the REF of the PandL form change, I should:

    If no filter applied, simply get the data for the REF (this is fine)

    however if a filter is applied (= after performing a search_pandl):
    I want for each found ref, get the data (this is ok)
    print automatically the pandL. However before printing it I want to ask the question If I really want to print the pand l for all the ref, If yes, then automatically print them one after the other without asking again


    For the moment below code ask me if I want to print it each time the ref change, I want the question to be asked from the first ref found and then applied automatically for the next ones.....

    Please Login or Register  to view this content.
    can someone have a look at the file, maybe test the code and help me to sort those issues.......I am really sorry but I did all this alone picking there and there codes trying to adapt them but since i have never study VBA .... I am really stuck
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-07-2015
    Location
    cyprus
    MS-Off Ver
    Microsoft 365
    Posts
    182

    Re: Userform problems - message box + hide/close userform

    after one billion test print first / next first, here attached correct file
    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. Replies: 2
    Last Post: 05-24-2016, 05:27 AM
  2. [SOLVED] Timer on userform - run in background if we close the userform
    By nicenari in forum Excel General
    Replies: 6
    Last Post: 06-10-2015, 02:54 PM
  3. [SOLVED] Userform Controls shortcut - close userform by escape key
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2014, 06:23 PM
  4. [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
  5. How to Open 2nd workbook from userform, then close 2nd Userform
    By bigfoot007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 02:03 PM
  6. Hide/Erase the "X" Close Button on UserForm
    By Mike2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2008, 01:48 PM
  7. [SOLVED] UserForm Question:Is it possible to save and close a file via a userform.
    By jer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2005, 08:06 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