How to Run UserForm without Showing Excel Window

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 65

  • @limitone9564
    @limitone9564 2 года назад +5

    I don't think this tutorial is complete... so the user clicks the close button then excel shows up? Does not make sense, it should also close the excel. I was also going to ask... if I'm the coder how do I get back to the developer side if excel closes when we hit the close button.

    • @thedatalabs
      @thedatalabs  2 года назад +9

      Thanks for your feedback!
      With the help of current code, you can come to Excel application and do other works if required. This suits both User and Developer if other works required in same workbook.
      If you want to close the Excel Application along with Userform then remove the two lines existing VBA code and add four lines of new code in UserForm QueryClose sub procedure. So the new code would be:
      Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
      Application.DisplayAlert=False
      Unload Me
      Thisworkbook.close Save changes:=True
      Application.DisplayAlert=True
      End Sub
      Let me know if you have any questions. Thanks!

    • @juantoknow
      @juantoknow 2 года назад +2

      I have done this last year..
      Here is the blue print.
      Upon opening the file. If there are other file were opened. The system promt the user if he continue to use the file(1. all excel file will be hidden) else user must close other files before opening.
      On the vba form, I put a command(label) for the developer use. And I put a code on the form/command if the form close ❎ then (2. All other excel file will be shown. Hope it helps guys.

    • @AttackOnTyler
      @AttackOnTyler Год назад

      ​@TheDataLabs this creates a memory leak where the only way to close to application is to end Excel in task manager. Also because the code is being ran from thisworkbook, display alerts = true never fires due to the workbook closing before the code can be called. Also Also, if the user doesn't close the app instance using task manager, when they open a workbook, it will bind to the existing instance in memory which has had its visibility set to false. Emails and zoom calls abound

    • @hinafathima284
      @hinafathima284 Год назад

      @@thedatalabs hi sir i have some error while closing the userform along with excel application

    • @dragosmilea9691
      @dragosmilea9691 10 месяцев назад

      ​@thedatalabs thanks for this answer. I was looking for the same solution. On the same note, if the developer will ever want to open the application to do some work in the excel spreadsheet, can you please advise how this will be possible?
      Thanks in advance!

  • @khaledmezghani3701
    @khaledmezghani3701 2 года назад +3

    Thanks for this tutorial :)
    can we apply this trick on only one specific workbook.
    i.e. when I try to do what you did in this video, all other open Excel workbooks become invisible. I want a specific workbook to become invisible and the others visible as usual
    Thanks in advance

  • @culea0alex
    @culea0alex 2 года назад

    Holly cow, this works and it's so cool. TY very much.

  • @Maclan_0709
    @Maclan_0709 2 года назад +1

    Thanks for this greate vba turorial. Do you have a tutorial how to create this form?

    • @thedatalabs
      @thedatalabs  2 года назад +1

      This form is from Inventory Management System! We are working on that and we will post an end to end tutorial on that. Please keep watching. Thanks!

    • @Maclan_0709
      @Maclan_0709 2 года назад

      @@thedatalabs It's noted, thanks a lot❤

    • @saji4385
      @saji4385 2 года назад

      @@thedatalabs sir, is this video tutorial already posted. I am waiting to for it

  • @sachkum
    @sachkum 2 года назад

    These tutorials are very useful. I would like to know how can we create a similar data entry form where multiple users can enter data on a shared drive location simultaneously. Every user should be able to see only his data (that he has entered) on the forms list box & not other users data. Also, if the user wishes to download his data, he gets a link label option to download the data to a new excel file. Please can you create a video for performing this activity.

  • @ahmedabbas7844
    @ahmedabbas7844 2 года назад +1

    Thanks for your help 😃☺️

  • @querrythis
    @querrythis 2 года назад

    Fit me needs perfectly. Thanks

  • @AjaySharma-em2ez
    @AjaySharma-em2ez 2 года назад

    Thank you sir, for sharing this great work sir. thank you sir.

  • @3pehrs
    @3pehrs 2 года назад

    it is totally helpful and inspiring 😊 thanks 👍

  • @ramgella1205
    @ramgella1205 2 года назад

    Thanks Sir this help me a lot

    • @ramgella1205
      @ramgella1205 2 года назад +1

      Sir are you going to download how you create this userform?

  • @satishdeshpande1336
    @satishdeshpande1336 2 года назад

    Dear sir..
    When the application is hide behind userform.. is it possible to trigger to print specific sheet from button created on userform..
    I mean to make PDF for specific sheet....?
    Waiting you genuine reply...👍

    • @thedatalabs
      @thedatalabs  2 года назад

      Yes, you can perform all the task as Excel is running in background. Thanks!

  • @affiliateme7414
    @affiliateme7414 2 года назад

    is the floating window type of thing possible with google sheets?

  • @edtardaguila3599
    @edtardaguila3599 2 года назад +1

    the problem with this code is that if you have multiple excel files opened all of them will be hidden. is there a way that the file which the userform resides will be hidden once you run the code?

  • @imrandaud478
    @imrandaud478 Год назад

    Wonderful ❤

  • @daroodurmul5789
    @daroodurmul5789 2 года назад

    excellent job....but how we start user form ...I made a form everything is ok..but when when i clici the excel icont it start with sperad sheet..I want to start the interface of userform at ffirst click..please extend your kind knowledge thanks'

  • @ZiadAdly
    @ZiadAdly Год назад

    many thanks

    • @thedatalabs
      @thedatalabs  Год назад

      Thanks for watching and feedback!

  • @Puribalasaheb
    @Puribalasaheb 2 года назад

    बहोत बढिया

  • @ynt9011
    @ynt9011 2 года назад

    I love your video

  • @syedshahzaibali4729
    @syedshahzaibali4729 2 года назад

    Hello there, I tried this code and its working fine but there is small problem, when I click on the excel file it shows the excel sheet before running the user form.

  • @jungali_boi
    @jungali_boi Год назад

    can i ask you a question ❓
    i learned to run a program without showing excel. i want to learn a program that closes without showing excel again.

  • @alioujalan3378
    @alioujalan3378 2 года назад

    awesome trick

  • @fooodef
    @fooodef Год назад

    dear i disable the visiable on close as well , it works but when i open the file again the ecvel sheet show
    so i need to close and open again to show the form
    what is the solution

  • @abdulnasirafridi
    @abdulnasirafridi 2 года назад

    Development video of this inventory nanagement system share please

  • @Pankajkumar-yv5dr
    @Pankajkumar-yv5dr 2 года назад

    Is it passible with Google sheets too

  • @fabioluiz8677
    @fabioluiz8677 Год назад

    Deixando um like e um abraço

  • @samuelasare9387
    @samuelasare9387 9 месяцев назад

    Thank you for your video tutorials. My problem is that your videos are not clear at all. Please can you research and get to know how you can adjust your camera to ensure clarity of video?

  • @rathaprrathapr5131
    @rathaprrathapr5131 2 года назад

    very good

  • @gineespina250
    @gineespina250 День назад

    can't download this file. download is broken.
    can u send another file thx

  • @mra893
    @mra893 Год назад

    Nice

  • @fayzalikhurshed3398
    @fayzalikhurshed3398 2 года назад

    Hi,
    I have some questions how I can contact with you?

  • @tusharmali4797
    @tusharmali4797 2 года назад

    but another excel file invisible when i open this files
    i hope you understood my qery

  • @NamHaVblog
    @NamHaVblog Год назад

    thanks

  • @joshitoshi9835
    @joshitoshi9835 Год назад

    bro will u send excel to exe compiler software at my email?

  • @nassimgaming4948
    @nassimgaming4948 Год назад +1

    Bro it doesn't need full 12 minute to explain. . Anyway good luck

    • @karzanq424
      @karzanq424 Год назад

      Is there any other way bro? Guide me.

  • @MrJamal3771
    @MrJamal3771 Месяц назад

    Be extra careful when using application.visible = false code coz you may experience runtime automation error that would corrupt the table data and the workbook itself.

  • @sallytong241
    @sallytong241 2 года назад

    I tried both solutions but in vain. The application has opened first and close right after, then login form show up.

  • @mohamadalqalmawy9054
    @mohamadalqalmawy9054 Год назад

    I need the excel file please

  • @likithsreedhar3996
    @likithsreedhar3996 Год назад

  • @bhavneshparikh8283
    @bhavneshparikh8283 2 года назад

    Add in purchase return
    Sales return

  • @riteshrsimc
    @riteshrsimc 2 года назад

    Customisation is not allowed as it is password protected

  • @mosamra3776
    @mosamra3776 10 месяцев назад

    yeah but this hides any other excel files that are open.. so it's really useless.. or if the user have excel files open, it will hide everything

  • @manishsoni125
    @manishsoni125 9 месяцев назад

    Not working

  • @rumeshanjana8167
    @rumeshanjana8167 Год назад

    This is not working

  • @mstechnical1937
    @mstechnical1937 6 месяцев назад

    1st 5 mint are wasting Time

  • @michaelgalang9550
    @michaelgalang9550 2 года назад

    2 much cringe in tNice tutorials section xD

  • @EvilEyeTheEye
    @EvilEyeTheEye 2 года назад

    How do I know my VBA Project Password, I didn't set up any password while I create my Macro VBA but it keeps asking me to enter the VBA Project password. How do I know that password...???

  • @culea0alex
    @culea0alex 2 года назад

    Now I just saw your pined comment. Well, you can acces your code by pressing Ctrl+break. And if you want to make so that EXEL won't ask you to save the file, here is the code:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Application.ThisWorkbook.Saved = True 'Tells Excel that the file has already been saved (this prevents..
    '...Excel from requesting that you save the file when you close it)
    End Sub