 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Create &#8220;Are you sure you want to &#8230;.&#8221; MsgBox</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 20:11:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: dontgetit</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/#comment-62326</link>
		<dc:creator>dontgetit</dc:creator>
		<pubDate>Thu, 16 Apr 2009 09:55:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-62326</guid>
		<description><![CDATA[thanks!]]></description>
		<content:encoded><![CDATA[<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ledlincoln</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/#comment-62038</link>
		<dc:creator>ledlincoln</dc:creator>
		<pubDate>Wed, 08 Apr 2009 16:21:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-62038</guid>
		<description><![CDATA[Does this help? I included a popup message with the value of the confirm variable in its title bar.

Sub confirmDialog()
&#039; Message to check first
Dim confirm As VbMsgBoxResult
confirm = MsgBox(&quot;Are you sure you want to submit?&quot;, _
vbYesNo, &quot;WARNING: Submit Data&quot;)
If confirm = 6 Then
    &#039; Write data to worksheet
    MsgBox &quot;confirmed&quot;, , confirm
Else
    &#039; no code required here; in fact, you can leave out the Else clause
    MsgBox &quot;not confirmed&quot;, , confirm
End If
End Sub

or, leaving out the Else section:

Sub confirmDialog()
&#039; Message to check first
Dim confirm As VbMsgBoxResult
confirm = MsgBox(&quot;Are you sure you want to submit?&quot;, _
vbYesNo, &quot;WARNING: Submit Data&quot;)
If confirm = 6 Then
    &#039; Write data to worksheet
    MsgBox &quot;confirmed&quot;, , confirm
End If
End Sub]]></description>
		<content:encoded><![CDATA[<p>Does this help? I included a popup message with the value of the confirm variable in its title bar.</p>
<p>Sub confirmDialog()<br />
&#8216; Message to check first<br />
Dim confirm As VbMsgBoxResult<br />
confirm = MsgBox(&#8220;Are you sure you want to submit?&#8221;, _<br />
vbYesNo, &#8220;WARNING: Submit Data&#8221;)<br />
If confirm = 6 Then<br />
    &#8216; Write data to worksheet<br />
    MsgBox &#8220;confirmed&#8221;, , confirm<br />
Else<br />
    &#8216; no code required here; in fact, you can leave out the Else clause<br />
    MsgBox &#8220;not confirmed&#8221;, , confirm<br />
End If<br />
End Sub</p>
<p>or, leaving out the Else section:</p>
<p>Sub confirmDialog()<br />
&#8216; Message to check first<br />
Dim confirm As VbMsgBoxResult<br />
confirm = MsgBox(&#8220;Are you sure you want to submit?&#8221;, _<br />
vbYesNo, &#8220;WARNING: Submit Data&#8221;)<br />
If confirm = 6 Then<br />
    &#8216; Write data to worksheet<br />
    MsgBox &#8220;confirmed&#8221;, , confirm<br />
End If<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dontgetit</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/#comment-62009</link>
		<dc:creator>dontgetit</dc:creator>
		<pubDate>Wed, 08 Apr 2009 09:15:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-62009</guid>
		<description><![CDATA[oops. not quite sure why I put a ? mark after the thanks... no question about that....

ok so i tried

im confirm As VbMsgBoxResult
     
    confirm = MsgBox(&quot;Are you sure you want to submit?&quot;, _
    vbYesNo, &quot;WARNING: Submit Data&quot;)
    If confirm = 6 Then
    Else confirm=7 Then


but I&#039;m guessing that wasn&#039;t very clever because it doesn&#039;t work at all.]]></description>
		<content:encoded><![CDATA[<p>oops. not quite sure why I put a ? mark after the thanks&#8230; no question about that&#8230;.</p>
<p>ok so i tried</p>
<p>im confirm As VbMsgBoxResult</p>
<p>    confirm = MsgBox(&#8220;Are you sure you want to submit?&#8221;, _<br />
    vbYesNo, &#8220;WARNING: Submit Data&#8221;)<br />
    If confirm = 6 Then<br />
    Else confirm=7 Then</p>
<p>but I&#8217;m guessing that wasn&#8217;t very clever because it doesn&#8217;t work at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dontgetit</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-are-you-sure-you-want-to-msgbox/#comment-62008</link>
		<dc:creator>dontgetit</dc:creator>
		<pubDate>Wed, 08 Apr 2009 08:19:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-62008</guid>
		<description><![CDATA[er ok, still very new to this- I only used VBA for the first time yesterday- what exactly do I wirte?  Thanks?]]></description>
		<content:encoded><![CDATA[<p>er ok, still very new to this- I only used VBA for the first time yesterday- what exactly do I wirte?  Thanks?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.011 seconds using memcached
Object Caching 311/312 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 21:54:54 -->