Consulting

Results 1 to 3 of 3

Thread: Excel .xlsm + Run time error 1004 Initialization of the data source failed

  1. #1

    Excel .xlsm + Run time error 1004 Initialization of the data source failed

    I am accessing a client .xlsm file from my machine and it works fine.

    The client complains that he received a Run time error 1004 : Initialization of the data source failed.

    So on trying on a different machine(connected to client's network) , I was able to reproduce this error.

    I just don't understand how the very same file with the data source is connecting and working fine on my local machine whereas failing on the client network.

    The .xlsm file on opening has data part(from access, from ..., existing connections) enabled then in a few seconds greyed out.

    Any help please?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Any code/workbook please?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    ThisWorkbook.Worksheets("DB Data").Range("A1").ListObject.QueryTable.Refresh BackgroundQuery:=False

    this is where I land in when clicking debug after Runtime error.

    Please note that it works on another machine connected to a client network. So what differences should I be looking for to be able to make it work on all machines ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •