
{"id":1478,"date":"2021-03-16T23:16:58","date_gmt":"2021-03-16T15:16:58","guid":{"rendered":"https:\/\/indonesiangems.com\/blog\/?p=1478"},"modified":"2021-03-19T06:22:00","modified_gmt":"2021-03-18T22:22:00","slug":"excel-purchase-sales-data-entry-form","status":"publish","type":"post","link":"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/","title":{"rendered":"Purchase\/Sales Data Entry Form in Excel with ActiveX controls"},"content":{"rendered":"<p class=\"last-updated\">Last updated on March 19th, 2021 at 06:22 am<\/p>\n<!--more-->\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link\" href=\"https:\/\/indonesiangems.com\/blog\/membuat-form-input-jual-beli-di-excel\/\">switch language to bahasa<\/a><\/div>\n<\/div>\n\n\n\n<p>The topic in this page is a continuation from the<a href=\"https:\/\/indonesiangems.com\/blog\/accounts-payable-receivable-inventory-pivot-table\/\"> previous page, Pivot Table for Accounts Payable\/Receivable and Inventory<\/a> Now Mr. Adi will make a simple application for Purchase\/Sales Data Entry <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/overview-of-forms-form-controls-and-activex-controls-on-a-worksheet-15ba7e28-8d7f-42ab-9470-ffb9ab94e7c2\" target=\"_blank\" rel=\"noreferrer noopener\">Form<\/a> in Excel using <a href=\"https:\/\/docs.microsoft.com\/en-us\/office\/vba\/excel\/concepts\/controls-dialogboxes-forms\/using-activex-controls-on-a-document\" target=\"_blank\" rel=\"noreferrer noopener\">ActiveX controls<\/a>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Create the form in Excel worksheet<\/em><\/h5>\n\n\n\n<p>First, Mr. Adi create a new sheet and he name the sheet &#8220;SellBuy&#8221;. This is the fifth sheet, after the sheets TABLE, DATA, CUSU and STOCK. <\/p>\n\n\n\n<p><span style=\"text-decoration: underline;\">While sheet &#8220;SellBuy&#8221; active:<\/span><br>In cell E1 type <span style=\"background-color: LightGrey\">=TODAY()<\/span><br>In cell E7 type <span style=\"background-color: LightGrey\">=C7*D7<\/span><br>In cell E17 type <span style=\"background-color: LightGrey\">=SUM(E7:E16)<\/span><br>Copy the formula in cell E7, then paste it to range E8:E16.<\/p>\n\n\n\n<p>The raw design of the form is something like the sample image below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-01_excel-worksheet-form-input.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"473\" src=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-01_excel-worksheet-form-input.gif\" alt=\"Preparation before making a Purchase and Sales Data Entry Form\" class=\"wp-image-1348\"\/><\/a><figcaption><em>Raw design of the Sales and Purchase Data Entry Form<br>(please ignore the foreign name in the image)<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Add the ActiveX controls<\/em><\/h5>\n\n\n\n<p>Still in sheet &#8220;SellBuy&#8221;, within Developer menu tab, click Insert then click Text Box ActiveX control. As seen in the image below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-03_activex-control-insert-menu.png\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"350\" src=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-03_activex-control-insert-menu.png\" alt=\"ActiveX controls in Excel menu\" class=\"wp-image-1350\"\/><\/a><figcaption>A<em>ctiveX controls in Excel menu<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>Put the Text Box on sheet &#8220;CUSU&#8221; by clicking any cell on the sheet, click the Properties button, then type SearchBox for the (Name). Do the same to add the List Box ActiveX control, and name it ListName for the (Name) in the Properties window.  This process is seen in the gif animation below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-04_create-activex-control-on-worksheet.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"490\" src=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-04_create-activex-control-on-worksheet.gif\" alt=\"Add the ActiveX controls needed for the Purchase and Sales Data Entry Form\" class=\"wp-image-1484\"\/><\/a><figcaption>Adding a Text Box and a List Box ActiveX <em>control<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>Next is adding the ActiveX Command Button control then give it a name and it&#8217;s caption. The process is seen in the gif animation below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-05_naming-activex-control.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"396\" src=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-05_naming-activex-control.gif\" alt=\"Add Command Button Control\" class=\"wp-image-1352\"\/><\/a><figcaption>Adding a Command Button control<br>(please ignore the foreign name in the image)<\/figcaption><\/figure><\/div>\n\n\n\n<p>In this case, the form will need six Command Button controls. Below is the table for each control&#8217;s name and\/or caption.<\/p>\n\n\n\n<div style=\"max-width: 360px; margin: auto;\">\n  <table class=\"MyTable\">\n    <tr>\n      <th>Control<\/th>\n      <th>(Name)<\/th>\n      <th>Caption<\/th>\n    <\/tr>\n    <tr>\n      <td>TextBox<\/td>\n      <td>SearchBox<\/td>\n      <td><\/td>\n    <\/tr>\n    <tr>\n      <td>ListBox<\/td>\n      <td>ListName<\/td>\n      <td><\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>CU<\/td>\n      <td>CU<\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>SU<\/td>\n      <td>SU<\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>Item<\/td>\n      <td>Item<\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>Kas_bon<\/td>\n      <td>CASH<\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>NewName<\/td>\n      <td>NEW<\/td>\n    <\/tr>\n    <tr>\n      <td>CommandButton<\/td>\n      <td>InputToData<\/td>\n      <td>Input To Data<\/td>\n    <\/tr>\n    <tr>\n      <td><\/td>\n    <\/tr>\n  <\/table>\n<\/div>\n\n\n\n<p>Below is the image after Mr. Adi add 1 TextBox, 1 ListBox and 6 CommandButton controls.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-06_form-input-jual-beli.png\"><img decoding=\"async\" src=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-06_form-input-jual-beli.png\" alt=\"\" class=\"wp-image-936\"\/><\/a><figcaption><em>ActiveX controls on sheet &#8220;CUSU&#8221;<br>(please ignore the foreign name in the image)<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p>It&#8217;s OK for the time being the controls&#8217; position are still messy. Mr. Adi will tidy them by using a macro code.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Summary<\/em><\/h5>\n\n\n\n<p>Below is the summary table of each control function.<\/p>\n\n\n\n<div style=\"max-width: 640px; margin: auto;\">\n<table class=\"MyTable\"><tr><th>Control&#8217;s Name<\/th><th>Function<\/th><\/tr><tr><td>CU<\/td><td>Sales Transaction &#8211; Get the Customer list name<\/td><\/tr><tr><td>SU<\/td><td>Purchase Transaction &#8211; Get the Supplier list name<\/td><\/tr><tr><td>Item<\/td><td>Get the Item list name<\/td><\/tr><tr><td>CASH<\/td><td>Payment Cash \/ non-Cash<\/td><\/tr><tr><td>SearchBox<\/td><td>type to search a name<\/td><\/tr><tr><td>ListName<\/td><td>List the name according to what is being typed<\/td><\/tr><tr><td>NewName<\/td><td>when there is a new Customer\/Supplier\/Item <\/td><\/tr><tr><td>InputToData<\/td><td>Purchase or Sales Data Entry to the Main Data<\/td><\/tr><\/table>\n<\/div>\n\n\n\n<p>Until here, Mr. Adi has finished a half way in making the Purchase\/Sales Data Entry Form in Excel. In the next page, he will make the macro codes for each controls.<\/p>\n\n\n\n<p>If there is something which is not clear regarding this topic, please don\u2019t hesitate to ask in the Comment box. I\u2019ll try my best to answer.<\/p>\n\n\n\n<div style=\"max-width:800px;text-align:right;\"><button style=\"width:auto\"><a style=\"color:white;\" href=\"https:\/\/www.indonesiangems.com\/blog\/download\/count.php?nm=Sample03a-En\">Download Purchase\/Sales Data Entry Form sample file<\/a><\/button><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Last updated on March 19th, 2021 at 06:22 am<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,12],"tags":[],"class_list":["post-1478","post","type-post","status-publish","format-standard","hentry","category-en","category-excel-application-en","tw-meta-no-icon"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Purchase\/Sales Data Entry Form in Excel with ActiveX controls - part 3<\/title>\n<meta name=\"description\" content=\"Easily create a simple Purchase\/Sales Data Entry Form in Excel. It is used to input a purchase\/sales to the database. Suitable for a beginner.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Purchase\/Sales Data Entry Form in Excel with ActiveX controls - part 3\" \/>\n<meta property=\"og:description\" content=\"Easily create a simple Purchase\/Sales Data Entry Form in Excel. It is used to input a purchase\/sales to the database. Suitable for a beginner.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\" \/>\n<meta property=\"og:site_name\" content=\"Indonesian Gems Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-16T15:16:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-18T22:22:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-01_excel-worksheet-form-input.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"4 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/#website\",\"url\":\"https:\/\/indonesiangems.com\/blog\/\",\"name\":\"Indonesian Gems Blog\",\"description\":\"just want to share what I&#039;ve done so far\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/indonesiangems.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/indonesiangems.com\/blog\/wp-content\/uploads\/2021\/03\/03-01_excel-worksheet-form-input.gif\",\"width\":444,\"height\":473},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/#webpage\",\"url\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\",\"name\":\"Purchase\/Sales Data Entry Form in Excel with ActiveX controls - part 3\",\"isPartOf\":{\"@id\":\"https:\/\/indonesiangems.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/#primaryimage\"},\"datePublished\":\"2021-03-16T15:16:58+00:00\",\"dateModified\":\"2021-03-18T22:22:00+00:00\",\"author\":{\"@id\":\"https:\/\/indonesiangems.com\/blog\/#\/schema\/person\/96961e74ef7272e067370a6e6c4d0efd\"},\"description\":\"Easily create a simple Purchase\/Sales Data Entry Form in Excel. It is used to input a purchase\/sales to the database. Suitable for a beginner.\",\"breadcrumb\":{\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/\",\"url\":\"https:\/\/indonesiangems.com\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\",\"url\":\"https:\/\/indonesiangems.com\/blog\/excel-purchase-sales-data-entry-form\/\",\"name\":\"Purchase\/Sales Data Entry Form in Excel with ActiveX controls\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/#\/schema\/person\/96961e74ef7272e067370a6e6c4d0efd\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/indonesiangems.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/73e0be4b74509a0250ea0115a8fb8b5a132592a52df5ccc0013ac50eb087f578?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/indonesiangems.com\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/posts\/1478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/comments?post=1478"}],"version-history":[{"count":22,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/posts\/1478\/revisions"}],"predecessor-version":[{"id":1613,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/posts\/1478\/revisions\/1613"}],"wp:attachment":[{"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/media?parent=1478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/categories?post=1478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/indonesiangems.com\/blog\/wp-json\/wp\/v2\/tags?post=1478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}