 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Visual Basic for Applications</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/development/visual-basic-for-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:14:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Web services for windows 7</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/web-services-for-windows-7/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/web-services-for-windows-7/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 15:32:05 +0000</pubDate>
		<dc:creator>Smf</dc:creator>
				<category><![CDATA[Office 2003]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>
		<category><![CDATA[WebServices]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows 7 in 2010]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Currently I have excel .xla addin with a macro that was created by the Microsoft Office 2003 Web Services Toolkit.  Works fine with XP and Excel 2003.  Now some users in office have Windows 7 and Excel 2003 and I have to remove the references to the mssoap30.dll and msxml6.dll in order to have the .xla [...]]]></description>
				<content:encoded><![CDATA[<p>Currently I have excel .xla addin with a macro that was created by the Microsoft Office 2003 Web Services Toolkit.  Works fine with XP and Excel 2003.  Now some users in office have Windows 7 and Excel 2003 and I have to remove the references to the mssoap30.dll and msxml6.dll in order to have the .xla addin load correctly.  At this time these Windows 7 users do not use this functionality. I believe the reason is they are missing the two dll&#8217;s mentioned.  <br/><br/> Question: What will I use when we move to a newer version of Excel on Windows 7? All the information I can find says that web services do not work in the newer versions of Excel or windows 7.  It was mentioned to use managed code.  Not sure what they are referring to.  Any suggestions will be appreciated.<br/><br/> TIA<br/><br/> Susan<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/web-services-for-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and replace text in text file using MS Access VBA</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-and-replace-text-in-text-file-using-ms-access-vba/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/find-and-replace-text-in-text-file-using-ms-access-vba/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 23:46:23 +0000</pubDate>
		<dc:creator>Vgnadeau</dc:creator>
				<category><![CDATA[Access 2000]]></category>
		<category><![CDATA[Access VBA]]></category>
		<category><![CDATA[VBA editor]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>
		<category><![CDATA[XML File Creation]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Question Edited by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[Question Edited by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/find-and-replace-text-in-text-file-using-ms-access-vba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VBA Excel &#8211; paste not working</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vba-excel-paste-not-working/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/vba-excel-paste-not-working/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:18:24 +0000</pubDate>
		<dc:creator>Paustin</dc:creator>
				<category><![CDATA[Excel 2007]]></category>
		<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have the following piece of code attached to my Excel worksheet:         ActiveSheet.Shapes(&#8220;Object 407&#8243;).Select         Selection.Copy         Range(&#8220;BP106&#8243;).Select         ActiveSheet.Paste The code is activated by making a choice in a drop down in the worksheet.  The worksheet is password protected but the cell BP106 is not locked. When I make a selection from the [...]]]></description>
				<content:encoded><![CDATA[<p>I have the following piece of code attached to my Excel worksheet:<br/><br/>         ActiveSheet.Shapes(&#8220;Object 407&#8243;).Select         Selection.Copy         Range(&#8220;BP106&#8243;).Select         ActiveSheet.Paste The code is activated by making a choice in a drop down in the worksheet.  The worksheet is password protected but the cell BP106 is not locked.<br/><br/> When I make a selection from the drop down, the shape is not being pasted into BP106.  If I go to a new worksheet I can do a paste command and the shape is pasted.<br/><br/> If I put a breakpoint in the code, and manually step through the code, the shape is pasted into PB106 with no problem.<br/><br/> I can&#8217;t figure out why it works when I manually step through the code but not when the code runs automatically.<br/><br/> How do I figure out what is wrong?<br/><br/> Thanks!<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/vba-excel-paste-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>format cell based on contents using VB</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/format-cell-based-on-contents-using-vb/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/format-cell-based-on-contents-using-vb/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 10:45:52 +0000</pubDate>
		<dc:creator>Voicetec</dc:creator>
				<category><![CDATA[Conditional statements]]></category>
		<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i need to change the color of a cell in a specified column based on the value e,g if A1 value is between 1 and 10 then the colo will be red, if the value is between 11-20 then the color will be green etc. i used conditional formats but they only allow for 3 [...]]]></description>
				<content:encoded><![CDATA[<p>i need to change the color of a cell in a specified column based on the value e,g<br />
if A1 value is between 1 and 10 then the colo will be red, if the value is between 11-20 then the color will be green etc.<br />
i used conditional formats but they only allow for 3 variables i need a script or other that will be this for more than 3 variables. i use excel 2003</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/format-cell-based-on-contents-using-vb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Vlookup Worksheet Function</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vlookup-worksheet-function/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/vlookup-worksheet-function/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 00:21:54 +0000</pubDate>
		<dc:creator>Hunter11</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>
		<category><![CDATA[VLOOKUP function]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I develop and maintain pricing models that involve a lot of looping through cells and applying assumptions. For some reason I never seem to be able to get the vlookup worksheet function to work when looping through cells. It either says &#8216;application-defined or object-defined error&#8217; or more frequently I get something along the lines of [...]]]></description>
				<content:encoded><![CDATA[<p>I develop and maintain pricing models that  involve a lot of looping through cells and applying assumptions. For some reason I never seem to be able to get the vlookup worksheet function to work when looping through cells. It either says &#8216;application-defined or object-defined error&#8217; or more frequently I get something along the lines of &#8216;unable to get the property of the worksheet function class&#8217;. I always end up having VBA insert formulas and then copy and paste special values over the formulas. Because I stick to the basics with my code I can usually get away with not defining my data types…is this the problem? Does it matter if I am looking up data from a range vs. an array?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/vlookup-worksheet-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to create autonumber</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-autonumber/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-autonumber/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 06:46:15 +0000</pubDate>
		<dc:creator>Army</dc:creator>
				<category><![CDATA[AutoNumber]]></category>
		<category><![CDATA[Excel 2007]]></category>
		<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[while press enter on cell (b1) the cell (a1)= 1 while press enter on cell (b2) the cell (a2)= 2 and so on i tried functions : =row() and =OFFSET(A2,-1,0)+1 i don&#8217;t think its an autonumber because i used manualy so, hlp pls]]></description>
				<content:encoded><![CDATA[<p>while press enter on cell (b1)<br />
the cell (a1)= 1<br />
 while press enter on cell (b2)<br />
the cell (a2)= 2<br />
and so on<br />
i tried functions :<br />
=row()<br />
and =OFFSET(A2,-1,0)+1<br />
i don&#8217;t think its an autonumber because i used manualy<br />
so, hlp pls</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-autonumber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Combobox Intro. Question</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/combobox-intro-question/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/combobox-intro-question/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 04:38:06 +0000</pubDate>
		<dc:creator>Kiki8302</dc:creator>
				<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi! I&#8217;m extremely new at using combobox in Excel and I have 2 questions about how to incorporate them into my files. 1.) Is there software that I can use to &#8220;produce&#8221; the VB code I need to set my comboboxes over my Data Validation cells? Not used to actual programing. 2.) I wanted to [...]]]></description>
				<content:encoded><![CDATA[<p>Hi! I&#8217;m extremely new at using combobox in Excel and I have 2 questions about how to incorporate them into my files. 1.) Is there software that I can use to &#8220;produce&#8221; the VB code I need to set my comboboxes over my Data Validation cells? Not used to actual programing. 2.) I wanted to know if there&#8217;s a way to have the &#8220;autocomplete or filter&#8221; work in a way that if I type a letter in, the menu will &#8220;pop out&#8221; with all the values/options that start with that letter, and thus filter them as I keep typing in?&#8211;sort of like the search assistant for yahoo. I&#8217;d greatly appreciate any help anyone can provide. Thanks!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/combobox-intro-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract all instances of a search between two symbols</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/extract-all-instances-of-a-search-between-two-symbols/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/extract-all-instances-of-a-search-between-two-symbols/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 23:33:21 +0000</pubDate>
		<dc:creator>Gotovamsee</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Dear Friends, I have created the following code to search entire C Column from WrkBk1 with &#8220;&#60;*&#62;&#8221; string so as to extract all the matched words into Wrkbk2. for eg a single cell data in Col-C is given below maintaining similar pattern in other cells too. [Cell C1 Data] Enter Pers No. &#60;pernr&#62; Verify: 1. [...]]]></description>
				<content:encoded><![CDATA[<p>Dear Friends,</p>
<p>I have created the following code to search entire C Column from WrkBk1 with &#8220;&lt;*&gt;&#8221; string so as to extract all the matched words into Wrkbk2.</p>
<p>for eg a single cell data in Col-C is given below maintaining similar pattern in other cells too.</p>
<p>[Cell C1 Data]</p>
<p>Enter Pers No. &lt;pernr&gt;<br />
Verify:<br />
1. Effective Date &lt;effdate&gt;<br />
2. Action Type &lt;actiontype&gt;<br />
3. Action Reason &lt;actreason&gt;<br />
4. Organisational Assignment &lt;orgassignment&gt;<br />
5. Last Working Day &lt;lastwrkgday&gt;<br />
6. Eligible for Rehire &lt;Eligrehire&gt;</p>
<p>Now my code below is pulling full para between first and last &#8220;&lt;&#8221;  &#8220;&gt;&#8221; instead of all the words in &lt;&gt;.</p>
<p>Here it is below:</p>
<p>Sub GetFullName()<br />
    Dim str1 As String, str2 As String, rng As Range, beginPos As Integer, endPos As Integer<br />
    str1 = InputBox(&#8220;String start?&#8221;)<br />
    str2 = InputBox(&#8220;String end?&#8221;)<br />
    For Each rng In Range(&#8220;A1&#8243;, Range(&#8220;A1&#8243;).End(xlDown))<br />
        beginPos = InStr(1, rng.Value, str1)<br />
        On Error Resume Next<br />
        endPos = InStr(beginPos, rng.Value, str2)<br />
        On Error GoTo 0<br />
        If endPos = 0 Then endPos = Len(rng.Value) + 1<br />
        If InStr(1, rng.Value, str1) &gt; 0 Then<br />
            rng.Offset(0, 1) = Mid(rng.Value, beginPos, endPos)<br />
        End If<br />
    Next rng<br />
End Sub</p>
<p>My actual out put should be split and extracted to new Wrkbk2 with 3rd adjacent cel being name of the source workbook:</p>
<p>For Eg:</p>
<p>   A        B      C<br />
Pers No. &lt;pernr&gt; WrkBk1<br />
Effective Date &lt;effdate&gt; WrkBk1<br />
Action Type &lt;actiontype&gt; WrkBk1<br />
Action Reason &lt;actreason&gt; WrkBk1</p>
<p>Any VB/Macro experts please suggest some code change so that it works as desired.</p>
<p>Quick responses are highly appreciated.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/extract-all-instances-of-a-search-between-two-symbols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel VBA cell.find</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/excel-vba-cellfind/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/excel-vba-cellfind/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 06:18:42 +0000</pubDate>
		<dc:creator>Sswcharlie</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have this code recorded by XL. Works ok. ** Cells.Find(What:=&#8221;dd&#8221;, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _ .Activate End Sub ** In the first part &#8211; (What=&#8221;dd&#8221;, I want the macro to read Cell G1 and looks for text that is in that cell.. G1 changes often. Thanks Charlie]]></description>
				<content:encoded><![CDATA[<p>I have this code recorded by XL.  Works ok.<br />
**<br />
Cells.Find(What:=&#8221;dd&#8221;, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _<br />
        xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _<br />
        .Activate<br />
End Sub</p>
<p>**</p>
<p>In the first part &#8211;  (What=&#8221;dd&#8221;,<br />
I want the macro to read  Cell G1 and looks for text that is in that cell..  G1 changes often.</p>
<p>Thanks</p>
<p>Charlie</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/excel-vba-cellfind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBA copying a range from Excel and pasting to a text file</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vba-copying-a-range-from-excel-and-pasting-to-a-text-file/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/vba-copying-a-range-from-excel-and-pasting-to-a-text-file/#comments</comments>
		<pubDate>Wed, 27 May 2009 21:38:45 +0000</pubDate>
		<dc:creator>TBone55</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Discussion Post by]]></description>
				<content:encoded><![CDATA[New Discussion Post by ]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/vba-copying-a-range-from-excel-and-pasting-to-a-text-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/30 queries in 0.032 seconds using memcached
Object Caching 936/1090 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 13:37:22 -->