Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by seta42

  1. seta42

    select and import text file with open file dialog in MS Excel

    Dear Chance12345, it works perfectly on my machine too :-). Thank you very much for your time. Seta42
  2. seta42

    select and import text file with open file dialog in MS Excel

    Hi, Dim vrtSelectedItem must be Variant or Object Thaks Seta42
  3. seta42

    select and import text file with open file dialog in MS Excel

    Hi Roel, It looks much more logical width vrtSelectedItem but, unfortunatelly, I still got the same error message: "ByRef argument type mismatch" Thanks Seta42 PS. runing XP Prof SP2 + Office 2k3
  4. seta42

    select and import text file with open file dialog in MS Excel

    Hi Roel, this try to do something, but stops on inserted line Call Import(str_filename) in Main() macro with: "ByRef argument type mismatch" error message. Could the problem be in different file types? Dim vrtSelectedItem as Variant -in Main() macro Sub Import(str_filename As String) -in...
  5. seta42

    select and import text file with open file dialog in MS Excel

    Dear Chance and Rofeau thanks for your lightning-fast responces, but neither does not work. 1) when I changed Sub import() to Sub Import(str_filename) I lost the import macro from macro list. I also changed Workbooks.OpenText Filename:="D:\import\OFFLINE.DAT", To Workbooks.OpenText...
  6. seta42

    select and import text file with open file dialog in MS Excel

    Hi, as an nonprogrammer I recorded macro to import file from fixed position: Sub import() ChDir "D:\import" Workbooks.OpenText Filename:="D:\import\OFFLINE.DAT", Origin:= _ 852, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _...

Part and Inventory Search

Back
Top