{"id":3304,"date":"2021-05-04T10:28:31","date_gmt":"2021-05-04T17:28:31","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=3304"},"modified":"2021-05-04T10:31:42","modified_gmt":"2021-05-04T17:31:42","slug":"how-to-put-double-quotes-quotation-marks-in-excel-vba","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=3304","title":{"rendered":"How to Put Double Quotes (Quotation Marks) &#8220;&#8221; in Excel VBA?"},"content":{"rendered":"\n<p><a href=\"https:\/\/stackoverflow.com\/posts\/9024764\/timeline\"><\/a>I find the easiest way is to double up on the quotes to handle a quote.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Worksheets(\"Sheet1\").Range(\"A1\").Formula = \"IF(Sheet1!A1=0,\"\"\"\"\"\",Sheet1!A1)\" \n<\/code><\/pre>\n\n\n\n<p>Some people like to use CHR(34)*:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Worksheets(\"Sheet1\").Range(\"A1\").Formula = \"IF(Sheet1!A1=0,\" &amp; CHR(34) &amp; CHR(34) &amp; \",Sheet1!A1)\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"715\" height=\"147\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2021\/05\/double-quotatoins.png\" alt=\"\" class=\"wp-image-3305\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2021\/05\/double-quotatoins.png 715w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2021\/05\/double-quotatoins-300x62.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><figcaption>A Sample on my VBA for how to deal with double quotas<\/figcaption><\/figure>\n\n\n\n<p>In this sample, the formula will check if D2 contains a space or not, Like &#8221; &#8221; and then decide which calculation to apply.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I find the easiest way is to double up on the quotes to handle a quote. Some people like to use CHR(34)*: In this sample, the formula will check if D2 contains a space or not, Like &#8221; &#8221; and then decide which calculation to apply.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,18],"tags":[711,709,710],"class_list":["post-3304","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-microsoft-office","tag-double-quotation-marks-in-excel-vba","tag-double-quotes-in-excel-vba","tag-double-quotes-in-excel-vba-2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3304"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3304\/revisions"}],"predecessor-version":[{"id":3308,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3304\/revisions\/3308"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}