<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VBForums</title>
		<link>http://www.vbforums.com</link>
		<description>Visual Basic Discussions plus .NET, C#, game programming, and more (http://www.VBForums.com)</description>
		<language>en</language>
		<lastBuildDate>Thu, 17 May 2012 06:14:40 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.jpg</url>
			<title>VBForums</title>
			<link>http://www.vbforums.com</link>
		</image>
		<item>
			<title>An urgent problem</title>
			<link>http://www.vbforums.com/showthread.php?t=679774&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 05:47:48 GMT</pubDate>
			<description><![CDATA[Hi! I am new to this forum. I am working on a project on library automation in vb6 and having a problem. I want to read the list of all books from a database named "books" an display it to the user in a dropdown menu and the selected item (book) should move to another database named "issued books". Any idea how to do this ? Please help me .]]></description>
			<content:encoded><![CDATA[<div>Hi! I am new to this forum. I am working on a project on library automation in vb6 and having a problem. I want to read the list of all books from a database named &quot;books&quot; an display it to the user in a dropdown menu and the selected item (book) should move to another database named &quot;issued books&quot;. Any idea how to do this ? Please help me .</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=3">Database Development</category>
			<dc:creator>abhishektrivedi</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679774</guid>
		</item>
		<item>
			<title>me.suspendlayout() not working</title>
			<link>http://www.vbforums.com/showthread.php?t=679773&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 05:26:38 GMT</pubDate>
			<description>i noticed that me.suspendlayout() doesnt work. i removed me.resumelayout() which was after some controls.add lines and it still adds the controls.</description>
			<content:encoded><![CDATA[<div>i noticed that me.suspendlayout() doesnt work. i removed me.resumelayout() which was after some controls.add lines and it still adds the controls.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>dylanthepiguy</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679773</guid>
		</item>
		<item>
			<title>Rows of Different sizes in crystal reports</title>
			<link>http://www.vbforums.com/showthread.php?t=679771&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 04:46:24 GMT</pubDate>
			<description>Hello
Some of the fields in my reports are of different sizes. Is it not possible to add the line dynamically to each row. Right it is static. Hence the field with more text are appearing after the line. PLease advise.
Rgds,
ashley</description>
			<content:encoded><![CDATA[<div>Hello<br />
Some of the fields in my reports are of different sizes. Is it not possible to add the line dynamically to each row. Right it is static. Hence the field with more text are appearing after the line. PLease advise.<br />
Rgds,<br />
ashley</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=33">Reporting (Crystal, Access and Data Designer)</category>
			<dc:creator>ashley.s</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679771</guid>
		</item>
		<item>
			<title>Handling control attributes within a GroupBox Control?</title>
			<link>http://www.vbforums.com/showthread.php?t=679770&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 04:02:30 GMT</pubDate>
			<description><![CDATA[I have a form in which their is a GroupBox control. I set the Font's Bold property to TRUE. I know that by default any other control put inside a gorupbox will inherit the Font's property settings. I have textboxes and labels in which I manually reset the Font Bold property to FALSE, however, I have a DataGridView that I did the same thing with but whenever I run the app in test mode, it reverts back to the Fonts' Bold property as TRUE rather than FALSE. How do I rectify this?

Thanks,]]></description>
			<content:encoded><![CDATA[<div>I have a form in which their is a GroupBox control. I set the Font's Bold property to TRUE. I know that by default any other control put inside a gorupbox will inherit the Font's property settings. I have textboxes and labels in which I manually reset the Font Bold property to FALSE, however, I have a DataGridView that I did the same thing with but whenever I run the app in test mode, it reverts back to the Fonts' Bold property as TRUE rather than FALSE. How do I rectify this?<br />
<br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>blakemckenna</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679770</guid>
		</item>
		<item>
			<title>Overflow error when loading DataEnvironment</title>
			<link>http://www.vbforums.com/showthread.php?t=679769&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 03:58:55 GMT</pubDate>
			<description><![CDATA[Hi,
     I need advice on overflow error. I'm having the error when the data environment loads. I'm really sure its because of the data because it works with test data but have the error in production data.
     But I'm not sure on how to troubleshoot because the error appears when the data environment loads but not in any of my codes. :huh:

Please help, advance thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
     I need advice on overflow error. I'm having the error when the data environment loads. I'm really sure its because of the data because it works with test data but have the error in production data.<br />
     But I'm not sure on how to troubleshoot because the error appears when the data environment loads but not in any of my codes. :huh:<br />
<br />
Please help, advance thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=1">Visual Basic 6 and Earlier</category>
			<dc:creator>Fali Sheru</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679769</guid>
		</item>
		<item>
			<title>VS 2008 Find an image on screen</title>
			<link>http://www.vbforums.com/showthread.php?t=679768&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 03:51:12 GMT</pubDate>
			<description><![CDATA[Hi,

I am trying to code something that will check if a png image is visible on your screen.

So lets say the image is a purple square with yellow circles in it (random example). It will keep checking to see if the same purple square with yellow circles is on your screen.

What i'm trying to say is, instead of checking for one pixel color, check to see if the actual image is on there (maybe multiple pixels?)

Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to code something that will check if a png image is visible on your screen.<br />
<br />
So lets say the image is a purple square with yellow circles in it (random example). It will keep checking to see if the same purple square with yellow circles is on your screen.<br />
<br />
What i'm trying to say is, instead of checking for one pixel color, check to see if the actual image is on there (maybe multiple pixels?)<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>yoni201</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679768</guid>
		</item>
		<item>
			<title>VS 2010 .net framework 3.50</title>
			<link>http://www.vbforums.com/showthread.php?t=679766&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 03:11:28 GMT</pubDate>
			<description><![CDATA[My application is looking for .Net Framework 4.0 but I only have 3.5 on my machine so I get an error. 

How can I get my application to work on 3.5 only?

Is there some code which is 4.0 code only? which creates this error?

As this is corperate computer I can't upgrade to 4.0 myself either.]]></description>
			<content:encoded><![CDATA[<div>My application is looking for .Net Framework 4.0 but I only have 3.5 on my machine so I get an error. <br />
<br />
How can I get my application to work on 3.5 only?<br />
<br />
Is there some code which is 4.0 code only? which creates this error?<br />
<br />
As this is corperate computer I can't upgrade to 4.0 myself either.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>ubkra</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679766</guid>
		</item>
		<item>
			<title>Translucent text</title>
			<link>http://www.vbforums.com/showthread.php?t=679765&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 02:52:22 GMT</pubDate>
			<description><![CDATA[I'd like to write an application that is similar to TransClock, where the only thing that appears on the desktop is the time and the opacity of the numbers can be changed from fully visible to transparent.  I've played around with the form's opacity but obviously that's not the solution.  I'd like to have the form not visible with the text being visible.  Any suggestions or directions to look?]]></description>
			<content:encoded><![CDATA[<div>I'd like to write an application that is similar to TransClock, where the only thing that appears on the desktop is the time and the opacity of the numbers can be changed from fully visible to transparent.  I've played around with the form's opacity but obviously that's not the solution.  I'd like to have the form not visible with the text being visible.  Any suggestions or directions to look?</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>AllanB1</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679765</guid>
		</item>
		<item>
			<title>VS 2010 Folder security permission</title>
			<link>http://www.vbforums.com/showthread.php?t=679764&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 02:20:31 GMT</pubDate>
			<description><![CDATA[Hello, All.

I'm in the mid of creating a program that will get the security permissions of a certain folder/s but some properties of the security permissions of a certain folder I can't query or get the values. I'm using VB.NET 2010

This what I want to get in every permission
Apply to:
This folder and subfolders
This folder, subfolders and files
Subfolder and files

etc...

I attached the picture so you could see what I'm saying.
I'm just noob in programming:( so please bear with me.

Thank you.]]></description>
			<content:encoded><![CDATA[<div>Hello, All.<br />
<br />
I'm in the mid of creating a program that will get the security permissions of a certain folder/s but some properties of the security permissions of a certain folder I can't query or get the values. I'm using VB.NET 2010<br />
<br />
This what I want to get in every permission<br />
Apply to:<br />
This folder and subfolders<br />
This folder, subfolders and files<br />
Subfolder and files<br />
<br />
etc...<br />
<br />
I attached the picture so you could see what I'm saying.<br />
I'm just noob in programming:( so please bear with me.<br />
<br />
Thank you.</div>


	<br />
	<div style="padding:3px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<div style="padding:2px">
			<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=88759&amp;stc=1&amp;d=1337221175" border="0" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>aljeff</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679764</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] MS Access: problem with autonumber at where clause]]></title>
			<link>http://www.vbforums.com/showthread.php?t=679762&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 01:05:52 GMT</pubDate>
			<description><![CDATA[I have a table [MemberShip]


Code:
---------
member_no       	AutoNumber
member_name   		Text
Address            	Text
DateIssue          	Date
DateExpire         	Date
---------
I have insert some data into the table, but when I display the data with a select statement, it fail. Any idea?


Code:
---------
SELECT *
FROM membership
WHERE member_no =  100000002;
---------
]]></description>
			<content:encoded><![CDATA[<div>I have a table [MemberShip]<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">member_no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  AutoNumber<br />
member_name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Text<br />
Address&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Text<br />
DateIssue&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Date<br />
DateExpire&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Date</code><hr />
</div>I have insert some data into the table, but when I display the data with a select statement, it fail. Any idea?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">SELECT *<br />
FROM membership<br />
WHERE member_no =&nbsp; 100000002;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=3">Database Development</category>
			<dc:creator>vandoren</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679762</guid>
		</item>
		<item>
			<title>VS 2010 Excel INDIRECT function = #REF</title>
			<link>http://www.vbforums.com/showthread.php?t=679761&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 23:38:58 GMT</pubDate>
			<description>I have 2 excel files.
The first one contains data that is used from the 2nd one that uses the INDIRECT function.
If I open the files manually, the data in the cells are all ok (no matter in which order I open them).

IF the file containing the Indirect function is opened using VB.net interop, The cells always show #REF and are never updated even if the other file is opened.

I tried a lot of functions and options(Calculate, CalculateFull, CalculateFullRebuild, Refresh, RefreshAll, ForceFullCalculation, UpdateRemoteReferences...). Nothing worked so far.

I need to refresh the cells from VB.Net. Or maybe do it from an Excel function called from VB.Net

How can I refresh those cells?</description>
			<content:encoded><![CDATA[<div>I have 2 excel files.<br />
The first one contains data that is used from the 2nd one that uses the INDIRECT function.<br />
If I open the files manually, the data in the cells are all ok (no matter in which order I open them).<br />
<br />
IF the file containing the Indirect function is opened using VB.net interop, The cells always show #REF and are never updated even if the other file is opened.<br />
<br />
I tried a lot of functions and options(Calculate, CalculateFull, CalculateFullRebuild, Refresh, RefreshAll, ForceFullCalculation, UpdateRemoteReferences...). Nothing worked so far.<br />
<br />
I need to refresh the cells from VB.Net. Or maybe do it from an Excel function called from VB.Net<br />
<br />
How can I refresh those cells?</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>StephM</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679761</guid>
		</item>
		<item>
			<title>VS 02/03 tic tac toe error</title>
			<link>http://www.vbforums.com/showthread.php?t=679760&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 23:13:44 GMT</pubDate>
			<description>I get this error with my tic tac toe game when it checks for a win. The first row, first column, and both diagonals work, but the last two rows and columns do not. I have no clue what to do. Any suggestions?

I have attached the code along with some comments to help you understand it and a marked screenshot for reference.</description>
			<content:encoded><![CDATA[<div>I get this error with my tic tac toe game when it checks for a win. The first row, first column, and both diagonals work, but the last two rows and columns do not. I have no clue what to do. Any suggestions?<br />
<br />
I have attached the code along with some comments to help you understand it and a marked screenshot for reference.</div>


	<br />
	<div style="padding:3px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<div style="padding:2px">
			<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=88753&amp;stc=1&amp;d=1337209942" border="0" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="2" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.vbforums.com/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.vbforums.com/attachment.php?attachmentid=88752&amp;d=1337209933">win error report.txt</a> (7.7 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>Cerealkiller</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679760</guid>
		</item>
		<item>
			<title>Beginners book for visual basic 2010</title>
			<link>http://www.vbforums.com/showthread.php?t=679759&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 23:00:13 GMT</pubDate>
			<description>Hello, anyone recommend a beginners book for visual basic 2010 ??? leemme know thanks</description>
			<content:encoded><![CDATA[<div>Hello, anyone recommend a beginners book for visual basic 2010 ??? leemme know thanks</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>BoDikens</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679759</guid>
		</item>
		<item>
			<title>Need some new eyes for refactoring....</title>
			<link>http://www.vbforums.com/showthread.php?t=679758&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 22:55:17 GMT</pubDate>
			<description><![CDATA[I wrote a bunch of VB/VBA and it seems to be running a little slow. The following process takes 20ish seconds to complete and I was wondering if anyone see's any areas that could be improved for better performance.


  Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
        Dim datenow As String = DateTime.Now.ToString("MMM dd")
        xlApp = New Excel.Application
        xlbook = xlApp.Workbooks.Open(xlspath)
        xlsheet1 = xlbook.Worksheets("Sheet1")
        xlbook.Sheets("Sheet1").Name = "Summary"
        xlbook.Sheets("Sheet2").delete()
        xlbook.Sheets("Sheet3").delete()
        With xlsheet1
             .Columns("K:J").delete()
             .Columns("A:A").delete()
             .Columns("B:B").insert()
             .Cells(1, 1).Copy()
             .Cells(1, 2).PasteSpecial(Paste:=Excel.Constants.xlFormats, Operation:=Excel.Constants.xlNone, SkipBlanks:=False, Transpose:=False)
             .Cells(1, 2) = "Pic"
             .Cells(1, 8) = "APP"
             .Cells(1, 9) = "APP Version"
        End With

        Dim lastsheet = "Summary"
        For x = 2 To xlsheet1.Rows.Count
            If xlsheet1.Cells(x, 1).value = Nothing Then
                Exit For
            Else
                xlbook.Worksheets.Add(After:=xlbook.Worksheets(lastsheet))
                lastsheet = CStr(xlsheet1.Cells(x, 1).value)
                xlbook.Sheets(CStr("Sheet" & CStr(x - 1))).Name = lastsheet
                For y = 1 To xlsheet1.Columns.Count
                    If xlsheet1.Cells(1, y).value = Nothing Then
                        Exit For
                    Else
                        xlsheet1.Cells(1, y).Copy()
                        With xlbook.Sheets(lastsheet)
                            .cells(1, y).PasteSpecial(Paste:=Excel.Constants.xlFormats, Operation:=Excel.Constants.xlNone, SkipBlanks:=False, Transpose:=False)
                            .cells(1, y) = xlsheet1.Cells(1, y).value
                            .cells(2, y) = xlsheet1.Cells(x, y).value
                        End With
                    End If
                Next
                With xlbook.Sheets(lastsheet)
                    .columns("B:B").delete()
                    .columns("A:k").HorizontalAlignment = Excel.Constants.xlLeft
                    .columns("A:k").VerticalAlignment = Excel.Constants.xlTop
                    .columns("A:k").wraptext = True
                    .columns("A:k").autofit()
                    .columns("i:i").columnwidth = 20
                    .columns("j:j").columnwidth = 60
                    .columns("K:K").columnwidth = 60
                    .rows("1:100").autofit()
                End With
                xlsheet1.Hyperlinks.Add(Anchor:=xlsheet1.Cells(x, 1), Address:="", SubAddress:="'" & lastsheet & "'!A1", TextToDisplay:=(lastsheet))
                Dim pix = 100
                Dim txt = 215
                For Each foundFile As String In My.Computer.FileSystem.GetFiles(ComboBox1.SelectedItem, FileIO.SearchOption.SearchTopLevelOnly, "*" & lastsheet & "*")
                    Dim extension = Path.GetExtension(foundFile).ToLower.ToString
                    If extension = ".log" Or extension = ".txt" Then
                        xlbook.Sheets(lastsheet).OLEObjects.Add(FileName:=foundFile, Link:=False, DisplayAsIcon:=True, IconFileName:=Environment.GetFolderPath(Environment.SpecialFolder.Windows) & "\Notepad.exe", IconIndex:=0, IconLabel:=Path.GetFileName(foundFile), Left:=265, Top:=txt, Width:=75, Height:=75)
                        txt += 80
                        xlsheet1.Cells(x, 2) = xlsheet1.Cells(x, 2).value + "X"
                    ElseIf extension = ".png" Or extension = ".jpg" Or extension = ".jpeg" Or extension = ".gif" Then
                        xlbook.Sheets(lastsheet).Shapes.AddPicture(foundFile, Microsoft.Office.Core.MsoTriState.msoCTrue, Microsoft.Office.Core.MsoTriState.msoCTrue, 25, pix, 215, 350)
                        pix += 350
                        xlsheet1.Cells(x, 2) = xlsheet1.Cells(x, 2).value + "X"
                    End If
                Next
            End If
        Next
        With xlsheet1
            .Columns("D:D").delete()
            .Columns("J:L").delete()
            .Columns("C:C").delete()
            .Columns("A:K").autofit()
            .Columns("A:G").HorizontalAlignment = Excel.Constants.xlCenter
            .Cells(1, 8).HorizontalAlignment = Excel.Constants.xlCenter
            .Columns("A:H").VerticalAlignment = Excel.Constants.xlTop
        End With
        Dim sheet As Excel.Worksheet
        Dim title = xlsheet1.Cells(2, 6).value & "v" & xlsheet1.Cells(2, 7).value & " Defects " & xlsheet1.Cells(2, 3).value & " " & datenow & ".xls"
        Dim header = "&20 &B" & xlsheet1.Cells(2, 6).value & " " & xlsheet1.Cells(2, 7).value
        For Each sheet In xlbook.Worksheets
            sheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape
            sheet.PageSetup.LeftHeader = "&D &T"
            sheet.PageSetup.CenterHeader = header.ToString
            sheet.PageSetup.LeftFooter = title.ToString
            sheet.PageSetup.RightFooter = "&P/&N"
            sheet.PageSetup.Zoom = False
            sheet.PageSetup.FitToPagesTall = 2
            sheet.PageSetup.FitToPagesWide = 1
        Next
        xlsheet1.Activate()
        xlbook.SaveAs(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\" & title.ToString)
CloseExcel()
End Sub

What the program does is load an exported excel report from another program and reconfigures it. First thing it does is it makes a new tab for each row, then it looks through a file for pictures or text documents containing the same name and attaches them. Finally, it changes the print settings and saves it to the desktop. I seem to have hit a small wall, and other then some syntax here and there Im not seeing much else.

Any and all suggestions are appreciated.

Zach

*edit - If anyone would like to see a sample unedited report or the finished product, let me know.]]></description>
			<content:encoded><![CDATA[<div>I wrote a bunch of VB/VBA and it seems to be running a little slow. The following process takes 20ish seconds to complete and I was wondering if anyone see's any areas that could be improved for better performance.<br />
<br />
<div class="konafilter">
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">vb Code:</div>
	<pre class="alt2" style="margin:0px; padding:3px; border:1px inset; width:780px; height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="vb"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000099;">Private</span> <span style="color: #000099;">Sub</span> Button3_Click<span style="color: #66cc66;">&#40;</span>sender <span style="color: #000099;">As</span> System.<span style="">Object</span>, e <span style="color: #000099;">As</span> System.<span style="">EventArgs</span><span style="color: #66cc66;">&#41;</span> Handles Button3.<span style="">Click</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> datenow <span style="color: #000099;">As</span> <span style="color: #000099;">String</span> = DateTime.<span style="color: #000099;">Now</span>.<span style="">ToString</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"MMM dd"</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlApp = <span style="color: #000099;">New</span> Excel.<span style="">Application</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlbook = xlApp.<span style="">Workbooks</span>.<span style="color: #000099;">Open</span><span style="color: #66cc66;">&#40;</span>xlspath<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlsheet1 = xlbook.<span style="">Worksheets</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"Sheet1"</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"Sheet1"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000099;">Name</span> = <span style="color: #7F5F00;">"Summary"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"Sheet2"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"Sheet3"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">With</span> xlsheet1</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"K:J"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:A"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"B:B"</span><span style="color: #66cc66;">&#41;</span>.<span style="">insert</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="">Copy</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>.<span style="">PasteSpecial</span><span style="color: #66cc66;">&#40;</span>Paste:=Excel.<span style="">Constants</span>.<span style="">xlFormats</span>, Operation:=Excel.<span style="">Constants</span>.<span style="">xlNone</span>, SkipBlanks:=<span style="color: #000099;">False</span>, Transpose:=<span style="color: #000099;">False</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #7F5F00;">"Pic"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #7F5F00;">"APP"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">9</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #7F5F00;">"APP Version"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">With</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> lastsheet = <span style="color: #7F5F00;">"Summary"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">For</span> x = <span style="color: #cc66cc;">2</span> <span style="color: #000099;">To</span> xlsheet1.<span style="">Rows</span>.<span style="color: #000099;">Count</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">If</span> xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> = <span style="color: #000099;">Nothing</span> <span style="color: #000099;">Then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Exit</span> <span style="color: #000099;">For</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Worksheets</span>.<span style="">Add</span><span style="color: #66cc66;">&#40;</span>After:=xlbook.<span style="">Worksheets</span><span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lastsheet = <span style="color: #000099;">CStr</span><span style="color: #66cc66;">&#40;</span>xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span><span style="color: #000099;">CStr</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"Sheet"</span> &amp; <span style="color: #000099;">CStr</span><span style="color: #66cc66;">&#40;</span>x - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000099;">Name</span> = lastsheet</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">For</span> y = <span style="color: #cc66cc;">1</span> <span style="color: #000099;">To</span> xlsheet1.<span style="">Columns</span>.<span style="color: #000099;">Count</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">If</span> xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, y<span style="color: #66cc66;">&#41;</span>.<span style="">value</span> = <span style="color: #000099;">Nothing</span> <span style="color: #000099;">Then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Exit</span> <span style="color: #000099;">For</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, y<span style="color: #66cc66;">&#41;</span>.<span style="">Copy</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">With</span> xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, y<span style="color: #66cc66;">&#41;</span>.<span style="">PasteSpecial</span><span style="color: #66cc66;">&#40;</span>Paste:=Excel.<span style="">Constants</span>.<span style="">xlFormats</span>, Operation:=Excel.<span style="">Constants</span>.<span style="">xlNone</span>, SkipBlanks:=<span style="color: #000099;">False</span>, Transpose:=<span style="color: #000099;">False</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, y<span style="color: #66cc66;">&#41;</span> = xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, y<span style="color: #66cc66;">&#41;</span>.<span style="">value</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, y<span style="color: #66cc66;">&#41;</span> = xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, y<span style="color: #66cc66;">&#41;</span>.<span style="">value</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">With</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">If</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Next</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">With</span> xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"B:B"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:k"</span><span style="color: #66cc66;">&#41;</span>.<span style="">HorizontalAlignment</span> = Excel.<span style="">Constants</span>.<span style="">xlLeft</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:k"</span><span style="color: #66cc66;">&#41;</span>.<span style="">VerticalAlignment</span> = Excel.<span style="">Constants</span>.<span style="">xlTop</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:k"</span><span style="color: #66cc66;">&#41;</span>.<span style="">wraptext</span> = <span style="color: #000099;">True</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:k"</span><span style="color: #66cc66;">&#41;</span>.<span style="">autofit</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"i:i"</span><span style="color: #66cc66;">&#41;</span>.<span style="">columnwidth</span> = <span style="color: #cc66cc;">20</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"j:j"</span><span style="color: #66cc66;">&#41;</span>.<span style="">columnwidth</span> = <span style="color: #cc66cc;">60</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"K:K"</span><span style="color: #66cc66;">&#41;</span>.<span style="">columnwidth</span> = <span style="color: #cc66cc;">60</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">rows</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"1:100"</span><span style="color: #66cc66;">&#41;</span>.<span style="">autofit</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">With</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlsheet1.<span style="">Hyperlinks</span>.<span style="">Add</span><span style="color: #66cc66;">&#40;</span>Anchor:=xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>, Address:=<span style="color: #7F5F00;">""</span>, SubAddress:=<span style="color: #7F5F00;">"'"</span> &amp; lastsheet &amp; <span style="color: #7F5F00;">"'!A1"</span>, TextToDisplay:=<span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> pix = <span style="color: #cc66cc;">100</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> txt = <span style="color: #cc66cc;">215</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">For</span> Each foundFile <span style="color: #000099;">As</span> <span style="color: #000099;">String</span> In My.<span style="">Computer</span>.<span style="">FileSystem</span>.<span style="">GetFiles</span><span style="color: #66cc66;">&#40;</span>ComboBox1.<span style="">SelectedItem</span>, FileIO.<span style="">SearchOption</span>.<span style="">SearchTopLevelOnly</span>, <span style="color: #7F5F00;">"*"</span> &amp; lastsheet &amp; <span style="color: #7F5F00;">"*"</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> extension = Path.<span style="">GetExtension</span><span style="color: #66cc66;">&#40;</span>foundFile<span style="color: #66cc66;">&#41;</span>.<span style="">ToLower</span>.<span style="">ToString</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">If</span> extension = <span style="color: #7F5F00;">".log"</span> <span style="color: #000099;">Or</span> extension = <span style="color: #7F5F00;">".txt"</span> <span style="color: #000099;">Then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span>.<span style="">OLEObjects</span>.<span style="">Add</span><span style="color: #66cc66;">&#40;</span>FileName:=foundFile, Link:=<span style="color: #000099;">False</span>, DisplayAsIcon:=<span style="color: #000099;">True</span>, IconFileName:=Environment.<span style="">GetFolderPath</span><span style="color: #66cc66;">&#40;</span>Environment.<span style="">SpecialFolder</span>.<span style="">Windows</span><span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #7F5F00;">"\Notepad.exe"</span>, IconIndex:=<span style="color: #cc66cc;">0</span>, IconLabel:=Path.<span style="">GetFileName</span><span style="color: #66cc66;">&#40;</span>foundFile<span style="color: #66cc66;">&#41;</span>, <span style="color: #000099;">Left</span>:=<span style="color: #cc66cc;">265</span>, Top:=txt, <span style="color: #000099;">Width</span>:=<span style="color: #cc66cc;">75</span>, Height:=<span style="color: #cc66cc;">75</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txt += <span style="color: #cc66cc;">80</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> = xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> + <span style="color: #7F5F00;">"X"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">ElseIf</span> extension = <span style="color: #7F5F00;">".png"</span> <span style="color: #000099;">Or</span> extension = <span style="color: #7F5F00;">".jpg"</span> <span style="color: #000099;">Or</span> extension = <span style="color: #7F5F00;">".jpeg"</span> <span style="color: #000099;">Or</span> extension = <span style="color: #7F5F00;">".gif"</span> <span style="color: #000099;">Then</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">Sheets</span><span style="color: #66cc66;">&#40;</span>lastsheet<span style="color: #66cc66;">&#41;</span>.<span style="">Shapes</span>.<span style="">AddPicture</span><span style="color: #66cc66;">&#40;</span>foundFile, Microsoft.<span style="">Office</span>.<span style="">Core</span>.<span style="">MsoTriState</span>.<span style="">msoCTrue</span>, Microsoft.<span style="">Office</span>.<span style="">Core</span>.<span style="">MsoTriState</span>.<span style="">msoCTrue</span>, <span style="color: #cc66cc;">25</span>, pix, <span style="color: #cc66cc;">215</span>, <span style="color: #cc66cc;">350</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pix += <span style="color: #cc66cc;">350</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> = xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span>x, <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> + <span style="color: #7F5F00;">"X"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">If</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Next</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">If</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Next</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">With</span> xlsheet1</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"D:D"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"J:L"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"C:C"</span><span style="color: #66cc66;">&#41;</span>.<span style="">delete</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:K"</span><span style="color: #66cc66;">&#41;</span>.<span style="">autofit</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:G"</span><span style="color: #66cc66;">&#41;</span>.<span style="">HorizontalAlignment</span> = Excel.<span style="">Constants</span>.<span style="">xlCenter</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>.<span style="">HorizontalAlignment</span> = Excel.<span style="">Constants</span>.<span style="">xlCenter</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="">Columns</span><span style="color: #66cc66;">&#40;</span><span style="color: #7F5F00;">"A:H"</span><span style="color: #66cc66;">&#41;</span>.<span style="">VerticalAlignment</span> = Excel.<span style="">Constants</span>.<span style="">xlTop</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">End</span> <span style="color: #000099;">With</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> sheet <span style="color: #000099;">As</span> Excel.<span style="">Worksheet</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> title = xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> &amp; <span style="color: #7F5F00;">"v"</span> &amp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> &amp; <span style="color: #7F5F00;">" Defects "</span> &amp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> &amp; <span style="color: #7F5F00;">" "</span> &amp; datenow &amp; <span style="color: #7F5F00;">".xls"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Dim</span> header = <span style="color: #7F5F00;">"&amp;20 &amp;B"</span> &amp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span> &amp; <span style="color: #7F5F00;">" "</span> &amp; xlsheet1.<span style="">Cells</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#41;</span>.<span style="">value</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">For</span> Each sheet In xlbook.<span style="">Worksheets</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">Orientation</span> = Excel.<span style="">XlPageOrientation</span>.<span style="">xlLandscape</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">LeftHeader</span> = <span style="color: #7F5F00;">"&amp;D &amp;T"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">CenterHeader</span> = header.<span style="">ToString</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">LeftFooter</span> = title.<span style="">ToString</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">RightFooter</span> = <span style="color: #7F5F00;">"&amp;P/&amp;N"</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">Zoom</span> = <span style="color: #000099;">False</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">FitToPagesTall</span> = <span style="color: #cc66cc;">2</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sheet.<span style="">PageSetup</span>.<span style="">FitToPagesWide</span> = <span style="color: #cc66cc;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000099;">Next</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlsheet1.<span style="">Activate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; xlbook.<span style="">SaveAs</span><span style="color: #66cc66;">&#40;</span>Environment.<span style="">GetFolderPath</span><span style="color: #66cc66;">&#40;</span>Environment.<span style="">SpecialFolder</span>.<span style="">DesktopDirectory</span><span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #7F5F00;">"\"</span> &amp; title.<span style="">ToString</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CloseExcel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000099;">End</span> <span style="color: #000099;">Sub</span> </div></li></ol></div></div></pre>
</div>
</div><br />
What the program does is load an exported excel report from another program and reconfigures it. First thing it does is it makes a new tab for each row, then it looks through a file for pictures or text documents containing the same name and attaches them. Finally, it changes the print settings and saves it to the desktop. I seem to have hit a small wall, and other then some syntax here and there Im not seeing much else.<br />
<br />
Any and all suggestions are appreciated.<br />
<br />
Zach<br />
<br />
*edit - If anyone would like to see a sample unedited report or the finished product, let me know.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=25">Visual Basic .NET</category>
			<dc:creator>Zmcpherson</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679758</guid>
		</item>
		<item>
			<title>VB6 Q:Function to pass textbox.text</title>
			<link>http://www.vbforums.com/showthread.php?t=679757&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 22:40:16 GMT</pubDate>
			<description><![CDATA[I am trying to figure out how to use functions. I have 10 textboxes that will need to be checked for certain things.
I believe I can pass the text from each textbox to the function and then have text returned to the text property of that textbox that made the call via it's change event.
I don't know how to send the textbox's text like that. Do I use THIS ?


Code:
---------
Private Sub TxtBxHrs1_Change()
If TxtBxHrs1.Text = "." Then
'TxtBxHrs1.Text = "0.00"
Call CallChngeTxt(Me.Textbox.text)
End If
End Sub
---------

Code:
---------
Function CallChngeTxt() As String
    CallChngeTxt = "0.00"
End Function
---------
Can someone show me how to use a function that will allow me to send the text from multiple text boxes? And then return back the edited text to those calling textboxes?]]></description>
			<content:encoded><![CDATA[<div>I am trying to figure out how to use functions. I have 10 textboxes that will need to be checked for certain things.<br />
I believe I can pass the text from each textbox to the function and then have text returned to the text property of that textbox that made the call via it's change event.<br />
I don't know how to send the textbox's text like that. Do I use THIS ?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Private Sub TxtBxHrs1_Change()<br />
If TxtBxHrs1.Text = &quot;.&quot; Then<br />
'TxtBxHrs1.Text = &quot;0.00&quot;<br />
Call CallChngeTxt(Me.Textbox.text)<br />
End If<br />
End Sub</code><hr />
</div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Function CallChngeTxt() As String<br />
&nbsp; &nbsp; CallChngeTxt = &quot;0.00&quot;<br />
End Function</code><hr />
</div>Can someone show me how to use a function that will allow me to send the text from multiple text boxes? And then return back the edited text to those calling textboxes?</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?f=1">Visual Basic 6 and Earlier</category>
			<dc:creator>Foolios</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?t=679757</guid>
		</item>
	</channel>
</rss>

