Advertisement

09.05.2008 at 01:37PM PDT, ID: 23707642
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Vb .exe file

Asked by akiles99 in Visual Basic Programming

Hi,
I have a macro now i want it to convert to .exe .
But i'm a beginner in this i can't achieve it.I'm using quick macro 2 to do this.
http://www.quickmacros.com/help/index.php?topic=QM_Help/IDH_MAKEEXE.html
I try with this.
Any help creating .exe is appreciated.

The code for macro is attached.

Thanks,
akilesStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
Option Explicit
 
Sub testload()
Dim strFilePath As String, strFilename As String, strFullPath As String
Dim xlbook As Workbook
    Dim lngCounter As Long
    Dim oConn As Object, oRS As Object, oFSObj As Object
 Dim sheetcount As Integer
    'Get a text file name
    strFullPath = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please selec text file...")
 
    If strFullPath = "False" Then Exit Sub  'User pressed Cancel on the open file dialog
 
    'This gives us a full path name e.g. C:tempfolderfile.txt
    'We need to split this into path and file name
    Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")
 
    strFilePath = oFSObj.GetFile(strFullPath).ParentFolder.Path
    strFilename = oFSObj.GetFile(strFullPath).Name
    
    Set xlbook = Application.Workbooks.Add
    For sheetcount = xlbook.Sheets.Count To 1 Step -1
        Application.DisplayAlerts = False
        If sheetcount > 1 Then xlbook.Sheets(sheetcount).Delete
        Application.DisplayAlerts = True
    Next
 
 
    'Open an ADO connection to the folder specified
    Set oConn = CreateObject("ADODB.CONNECTION")
    oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
               "Data Source=" & strFilePath & ";" & _
               "Extended Properties=""text;HDR=No;FMT=Delimited"""
 
    Set oRS = CreateObject("ADODB.RECORDSET")
 
    'Now actually open the text file and import into Excel
    oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1
    While Not oRS.EOF
        xlbook.Sheets.Add after:=Sheets(xlbook.Sheets.Count)
        xlbook.ActiveSheet.Range("A1").CopyFromRecordset oRS, 65536
    Wend
        
    Application.DisplayAlerts = False
    xlbook.Sheets(1).Delete
    Application.DisplayAlerts = True
    For sheetcount = 1 To xlbook.Sheets.Count
        xlbook.Sheets(sheetcount).Name = "Sheet" & sheetcount
    Next
 
    oRS.Close
    oConn.Close
    ThisWorkbook.Close
End Sub
 
Loading Advertisement...
 
[+][-]09.05.2008 at 01:40PM PDT, ID: 22403570

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2008 at 01:49PM PDT, ID: 22403666

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2008 at 01:55PM PDT, ID: 22403709

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2008 at 04:49PM PDT, ID: 22404706

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Sign Up Now!
Solution Provided By: CSecurity
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.05.2008 at 07:37PM PDT, ID: 22405282

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2008 at 12:36AM PDT, ID: 22406441

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2008 at 01:12AM PDT, ID: 22406530

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2008 at 03:43AM PDT, ID: 22406808

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.06.2008 at 06:22AM PDT, ID: 22407372

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628