Тёмный

Minimize and maximize in excel userform (Advance) 

Support Plus
Подписаться 9 тыс.
Просмотров 36 тыс.
50% 1

In this video I try to show you how to add Minimize and maximize in Excel UserForm (VBA). If you like to know more please watch the video carefully.
Minimize and maximize in excel userform (Advance)
#vba
#excel
#MicrosoftExcel
It is a very easy way which I describe in this video. So I request you please watch the video carefully and then download the template file from the provided download link below. And make all the steps as I shown.
You must find something new and deferent type of concept in my video so I request you please watch all the video carefully up to end.
A single click to subscribe my channel:
bit.ly/2O2MeMt
Tags for reference: Support Plus, Excel sheet protect, sheet protect using vba, Searchable drop-down list in excel, how to make searchable dropdown list in excel,
Some Link for you__________________________________________
Menu system in Excel UserForm (Step by Step): • Menu system in excel u...
Magic of VLOOKUP Pt-1: • Magic of VLOOKUP
5 Awesome Example of VLOOKUP Pt-2: • Wildcard and some Awes...
Case-Sensitive VLOOKUP: • Case-Sensitive VLOOKUP
How to make password protected folder in Windows? :
• How to make password p...
How to get back deleted data from pen drive or sd card:
• How to get back delete...
Self destroyed workbook:
• Self Destroyed Excel f...
Simple user login in excel:
• Simple user login in E...
Searchable dropdown list in excel:
• Searchable dropdown li...
How to create search box like Google in excel user form:
• How to create search b...
Right way to format USB drive:
• Right way to format US...
How to increase RAM using pen drive?
• Video
Right way to generate barcode and Label Print in Excel:
• Right way to Generate...
Easy way to export data from Excel (VBA):
• Easy way to export dat...
code download link: drive.google.c...
Please click the “SUBSCRIBE” button and ring the “Bell” icon also. You must find something different in every tutorial video on every day. Do not forget to like this video
Help me to make a dream of 10,000 subscribe at bit.ly/2O2MeMt
Business enquiry : taxbuddy99@gmail.com
Disclaimer:
This channel dose not promotes or encourages any illegal activities. All contents provided by this channel are meant for educational purpose only. I am not responsible for anything happens to your system or device while following my procedure. Thank you so much…. #ExcelTutorial #SupportPlus #Excel #Computer

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 177   
@DeepImageFx
@DeepImageFx 4 года назад
Thank you so much 🙏🏻 subscribed and liked the video... Please keep doing the good work...
@SupportPlus
@SupportPlus 4 года назад
Thanks Deep, I will try my best to make this unique type of video on excel. Thanks for the supporting
@davidpargi8799
@davidpargi8799 6 месяцев назад
Very very very excellent explain... thank you so much sir ji
@SupportPlus
@SupportPlus 6 месяцев назад
Thanks a lot for your valuable comment.
@s.a.designconsult2620
@s.a.designconsult2620 2 года назад
Thank you very much I really appreciate your effort... I try such using the ptrsafe and it work.... Thank you again
@SupportPlus
@SupportPlus 2 года назад
Thanks
@My7starq
@My7starq Год назад
Thank you very much for this video. How to UserForm close "X" button ask Save, Don't Save, Cancel like excel ?
@nederbenchelbi5426
@nederbenchelbi5426 2 месяца назад
awesome Thanks Bro
@trader.fx1
@trader.fx1 7 месяцев назад
greetings and respect. Thanks for your great tutorials. 1-- I used this code, but considering that my Windows is 64-bit, it gives an error that the code must be updated (performance error). The code can be modified to automatically detect whether Windows is 32 or 64 . 2-- Unfortunately, when the userform is maximized, images and other items are placed to one side and do not fit the monitor size.
@SupportPlus
@SupportPlus 7 месяцев назад
Thanks a lot for your valuable comment. If you like to adjust all components you have to maintain ratio. It is a verry long process and it will better work if all the object is dynamic. thanks
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
merci cher monsieur, c'est la meilleure explication
@SupportPlus
@SupportPlus 3 года назад
Merci pour le compliment mais ne vous arrêtez pas ici Restez avec moi et vous verrez beaucoup plus de choses uniques Thanks from Support Plus India
@gajananpore4746
@gajananpore4746 3 года назад
Very nice thanks sir You solved my problem
@SupportPlus
@SupportPlus 3 года назад
Thank you But don't stop here, lots of advance VBA tutorial videos are waiting for you in my channel.
@MohAboAbdo
@MohAboAbdo 4 года назад
Thank You So Mutch, Sir.
@saidwazir8305
@saidwazir8305 4 года назад
VERY NICE THANKS SIR
@danishmew2873
@danishmew2873 4 года назад
Beautiful video
@SupportPlus
@SupportPlus 4 года назад
Thanks brother
@patelpankajhiralal9547
@patelpankajhiralal9547 3 года назад
Sir Is there any code for When Userform maximize or minimise it's All controls also resized
@aziz2097
@aziz2097 7 месяцев назад
Thank you so much
@KISHORE4555
@KISHORE4555 2 года назад
Nice 👍
@SupportPlus
@SupportPlus 2 года назад
Thanks
@onlysmilemusic2060
@onlysmilemusic2060 3 года назад
Thanks sir ...ye bhi bta dain is ko software ki trah kasy open kren gy? M software ki trah nh bna pa rhi
@manoharkumarray822
@manoharkumarray822 3 года назад
Nmskar Sir Aapke Sare Viedo Bahut Hi power Full hai Sir Kuchh Solution Likaliye jise Taskbar mai File Ka Costom Icon lga Ske
@SupportPlus
@SupportPlus 3 года назад
Thanks for the comments, and I will try to keep your request.
@manoharkumarray822
@manoharkumarray822 3 года назад
@@SupportPlus Thanks You Sir 😘
@glory4039
@glory4039 3 года назад
Thank you for this video
@glory4039
@glory4039 3 года назад
Do you have any code to initialize two listboxs at the same time
@SupportPlus
@SupportPlus 3 года назад
It's possible to populate more than one listbox at same time. You have to write listbox populating code in a procedure. Thanks
@pradnyahomkar3635
@pradnyahomkar3635 3 года назад
How do we disable the minimum and maximum buttons... please help me with this ASP.
@sujitroy7821
@sujitroy7821 3 года назад
Sir make a vedio on how we capture Live Photo from web cam to user form...pls sir make a vedio on that
@satishdeshpande1336
@satishdeshpande1336 4 года назад
Dear Sir.. It is nice & useful.. I am working on Windows7.. But code is not working.. Error shown.." Can't find DLL entry point findwindowA in user32 Pls reply where is problem...
@SupportPlus
@SupportPlus 4 года назад
Hey dear Please retrieve the DLL file name and find that in Google and installation steps also. It should be solved your problem. Below are the links of two videos and I request you to please visit my channel once. Thanks ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-k0NntOirBpA.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nFo_3wQViHw.html
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
For 64 bit, add ptrsafe and convert "as long" with "as longptr" For exemple : '//declaration//' Private Declare Ptrsafe Function Findwindow lib "user32" Alias "FindwindowA" (ByVal lpClassname As String ...) As longptr And work on it with all functions
@SupportPlus
@SupportPlus 3 года назад
Thanks buddy
@satishdeshpande1336
@satishdeshpande1336 3 года назад
@@SupportPlus Ok Sir.. I'll try this & reply you... Thanks...👍 My another Request to you pls upload advance menu bar in userform... 👍
@SupportPlus
@SupportPlus 3 года назад
I request you to please visit my channel there has an advance menu system in excel userform.
@patelpankajhiralal9547
@patelpankajhiralal9547 3 года назад
Sir I want vba code when Minimize or maximize Userform all controls like frame,Textboxes,comboboxes, command buttons ,etc sizes also minimise or maximize accordingly Userform size.
@SupportPlus
@SupportPlus 3 года назад
Yes it is possible.
@patelpankajhiralal9547
@patelpankajhiralal9547 3 года назад
@@SupportPlus How?
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
For 64 bit, add ptrsafe and convert "as long" with "as longptr" For exemple : '//declaration//' Private Declare Ptrsafe Function Findwindow lib "user32" Alias "FindwindowA" (ByVal lpClassname As String ...) As longptr And work on it with all functions
@mubasharhill7154
@mubasharhill7154 3 года назад
Thank you for your tip it worked for me. Great
@omarwameedh191
@omarwameedh191 2 года назад
thank you 💕💕
@larcheologieafricaine8234
@larcheologieafricaine8234 Год назад
@@mubasharhill7154 hello ,can you give me the code for 64 BITS?
@mohit8460
@mohit8460 Год назад
It is not working in my case the above three private declares functions are coming in red colour pl help
@SupportPlus
@SupportPlus Год назад
You need to change 32bit to 64bit by writing PtrSafe like "Private Declare PtrSafe Function"
@rezabellana7074
@rezabellana7074 3 года назад
Dear Sir, i have question wiith regards to maximize of userform. In my userform1 it contains of textbox, combo box, list box and so on. My userform can maximize and minimize after you i change the code for 64bits, however what i need to know if it's possible my the text box, combo box and listbox can be expanded the size automatically when i click my userform to maximize screen. Right now all my text boxes , and listbox will remain in small size after click the maximize screen.
@SupportPlus
@SupportPlus 3 года назад
Good question, nothing is impossible. I think this video will help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0pzWDtX8eBk.html
@DeGravelnaCidade
@DeGravelnaCidade 3 года назад
Hey Rez, use the "Private Declare PtrSafe Function....", this sentence PtrSafe solve the problem
@SupportPlus
@SupportPlus 3 года назад
Thanks
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
For 64 bit, add ptrsafe and convert "as long" with "as longptr" For exemple : '//declaration//' Private Declare Ptrsafe Function Findwindow lib "user32" Alias "FindwindowA" (ByVal lpClassname As String ...) As longptr And work on it with all functions
@sthanup5990
@sthanup5990 2 года назад
Excellent Tutorial sir, But I have one question. Can I minimize the userform (workbook being hidden) to my taskbar??
@SupportPlus
@SupportPlus 2 года назад
🤔
@mrbolz6493
@mrbolz6493 2 года назад
I also want that
@SupportPlus
@SupportPlus 2 года назад
Please stay with me I must show you...
@atiqsarwar4222
@atiqsarwar4222 3 года назад
Hallo sir, How can I combine both video code, this video and advance menu video...
@nikhilatgaya
@nikhilatgaya 2 года назад
Can you demonstrate how to resize or zoom the objects along with maximizing the userform?
@SupportPlus
@SupportPlus 2 года назад
I will be very happy when I publish your request video. So please stay tuned with me.
@samarthsalunkhe9140
@samarthsalunkhe9140 3 года назад
Hi sir thank you for sharing such informative video's, I have one question, is it possible to maximize form contains also while we maximize form. Thank You 🎉
@SupportPlus
@SupportPlus 3 года назад
I apologise for the delay to reply Yes dear, it is possible and very soon I publish a video on this topic. Thanks for your comments.
@samarthsalunkhe9140
@samarthsalunkhe9140 3 года назад
@@SupportPlus Thank you Sir 🙏🏻
@makaniharesh1459
@makaniharesh1459 2 года назад
Kya hum useRform ko taskbaR me minimize kar sakte hai..?
@SupportPlus
@SupportPlus 2 года назад
I think it's not possible. You have to minimize application.
@makaniharesh1459
@makaniharesh1459 2 года назад
@@SupportPlus tHank you foR Reply
@Marlboro5286
@Marlboro5286 Год назад
I downloaded the codes and put the codes in a form as explained to whom. I have a problem with the word ( function ) For your information, I use office 2019 My machine is 64 bit.. please help me ❤😢
@thesimple6040
@thesimple6040 8 месяцев назад
Thank you so much But this code does not work on vba 64 How to solve this problem
@thesimple6040
@thesimple6040 8 месяцев назад
This error appears Compile error: ! The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute.
@SupportPlus
@SupportPlus 8 месяцев назад
please try in 32bit office
@thesimple6040
@thesimple6040 8 месяцев назад
@@SupportPlus Can you help me update the code to work on a 64bit system?
@nmljohnbavasilambamschool9979
@nmljohnbavasilambamschool9979 2 года назад
Please put the same video for 64bit computers or code for the 64bit computer
@saddamskst2
@saddamskst2 4 года назад
Awesome video sir
@SupportPlus
@SupportPlus 4 года назад
Thanks for watching Somthing special tonight 9 pm Please stay tuned with me
@saddamskst2
@saddamskst2 4 года назад
@@SupportPlus invoice wala video ayega kya
@saddamskst2
@saddamskst2 4 года назад
@@SupportPlus mujhe invoice wala program ka link bhej dizia please my contact.no 7076065439 My mail id is skst000786@gmail.com
@saddamskst2
@saddamskst2 4 года назад
@@SupportPlus ok
@srmusic746
@srmusic746 Год назад
Sir this codes are not working on 64bit operating system. Pls update these codes for windows 11 64bit.
@SupportPlus
@SupportPlus Год назад
Please convert the 32bit code in to 64bit by writing PtrSafe
@dineshmajhi6099
@dineshmajhi6099 3 года назад
Dada Tally kicho video uploading koro plz
@nmljohnbavasilambamschool9979
@nmljohnbavasilambamschool9979 2 года назад
This course are not supporting supporting for windows 64 bit please help us how to use in windows 64 bit
@EslamJeka777
@EslamJeka777 2 года назад
Sir , Please When i do what u said K Massage box open ( The code in this project must be updated for use on 64-bit systems . Please review and update Declare statements and then mark them with OtrSafe attribute. What Should i Do??????1 Help Please
@SupportPlus
@SupportPlus 2 года назад
Thanks for the comments. You are on the right way. Comparison of 32bit or 64bit. Otherwise please google once.
@khaledrabie258
@khaledrabie258 Год назад
Write "PtrSafe" after Private Declare. For 32 bit :Private Declare Function For 64 bit :Private Declare PtrSafe Function
@mustafeosman1
@mustafeosman1 3 года назад
Thanks. When i minimize the user will become very small. How to solve?
@SupportPlus
@SupportPlus 3 года назад
Please set your userform height and width in userform resize. It select from procedure drop-down Thanks But don't forget to write where are you from.
@mustafeosman1
@mustafeosman1 3 года назад
@@SupportPlus thanks you. I am from Somalia 🇸🇴🇸🇴🇸🇴. Sorry my poor English.
@SupportPlus
@SupportPlus 3 года назад
Please visit into my channel. There has lots of video on Ms Excel. Do your best for Channel growth.
@mustafeosman1
@mustafeosman1 3 года назад
@@SupportPlus Thanks. I subscribe the Chanel. Your videos is good. 👍👍👍 👏👏👏 👌👌👌
@marcocadeddu5875
@marcocadeddu5875 3 года назад
congratulations for the video. I'm Italian. sorry for my English. I used application.windowstate = xlmaximized on userform_inizialized but when I open the userform it opens full screen and pressing the resize key stays full screen does not return to the size set to on userform. is it possible to open the userform in full screen and pressing the resize button bring it to the size set on the userform?
@SupportPlus
@SupportPlus 3 года назад
Please fallow all the comments, I request you to please visit my channel, there has lots of extra ordinary video are waiting for you.
@marcocadeddu5875
@marcocadeddu5875 3 года назад
I have already seen the video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0pzWDtX8eBk.html but I have not solved the problem. I have watched other videos on your channel but have not found any feedback. thanks for a solution
@houssemdine911
@houssemdine911 3 года назад
sorry bit for excel 64 it doesn t work. I treid what you did., but in the second part i get an error in "FindWindowA " not defined. I hope you have a solution . Thank you
@jerryrodriguez2544
@jerryrodriguez2544 3 года назад
antes de la funcion colocar: PtrSafe
@zhaoyang6523
@zhaoyang6523 2 года назад
Change to 'As Long'
@tapasranjan5012
@tapasranjan5012 4 года назад
Hello... Could you please help me with few lines of code? I have two userform (userform 1 and 2). Userform 1is for log in and userform 2 is for data input. So after login in userform 1 I am hiding userform 1 and loading userform 2. So my query is while closing the userform 2, workbook should save automatically and it should again show the userform 1.
@tapasranjan5012
@tapasranjan5012 4 года назад
Both the userform are minimize and maximize style userforms.
@SupportPlus
@SupportPlus 4 года назад
Your question is very small but the answer would be very long. Send me your email on comment section.
@tapasranjan5012
@tapasranjan5012 4 года назад
@@SupportPlus shiningtapas@gmail.com
@deepakkumarchauhan4656
@deepakkumarchauhan4656 4 года назад
sir, pls. help to resolve my query that some of userforms are not accessing codes. only two userforms accessing codes.
@SupportPlus
@SupportPlus 4 года назад
If possible send me your project workbook to this email id so I can give it a try. Thanks
@SupportPlus
@SupportPlus 4 года назад
taxbuddy99@gmail.com
@TheSnowman4vn
@TheSnowman4vn 2 года назад
hi , do you have the same clip but speaking English ?
@SupportPlus
@SupportPlus 2 года назад
No.
@vikashjee3534
@vikashjee3534 3 года назад
if i want that when i start the userform it activate in maximize mode. How should i do that?
@SupportPlus
@SupportPlus 3 года назад
Thanks Vikash for your valuable comment Please watch the video by clicking below link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0pzWDtX8eBk.html It should help you.
@srshohel2781
@srshohel2781 3 года назад
Please help me,,,,,,, Tish topic dose not work Show this problem ⬇️ Run-time error '453' Can't find DLL entry point FindWindowA in user 32
@SupportPlus
@SupportPlus 3 года назад
Please shohel move to new video. Here is the link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yOkdQQFfqGg.html
@SupportPlus
@SupportPlus 3 года назад
It should be work
@srshohel2781
@srshohel2781 3 года назад
@@SupportPlus Thank you very much
@SupportPlus
@SupportPlus 3 года назад
You are welcome.
@atiqsarwar4222
@atiqsarwar4222 3 года назад
Hello sir, how can I combine video codes of this video and advance menu video code
@SupportPlus
@SupportPlus 3 года назад
Dear, I shared concept. Please try yourself to combined two different code. I hope you can do this.
@dipankarroy5529
@dipankarroy5529 Год назад
Sir, I have used your code Minimize and Maximize in Excel Userform but it’s showing the error message. “ Compile error” The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute. (This error message shows CODE-1) HOW TO SOLVE.
@SupportPlus
@SupportPlus Год назад
please try in 32bit
@Babaloo7217
@Babaloo7217 3 года назад
Sir aap mera problem solve kar dijiye Jo example sheet send kiye the email par uska Pls sir 🙏
@SupportPlus
@SupportPlus 3 года назад
OK I'll check
@anonymouscyp4308
@anonymouscyp4308 3 года назад
The second code, Gives "Type mismatch" for FindWindowA how I can solve it Thanks
@SupportPlus
@SupportPlus 3 года назад
Please fallow all the comments Thanks
@anonymouscyp4308
@anonymouscyp4308 3 года назад
@@SupportPlus Follow all steps one by one still don’t know where is the problem
@SupportPlus
@SupportPlus 3 года назад
I apologise for the unwanted error please convert the code for 64bit
@houssemdine911
@houssemdine911 3 года назад
@@SupportPlus I am getting the same error, can you please make another video for 64bits
@SupportPlus
@SupportPlus 3 года назад
Ok
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
How to upload ads on userform?
@AbidAli-hw6ix
@AbidAli-hw6ix 4 года назад
Great Video Code Download link not working could you please check
@SupportPlus
@SupportPlus 4 года назад
It's a direct download link and its tested. Please download again...
@AbidAli-hw6ix
@AbidAli-hw6ix 4 года назад
@@SupportPlus i tried many times
@SupportPlus
@SupportPlus 4 года назад
After receiving your comment, I tried it once and I was able to download it through that download link, but I can't say exactly why you are not.
@rezabellana7074
@rezabellana7074 4 года назад
Dear Sir, Do you have update of your code for 64-bit system? I tried but give Compile Error. Saying The code in this project must be updated for use on 64-bit system. I hope you dont mind to guide me step by step. Thank you in advance
@SupportPlus
@SupportPlus 4 года назад
I would be very happy if I could help you. Please write "PtrSafe" after Private Declare. For 32 bit :Private Declare Function For 64 bit :Private Declare PtrSafe Function Thanks for your question and positive comments.
@rezabellana7074
@rezabellana7074 4 года назад
@@SupportPlus Dear Sir, thank you very much. It worked now. I have subscribed to you channels to support you :)
@AbidAli-hw6ix
@AbidAli-hw6ix 4 года назад
@@SupportPlus Sir if we don't know our client using which bit 32 or 64 and i want to send project file to him so what i do
@SupportPlus
@SupportPlus 4 года назад
Good question Abid, Always try to make universal application. Your answer Wright vba code #if vb7 then Private Declare PtrSafe Function... #Else Private Declare Function.... #End If Thanks
@AbidAli-hw6ix
@AbidAli-hw6ix 4 года назад
docs.microsoft.com/en-gb/office/vba/Language/Concepts/Getting-Started/64-bit-visual-basic-for-applications-overview according to this article if i used if function but its not working could you please help in this regards down is code which i chage Option Explicit If Win64 Then Private Declare PtrSafe Function FindWindow _ Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, _ ByVal lpWindowName As String) As LongPtr Private Declare PtrSafe Function ExtractIcon _ Lib "shell32.dll" Alias "ExtractIconA" _ (ByVal hInst As LongPtr, _ ByVal lpszExeFileName As String, _ ByVal nIconIndex As Long) As LongPtr Private Declare PtrSafe Function SendMessage _ Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As LongPtr, _ ByVal wMsg As LongPtr, _ ByVal wParam As Integer, _ ByVal lParam As Long) As LongPtr Else Private Declare Function FindWindow _ Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long Private Declare Function ExtractIcon _ Lib "shell32.dll" Alias "ExtractIconA" _ (ByVal hInst As Long, _ ByVal lpszExeFileName As String, _ ByVal nIconIndex As Long) As Long Private Declare Function SendMessage _ Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Integer, _ ByVal lParam As Long) As Long End If Private Const WM_SETICON = &H80 Public Const WS_MINIMIZEBOX = &H10000 Public Const WS_MAXIMIZEBOX = &H20000 Public Const GWL_STYLE = (-16) If Win64 Then Public Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPtr Public Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As LongPtr Public Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPtr Public Declare PtrSafe Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As LongPtr Else Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Public Declare Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As Long End If Public Sub AddMinMaxButtons(ByVal FormCaption As String, ByVal MinButton As Boolean, ByVal MaxButton As Boolean) Dim hWnd As Long Dim lngStyle As Long hWnd = FindWindow(vbNullString, FormCaption) lngStyle = GetWindowLong(hWnd, GWL_STYLE) If MaxButton Then lngStyle = lngStyle Or WS_MAXIMIZEBOX End If If MinButton Then lngStyle = lngStyle Or WS_MINIMIZEBOX End If SetWindowLong hWnd, GWL_STYLE, lngStyle DrawMenuBar hWnd End Sub
@mohammedmarzouq3352
@mohammedmarzouq3352 2 года назад
Thanks brother. Subscribe and like.
@SupportPlus
@SupportPlus 2 года назад
😃
@Babaloo7217
@Babaloo7217 3 года назад
Sir G aap mere email (example sheet) ka solution nikal liye
@SupportPlus
@SupportPlus 3 года назад
I apologise for the delay Please be patience, I would be very happy to help you. Thanks babalo. Is that's your name?
@danishmew2873
@danishmew2873 4 года назад
Sir 64bit kaye liye update kardain uspar nahi chalraha haye
@DeGravelnaCidade
@DeGravelnaCidade 3 года назад
use the "Private Declare PtrSafe Function....", this sentence PtrSafe solve the problem
@inspirationalvideos6041
@inspirationalvideos6041 3 года назад
For 64 bit, add ptrsafe and convert "as long" with "as longptr" For exemple : '//declaration//' Private Declare Ptrsafe Function Findwindow lib "user32" Alias "FindwindowA" (ByVal lpClassname As String ...) As longptr And work on it with all functions
@falguniakter1582
@falguniakter1582 Год назад
Coad plz!
@ranaahmmed238
@ranaahmmed238 3 года назад
Need windows 64 bit
@SupportPlus
@SupportPlus 3 года назад
Please fallow some comments There you will find your answer Types of PtrSafe
@ranaahmmed238
@ranaahmmed238 3 года назад
Thanks
@feraskhater
@feraskhater 2 года назад
bro you add English title why explain by other language how can i understand what you are say ?!!!!!
@SupportPlus
@SupportPlus 2 года назад
Don't worry please turn off audio and watch. I known you must understand what I want to show you. Thanks 🙏
@SupportPlus
@SupportPlus 2 года назад
Language is HINDI
@SupportPlus
@SupportPlus 2 года назад
Indian mother tongue
@feraskhater
@feraskhater 2 года назад
appreciate you i was only worry you telling important comments anyway thanks bro
@SupportPlus
@SupportPlus 2 года назад
For more you can mail me. Thank you
@Babaloo7217
@Babaloo7217 3 года назад
Sir G Mujhe apna email Id dijiyega Mai aapko ek example sheet send karunga jisme kuchh error hai Jo aapko dikhana hai
@SupportPlus
@SupportPlus 3 года назад
Nice. Please write your email on comment section I will reply
@Babaloo7217
@Babaloo7217 3 года назад
babaloomobilegallery@gmail.com
@Babaloo7217
@Babaloo7217 3 года назад
Sir G reply to kariye Or Email Id bataiye
@Babaloo7217
@Babaloo7217 3 года назад
Sir G reply to kariye Or Email Id bataiye
@SupportPlus
@SupportPlus 3 года назад
Please give me your email address in comment section. Anpe email ID kaha likha he?
@SuponoJaten
@SuponoJaten 3 года назад
Thank for the code. I've turn off your red button.
@SupportPlus
@SupportPlus 3 года назад
Thanks
@feraskhater
@feraskhater 2 года назад
at least add english subtitle
@MH-xx6df
@MH-xx6df 3 года назад
Can you please tell me if the below code is correct for 64 bit? I am not able to get the min and max buttons on my userform. 1.) i have added PtrSafe before all Function and 2.) I have converted all As Long to As LongPtr ''CODE_1********************************** Option Explicit Private Declare PtrSafe Function StartWindow Lib "user32" Alias "GetWindowLongA" ( _ ByVal hWnd As LongPtr, ByVal nIndex As String) As LongPtr Private Declare PtrSafe Function MoveWindow Lib "user32" Alias "SetWindowLongA" ( _ ByVal hWnd As LongPtr, ByVal nIndex As LongPtr, ByVal dwNewLong As LongPtr) As LongPtr Private Declare PtrSafe Function Findwindow Lib "user32" (ByVal lpClassname As String, _ ByVal lpWindowName As String) As LongPtr Private Const STYLE_CURRENT As LongPtr = (-16) '// A new window STYLE '// Window STYLE Private Const WS_CX_MINIMIZAR As LongPtr = &H20000 '// Minimize button Private Const WS_CX_MAXIMIZAR As LongPtr = &H10000 '// Maximize button '// Window status Private Const SW_EXIBIR_NORMAL = 1 Private Const SW_EXIBIR_MINIMIZADO = 2 Private Const SW_EXIBIR_MAXIMIZADO = 3 ''CODE_2********************************** Dim Form_Personalized As LongPtr Dim STYLE As LongPtr Private Sub HeardsForm_Activate() Form_Personalized = FindWindowA(vbNullString, Me.Caption) STYLE = StartWindow(Form_Personalized, STYLE_CURRENT) STYLE = STYLE Or WS_CX_MINIMIZAR '// Minimize button STYLE = STYLE Or WS_CX_MAXIMIZAR '// Maximize button MoveWindow Form_Personalized, STYLE_CURRENT, (STYLE) End Sub Private Sub HeardsForm_Layout() Me.Frame1.Left = (Me.Width / 2) - (Me.Frame1.Width / 2) Me.Frame1.Top = (Me.Height / 2) - (Me.Frame1.Width / 2) End Sub
@SupportPlus
@SupportPlus 3 года назад
Dear I probably owe you an apology. I recommend you to move another code which help you to make minimize and maximize button on userform. And it's ready for 64bit office. Here is the link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yOkdQQFfqGg.html.
Далее
Hide Excel Userform Title Bar or Caption Bar
6:34
Просмотров 14 тыс.
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19
Understanding UserForm Events in Excel VBA
20:45
Просмотров 19 тыс.
How to Create a Data Entry Form in Excel
34:30
Просмотров 285 тыс.
VBA User Form: Add, Update, Delete and Save
22:47
Просмотров 47 тыс.
How to Run UserForm without Showing Excel Window
12:44
Просмотров 113 тыс.
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19