The topic in this page is the continuation from the previous page. So now Mr. Adi is going to create a Payment UserForm through Visual Basic Editor. The difference between form in part-3 with the UserForm in this topic is : the form in part-3 is created on the worksheet – the UserForm in this topic will be created via Visual Basic Editor (VBA).
This UserForm will be used to input invoice number payment, either from the accounts receivable (Customer) or to the accounts payable (Supplier).
Based on Mr. Adi experience, the workflow of this form will be a little complicated because there are a few differences on how the payment is made. Basically, there are three model of the payment :
- Model-A, don’t care for the invoice/s. The focus is only to the last balance.
Example : The last balance is 1,123,456,789. Pay 300,000. So the balance now
is 823,456,789. - Model-B, care for the invoice/s from a certain month. Maybe all the invoices of month X are paid, maybe only some invoices of month X are paid.
- Model-C, care for the invoice/s but don’t care from what month is the invoice/s.
Each model will be explained more when the UserForm has been made on the next topic.
Prepare the worksheet
Similar with part-3, the first thing Mr. Adi do is creating a new worksheet with a name “PAY”. So here, although the form will be a “standalone” form (it’s not on the worksheet) but the sheet is still needed as a helper to see the invoices which are going to be inputted to the main data.
So, in sheet “PAY”, Mr. Adi fill cell C4 with =today() for the date when he input the payment. Fill cell B6 with “Invoice Number”, cell C6 with “VALUE”, cell E6 with “NAME” and cell F6 with “AMOUNT”. It looks like the sample image below.
And then he create two Pivot Tables in sheet TABLE by copying any of the existing Pivot Table then paste it on sheet TABLE.
For the first Pivot Table, paste it on sheet TABLE cell H1, and name it “ptInvoice”.
Arrange the fields as follow :
Have INV field in Row Labels area.
Have NAME field in Row Labels area under the INV field.
Have SUM field in Values area, format it as needed.
The result looks similar with the image below.

For the second Pivot Table, paste it on sheet TABLE cell L1, and name it “ptPayment”.
Arrange the fields as follow :
Have NAME field in Report Filter area.
Have Y/M field in Row Labels area.
Have INV field in Row Labels area, under Y/M field.
Have SUM field in Values area, format it as needed.
The result looks similar with the image below.

Designing a Payment UserForm through Visual Basic Editor
In “Developer” menu tab, click “Visual Basic” button. Mine is located on the most left of the menu, as seen in the image below.
Appear a Microsoft Visual Basic for Applications (VBA) window, as seen in the image below.
On the left pane, there are two small windows, Project – VBAProject window and Properties window.
Right-click anywhere inside the Project – VBAProjects window, click “Insert” then click “UserForm”. As seen in the image below.
Appear another two windows. “Toolbox” window and “UserForm” (with a UserForm1 caption) window. As seen in the image below.
In “Properties” window, change the (Name) from UserForm1 into frmPayment, and change the Caption from UserForm1 into PAYMENT FORM. As seen in the image below.

