Search:

Type: Posts; User: torisevt

Search: Search took 0.01 seconds.

  1. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    Hi!

    I run the code again and received these:

    The table spreadsheet data must be in the same table
    160069
    160071
  2. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    Here is my Power Query Macro, and this works:



    ActiveWorkbook.Queries.Add Name:="Result03052018", Formula:= _
    "let" & Chr(13) & "" & Chr(10) & " Lähde =...
  3. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    Let's clarify the means I am trying to get here.
    1. I have csv-file.
    2. I have Power Query code from previous query.
    3. I want to import the csv-file through the Power Query code to workbook.
    ...
  4. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    strPath includes full path,
    strName should include filename without extension.
  5. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    On this line


    With ActiveSheet.ListObjects.Add(SourceType:=0, Source:= _
    "OLEDB;Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=strName;Extended Properties=""""" _
    ...
  6. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    Here is the updated code:


    Private Sub Workbook_Open()
    Dim intChoice As Integer
    Dim strPath As String
    Dim strName As String

    'change the display name of the open file dialog...
  7. MsOf365 Re: Excel 2016 prompt for external data filename on workbook open

    I edited the code so it now has the strname assigned with something :)

    I'am open for any kind of help, so that i get this working.
  8. MsOf365 Excel 2016 prompt for external data filename on workbook open

    Hi!

    I have made working excel workbook but now I want to change it.
    I have imported data from csv-file with Power Query, removing few rows from top and bottom, and reformat few values in the...
Results 1 to 8 of 8



Click Here to Expand Forum to Full Width