{"id":4338,"date":"2023-07-11T21:36:35","date_gmt":"2023-07-11T21:36:35","guid":{"rendered":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/"},"modified":"2023-07-11T21:36:35","modified_gmt":"2023-07-11T21:36:35","slug":"vba-eger-hucre-iceriyorsa","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/","title":{"rendered":"Vba: &quot;h\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">VBA&#8217;da &#8220;h\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&#8221; form\u00fcl\u00fcn\u00fc kullanmak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #0000ff;\">Sub<\/span> IfContains()\n    <span style=\"color: #0000ff;\">Dim<\/span> i <span style=\"color: #0000ff;\">As<\/span> Integer\n\n    <span style=\"color: #0000ff;\">For<\/span> i = 2 <span style=\"color: #0000ff;\">To<\/span> 8\n        <span style=\"color: #0000ff;\">If<\/span> InStr(1, LCase(Range(\" <span style=\"color: #ff0000;\">A<\/span> \" &amp; i)), \" <span style=\"color: #ff0000;\">turtle<\/span> \") &lt;&gt; 0 <span style=\"color: #0000ff;\">Then<\/span>\n        Result = \" <span style=\"color: #ff0000;\">Contains Turtle<\/span> \"\n        <span style=\"color: #0000ff;\">Else<\/span>\n        Result = \u201c <span style=\"color: #ff0000;\">Does Not Contain Turtle<\/span> \u201d\n        <span style=\"color: #0000ff;\">End If<\/span>\n    Range(\" <span style=\"color: #ff0000;\">B<\/span> \" &amp; i) = Result\n    <span style=\"color: #0000ff;\">Next<\/span> i\n<span style=\"color: #0000ff;\">End Sub\n<\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Bu \u00f6zel \u00f6rnek, <strong>A2:A8<\/strong> aral\u0131\u011f\u0131ndaki her h\u00fccrenin &#8220;kaplumba\u011fa&#8221; i\u00e7erip i\u00e7ermedi\u011fini kontrol eder, ard\u0131ndan <strong>B2:B8<\/strong> aral\u0131\u011f\u0131nda e\u015fle\u015fen her h\u00fccreye &#8220;Kaplumba\u011fa i\u00e7erir&#8221; veya &#8220;Kaplumba\u011fa i\u00e7ermez&#8221; ifadesini atar.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Not<\/strong> : <strong>Instr<\/strong> y\u00f6ntemi, bir dizenin ba\u015fka bir dize i\u00e7erip i\u00e7ermedi\u011fini kontrol eder ve <strong>LCase<\/strong> y\u00f6ntemi, b\u00fcy\u00fck\/k\u00fc\u00e7\u00fck harfe duyarl\u0131 olmayan bir arama ger\u00e7ekle\u015ftirmek i\u00e7in metni k\u00fc\u00e7\u00fck harfe d\u00f6n\u00fc\u015ft\u00fcr\u00fcr.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnek, bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek: VBA&#8217;da &#8220;H\u00fccre i\u00e7eriyorsa&#8221; nas\u0131l kullan\u0131l\u0131r?<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Excel&#8217;de her biri farkl\u0131 metin i\u00e7eren a\u015fa\u011f\u0131daki h\u00fccre listesine sahip oldu\u011fumuzu varsayal\u0131m:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-34084 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/vbacontain1.jpg\" alt=\"\" width=\"507\" height=\"410\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\"><strong>A2:A8<\/strong> aral\u0131\u011f\u0131ndaki her h\u00fccrenin &#8220;kaplumba\u011fa&#8221; metnini i\u00e7erip i\u00e7ermedi\u011fini kontrol etmek ve sonu\u00e7lar\u0131 <strong>B2:B8<\/strong> aral\u0131\u011f\u0131nda kar\u015f\u0131l\u0131k gelen h\u00fccrelerde g\u00f6r\u00fcnt\u00fclemek istedi\u011fimizi varsayal\u0131m.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bunun i\u00e7in a\u015fa\u011f\u0131daki makroyu olu\u015fturabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #0000ff;\">Sub<\/span> IfContains()\n    <span style=\"color: #0000ff;\">Dim<\/span> i <span style=\"color: #0000ff;\">As<\/span> Integer\n\n    <span style=\"color: #0000ff;\">For<\/span> i = 2 <span style=\"color: #0000ff;\">To<\/span> 8\n        <span style=\"color: #0000ff;\">If<\/span> InStr(1, LCase(Range(\" <span style=\"color: #ff0000;\">A<\/span> \" &amp; i)), \" <span style=\"color: #ff0000;\">turtle<\/span> \") &lt;&gt; 0 <span style=\"color: #0000ff;\">Then<\/span>\n        Result = \" <span style=\"color: #ff0000;\">Contains Turtle<\/span> \"\n        <span style=\"color: #0000ff;\">Else<\/span>\n        Result = \u201c <span style=\"color: #ff0000;\">Does Not Contain Turtle<\/span> \u201d\n        <span style=\"color: #0000ff;\">End If<\/span>\n    Range(\" <span style=\"color: #ff0000;\">B<\/span> \" &amp; i) = Result\n    <span style=\"color: #0000ff;\">Next<\/span> i\n<span style=\"color: #0000ff;\">End Sub<\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Bu makroyu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131m\u0131zda a\u015fa\u011f\u0131daki \u00e7\u0131kt\u0131y\u0131 al\u0131yoruz:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-34085 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/vbacontain2.jpg\" alt=\"\" width=\"516\" height=\"425\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">B s\u00fctunu, A s\u00fctunundaki kar\u015f\u0131l\u0131k gelen h\u00fccrelerin metnin herhangi bir yerinde \u201ckaplumba\u011fa\u201d ifadesini i\u00e7erip i\u00e7ermedi\u011fini bize s\u00f6yler.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\"><strong>Not<\/strong> : VBA <strong>Instr<\/strong> y\u00f6ntemine ili\u015fkin t\u00fcm belgeleri <a href=\"https:\/\/learn.microsoft.com\/en-us\/office\/vba\/language\/reference\/user-interface-help\/instr-function\" target=\"_blank\" rel=\"noopener\">burada<\/a> bulabilirsiniz.<\/span><\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde VBA&#8217;da di\u011fer ortak g\u00f6revlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/vba-dizedeki-karakter-olusumlarini-sayar\/\" target=\"_blank\" rel=\"noopener\">VBA: Bir dizedeki karakterlerin olu\u015fumlar\u0131 nas\u0131l say\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/vba-dize-iceriyor\/\" target=\"_blank\" rel=\"noopener\">VBA: bir dizenin ba\u015fka bir dize i\u00e7erip i\u00e7ermedi\u011fi nas\u0131l kontrol edilir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBA&#8217;da &#8220;h\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&#8221; form\u00fcl\u00fcn\u00fc kullanmak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz: Sub IfContains() Dim i As Integer For i = 2 To 8 If InStr(1, LCase(Range(&#8221; A &#8221; &amp; i)), &#8221; turtle &#8220;) &lt;&gt; 0 Then Result = &#8221; Contains Turtle &#8221; Else Result = \u201c Does Not Contain Turtle \u201d End If Range(&#8221; B [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-4338","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, VBA&#039;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, VBA&#039;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-11T21:36:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/vbacontain1.jpg\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/\",\"url\":\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/\",\"name\":\"VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-11T21:36:35+00:00\",\"dateModified\":\"2023-07-11T21:36:35+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, VBA&#39;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vba: &quot;h\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials","description":"Bu e\u011fitimde, VBA&#39;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/","og_locale":"tr_TR","og_type":"article","og_title":"VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials","og_description":"Bu e\u011fitimde, VBA&#39;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/","og_site_name":"Statorials","article_published_time":"2023-07-11T21:36:35+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/vbacontain1.jpg"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/","url":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/","name":"VBA: &quot;H\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-11T21:36:35+00:00","dateModified":"2023-07-11T21:36:35+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, VBA&#39;da &quot;h\u00fccre i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl\u00fcn nas\u0131l yaz\u0131laca\u011f\u0131 bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/vba-eger-hucre-iceriyorsa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Vba: &quot;h\u00fccre \u015funlar\u0131 i\u00e7eriyorsa&quot; i\u00e7in basit bir form\u00fcl"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/4338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=4338"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/4338\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=4338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=4338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=4338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}