Mr. Adi resize the UserForm by dragging the bottom-right corner of the UserForm. As seen in the animation below.
There are 5 kind of controls in Toolbox which are needed. Label, TextBox, ListBox, Frame and CommandButton. As seen in the image below.
Just like in part-4, to create the control, just click the control in the Toolbox window, then click anywhere insidde the UserForm’s “canvas”. As seen in the animaton below.
Create each control as many as the following :
| CONTROL | AMOUNT |
|---|---|
| Label | 1 |
| TextBox | 1 |
| ListBox | 3 |
| Frame | 2 |
| CommandButton | 7 |
Next, Mr. Adi change the (Name) and the Caption of each control in the “Properties” window. Just click the control, then change the (Name) and the Caption in the “Properties” window as follow :
| Control’s default (Name) | (Name) change to | Caption |
|---|---|---|
| Label1 | lblSum | SUM |
| TextBox1 | SearchBox | |
| ListBox1 | ListName | |
| ListBox2 | ListYM | |
| ListBox3 | ListInv | |
| Frame1 | Choose CU / SU | |
| Frame2 | Collect Invoice | |
| CommandButton1 | CU | CU |
| CommandButton2 | SU | SU |
| CommandButton3 | RESET | RESET |
| CommandButton4 | ColAllInv | All Invoice |
| CommandButton5 | ColSelectedInv | Selected Invoice |
| CommandButton6 | ColDisregardInv | Type the payment value |
| CommandButton7 | InputToData | Input To Data |
Finally, Mr. Adi arrange the size and the position of each control according to his like. How is the size and where is the position depends on the taste of the person who designing it. Anyway in this case, Mr. Adi arrange the controls like the image below :
| CONTROL | USED FOR |
|---|---|
| CU | Payment from a customer |
| SU | Payment to a supplier |
| RESET | Clear sheet PAY |
| SearchBox | type the name to be searched |
| ListName | Name list found based on the typed word |
| Type the payment value | Payment which disregard invoice number |
| Input To Data | Put collected invoices to the main data |
| CONTROL | USED FOR |
|---|---|
| SUM | SUM value of the invoices |
| ListYM | The Month and Year of the invoice |
| ListInv | Invoice List based on the selected element |
| All Invoices | Collect invoice’s based on the selected element |
| Selected Invoice | Collect the invoice based on the selected invoice |
That’s it. The designing stage to make the Payment UserForm through Visual Basic Editor in Excel has finished. In the next topic, Mr. Adi will make the macro code for the controls in this UserForm.
If there is something which is not clear regarding to this topic, please don’t hesitate to ask in the Comment box. I’ll try my best to answer.












205 replies on “Payment UserForm through Visual Basic Editor in Excel”
I think you have mentioned some very interesting points , thankyou for the post.
stromectol for humans ivermectin 1 topical cream
Hello my loved one! I want to say that this post is amazing,great written and come with almost all vital infos.I’d like to see extra posts like this .
995034 645527Hi my loved 1! I want to say that this write-up is amazing, wonderful written and contain almost all vital infos. I would like to peer much more posts like this . 319248
Hey, you used to write magnificent, but the last few postshave been kinda boring… I miss your super writings.Past few posts are just a little out of track!come on!Check out my blog: Keto Incinerate
Greetings! Very useful advice within this post!It’s the little changes that produce the most important changes.Thanks for sharing!
I truly appreciate this blog post.Much thanks again.
Im grateful for the blog.Really thank you! Awesome.
This is one awesome blog.Much thanks again. Awesome.
Hey, thanks for the article post. Keep writing.
Thanks a lot for the blog article.Really looking forward to read more. Fantastic.
I think this is a real great article post.Really thank you! Want more.
Thanks for sharing, this is a fantastic article post.Really thank you! Want more.
sildenafil over counter
I like the helpful info you provide in your articles. I’ll bookmark your blog and check again here regularly. I’m quite certain I will learn a lot of new stuff right here! Best of luck for the next!
I wanted to thank you for this very good read!! I absolutely loved every bit of it. I have got you bookmarked to check out new stuff you post…
memorial hermann account number with texas department of health services good doctorivermectin tablets tzmwhs
For pretty much 25 years, Women’s Bean Project hasbeen helping ladies break the cycle of poverty and unemployment.
Aw, this was a really good post. Finding the time and actual effort to make a really good article… but what can I say… I put things off a lot and never seem to get anything done.
ferma a fuardare testo alışveriş bağımlılığı testi market agent alışveriş bağımlılığı testi a101 aktüel ürünler kataloğu 8 nisan a bimbo meaning
Good way of describing, and good article to take facts regarding my presentation topic, which i am going topresent in college.
What’s up, after reading this amazing post i am as wellglad to share my know-how here with mates.
There is definately a lot to find out about this subject.I like all the points you made.
I loved your blog post.Really looking forward to read more. Really Great.
Remarkable! Its truly awesome article, I have got much clear idea regarding from thisarticle.
Regards, Great information. canadian online pharmacies
soma therapy ed: over the counter ed remedies – best medication for ed
I’d have to check with you here. Which is not something I often do! I get pleasure from reading a post that will make individuals think. Also, thanks for allowing me to comment!
บาคาร่าออนไลน์จะต้องยกให้เป็นที่สุดของเกมไพ่ออนไลน์เลยนะครับ เพราะเหตุว่าเข้าใจง่ายไม่ซับซ้อนที่
Your style is very unique compared to other people I have read stuff from.Thank you for posting when you’ve got the opportunity, GuessI’ll just book mark this blog.
Hi my friend! I want to say that this post is amazing, nice written and include approximately all important infos. I would like to see more posts like this.
Your manner of addressin this topic is both fantastic and inspiring.
Your style is so unique in comparison to other folks I have read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this blog.
Thanks for sharing your thoughts about insurgents.Regards
I feel that is among the so much vital information for me. And i’m happy studying your article. However want to commentary on few common things, The site taste is great, the articles is in point of fact nice : D. Good process, cheers
What’s Going down i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has helped me out loads. I’m hoping to contribute & aid different customers like its aided me. Good job.
Super-Duper site! I am loving it!! Will be back later to read some more. I am bookmarking your feeds also.
I and my guys have been going through the excellent items from your web page and suddenly got a horrible suspicion I had not expressed respect to the web site owner for those strategies. Most of the ladies came for that reason happy to see all of them and have in effect in reality been making the most of those things. We appreciate you truly being really considerate as well as for settling on this sort of incredible guides millions of individuals are really desirous to be aware of. Our sincere apologies for not expressing appreciation to you sooner.
The next time I learn a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my option to read, but I really thought youd have something attention-grabbing to say. All I hear is a bunch of whining about one thing that you possibly can fix in the event you werent too busy looking for attention.
Aw, this was a really nice post. In thought I want to put in writing like this additionally – taking time and precise effort to make a very good article… however what can I say… I procrastinate alot and not at all seem to get something done.
excellent points altogether, you simply received a brand new reader. What would you recommend about your post that you made a few days in the past? Any positive?
Hey would you mind sharing which blog platform you’re working with? I’m looking to start my own blog soon but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something unique. P.S My apologies for getting off-topic but I had to ask!
I have been surfing on-line more than three hours these days, but I by no means found any interesting article like yours. It’s lovely value enough for me. Personally, if all website owners and bloggers made just right content material as you probably did, the web shall be much more helpful than ever before.
Hello, i think that i saw you visited my website so i came to “return the favor”.I’m trying to find things to enhance my site!I suppose its ok to use a few of your ideas!!
chloroquine prophylaxis chloroquine hydroxychloroquine
I’ll right away clutch your rss as I can’t to find your email subscription hyperlink or e-newsletterservice. Do you have any? Kindly let me know in order that I could subscribe.Thanks.
It’s really a cool and useful piece of info. I’m glad that you simply shared this useful information with us.Please keep us informed like this. Thanks for sharing.
There is noticeably a bundle to identify about this. I consider you made some nice points in features also.
Really enjoyed this post.Much thanks again. Awesome.
I like the valuable information you supply on your articles.I will bookmark your blog and check again here frequently.I am somewhat sure I will be told many new stuff right here!Best of luck for the next!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
It’s going to be ending of mine day, but before end I am reading this enormousarticle to improve my knowledge.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Hi there, this weekend is fastidious in favor of me, for the reason that this time i am reading this fantastic educational piece of writing here at my house.
Hi colleagues, how is all, and what you desire to say regardingthis post, in my view its truly awesome for me.
Very informative article post.Much thanks again. Awesome.
Muchos Gracias for your post.Really thank you! Fantastic.
ivermectina para que es what is ivermectin made from
Thank you ever so for you blog post.Really thank you! Will read on…
Fantastic blog article.Really thank you! Keep writing.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
A big thank you for your article.Thanks Again. Really Cool.
I savour, result in I discovered just what I was having a look for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye
Thank you for any other excellent article. The place else may just anybody get that type of information in such a perfect manner of writing? I’ve a presentation subsequent week, and I’m at the search for such information.
Can you be more specific about the content of your enticle? After reading it, I still have some doubts. Hope you can help me.
Major thanks for the article post.Thanks Again. Want more.
I think this is a real great blog post. Want more.
Good day! This post couldn’t be written anybetter! Reading this post reminds me of my good old room mate!He always kept chatting about this. I will forward this article to him.Pretty sure he will have a good read. Many thanks for sharing!
Im thankful for the post. Really Cool.
Really appreciate you sharing this post.Thanks Again.
Thanks for the blog article.
What’s up, of course this paragraph is genuinely nice and I have learned lot of things from it regarding blogging.thanks.
Very neat article post. Great.
Im thankful for the article post.Really thank you! Keep writing.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I appreciate you sharing this blog post. Much obliged.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Hey there are using WordPress for your blog platform? I’m new tothe blog world but I’m trying to get started and set upmy own. Do you need any coding knowledge to make your own blog?Any help would be greatly appreciated!
Your article helped me a lot, is there any more related content? Thanks!
I think this is a real great article.Really looking forward to read more. Much obliged.
Fantastic article post. Really Great.
Very neat blog post.Thanks Again. Great.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I love the efforts you have put in this, thank you for all the great diet foods content.
A fascinating discussion is worth comment. There’s no doubt that that you ought to publish more on this subject, it may not be a taboo subject but generally people don’t talk about such issues. To the next! Kind regards!!
I do believe all the ideas you have presented in your post. They are very convincing and will definitely work. Nonetheless, the posts are too quick for newbies. May just you please prolong them a bit from next time? Thanks for the post.
A motivating discussion is worth comment. There’s no doubt that that you need to publish more on this subject, it may not be a taboo matter but generally folks don’t discuss these issues. To the next! Many thanks!!
ivermectin tablets uk ivermectin drg – ivermectin 250ml
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks! Lots of knowledge.narrative essay writing help college essay academic writers needed
Thanks for sharing, this is a fantastic article.Thanks Again. Want more.
Oh my goodness! Amazing article dude! Thanks, HoweverI am experiencing problems with your RSS. I don’t know why I cannot subscribe to it.Is there anyone else getting the same RSS issues? Anyone that knows the solution can youkindly respond? Thanx!!
Great blog.Really looking forward to read more. Cool.
สำหรับ การเล่นสล็อต นั้นมีพัฒนาการมาอย่างยาวนาน ในสมัยก่อนจะมีลักษณะเป็นตู้สล็อตแมชชีนที่ วิธีเล่นสล็อต จะใช้คันโยกเป็นตัวเสี่ยงรางวัล และรอลุ้นว่าสัญลักษณ์ในช่องจะตรงกันหรือไม่เพื่อรับรางวัลเป็นต้น
Great post.Thanks Again. Really Cool.
promethazine for sleeppromethazine with codeine dosing
Usually I don’t read article on blogs, but I wish to say that this write-upvery pressured me to take a look at and do so!Your writing style has been surprised me. Thanks, verygreat article.
Excellent blog you have got here.. Itís difficult to find good quality writing like yours nowadays. I seriously appreciate people like you! Take care!!
Great delivery. Outstanding arguments. Keep upthe amazing spirit.
There is perceptibly a bundle to know about this. I suppose you made some nice points in features also.
Your article helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Appreciate you sharing, great blog post. Will read on…
Thanks for the blog article. Keep writing.
Great, thanks for sharing this article.Really thank you!
I really enjoy the article.Thanks Again. Keep writing.
I appreciate you sharing this blog.Really looking forward to read more. Really Great.
I think this is a real great post.Thanks Again. Really Cool.
My brother suggested I would possibly like this blog. He was entirely right. This post truly made my day. You cann’t believe just how much time I had spent for this info! Thank you!
I like the helpful information you provide in your articles.I will bookmark your blog and check again here regularly.I’m quite sure I’ll learn many new stuff right here! Best of luckfor the next!
Say, you got a nice article post.Really thank you!
LANCEL SACS A MAIN ??????30????????????????5??????????????? ????????
Thanks for sharing, this is a fantastic article post.Really thank you! Keep writing.
It’s an remarkable article in favor of all the internet people; they will getbenefit from it I am sure.
Awesome post.Thanks Again. Cool.
Kudos, Awesome information!how to write a creative essay mba dissertation consumer reports resume writing services
legit mexican pharmacy: canadian pharmacy meds – canadian pharmacy com
Thanks a lot for the article post.Really thank you! Great.
I read this piece of writing fully about the comparison of latest and previous technologies, it’s amazing article.
Thanks-a-mundo for the blog article.
Utterly pent subject material, Really enjoyed reading through.
Hi i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i could also create comment due to this sensible post.
Im grateful for the blog article. Awesome.
Appreciate you sharing, great blog article.Really looking forward to read more. Cool.
It’s going to be ending of mine day, except before end I am reading this enormousparagraph to improve my know-how.
Im thankful for the blog.Really looking forward to read more. Will read on…
I really liked your article post.Thanks Again. Much obliged.
Fantastic post.Really looking forward to read more. Awesome.
Im grateful for the blog post.Really thank you! Really Great.
Great article.Really looking forward to read more. Want more.
Really appreciate you sharing this blog post.
Great article.
Im thankful for the article.Really looking forward to read more.
I cannot thank you enough for the blog article.Thanks Again. Want more.
Really appreciate you sharing this blog.Much thanks again. Much obliged.
Im grateful for the post.Thanks Again. Really Great.
Thanks for sharing, this is a fantastic blog post.Really looking forward to read more. Cool.
Muchos Gracias for your blog.Much thanks again. Will read on…
This is one awesome post.Thanks Again. Really Great.
There’s certainly a lot to learn about this subject. I like all the points you’ve made.
Aw, this was a really good post. Taking a few minutes and actual effort to make a really good articleÖ but what can I sayÖ I hesitate a whole lot and never manage to get anything done.
Hi there, after reading this amazing paragraph i am too happy toshare my familiarity here with mates.
I am so grateful for your blog.Really thank you! Fantastic.
Very neat post.Really thank you! Fantastic.
Appreciate you sharing, great article.Really looking forward to read more. Will read on…
Thanks for sharing, this is a fantastic post.Thanks Again. Much obliged.
I loved your post.Really looking forward to read more.
and made a decision to confront him, but with evidence.Free Account – New Free Accounts And Password Listfree account
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
I value the blog post.Much thanks again. Really Great.
Really informative blog article.Much thanks again. Will read on…
I cannot thank you enough for the blog post.Much thanks again. Keep writing.
Wow, great blog. Keep writing.
Really enjoyed this article. Really Cool.
Great article.Thanks Again. Awesome.
Really appreciate you sharing this post.Really thank you! Will read on…
Thanks a lot for the blog.Really thank you! Much obliged.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Fantastic article.Much thanks again. Will read on…
Really enjoyed this blog post.Really looking forward to read more. Keep writing.
Say, you got a nice blog post.Really thank you! Will read on…
Very informative article.Thanks Again. Really Cool.
Thanks again for the blog post.Thanks Again. Cool.
I never thought about it that way, but it makes sense!
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Really enjoyed this article post.Really thank you! Really Cool.
I really like and appreciate your blog. Cool.
Muchos Gracias for your post.Much thanks again. Awesome.
I loved your article post.Really thank you!
I loved your article post. Really Cool.
Say, you got a nice article.Much thanks again. Will read on…
I really liked your article.Much thanks again. Want more.
miramont apartments rentberry scam ico 30m$ raised apartments in killeen tx
I live in London happy golden ox of happiness slots free play Chancellor returned and reintegrated in the 24-20 Week 11 loss to the Chiefs, and that was the last time Seattle lost
This paragraph offers clear idea for the new viewers of blogging, that actually how to do running a blog.
Aw, this was an extremely good post. Taking the time and actual effort to generate a really good articleÖ but what can I sayÖ I procrastinate a whole lot and don’t manage to get nearly anything done.
I think this is a real great blog article.Much thanks again. Keep writing.
I loved your article post.
cefdinir antibiotic warnings for cefdinir cefdinir for uti
I will right away snatch your rss as I can’t findyour e-mail subscription hyperlink or e-newsletter service.Do you have any? Please allow me understand so that I may just subscribe.Thanks.
Really enjoyed this blog.Thanks Again.
Say, you got a nice article post.Much thanks again. Really Cool.
Thank you for your article post.Much thanks again. Great.
Your article helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Very good blog article.Really thank you! Keep writing.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Great, thanks for sharing this blog article.Much thanks again.
Wow, great blog post. Really Great.
Im obliged for the blog.Really thank you! Cool.
Wow, great post.Much thanks again. Awesome.