+ Reply to Thread
Results 1 to 4 of 4

RefreshData

  1. #1
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Unhappy RefreshData

    another simple piece of code that won't work for me.

    this is supposed to update the links to data.xls but it keeps giving me run errors.

    any help?

    >
    Sub RefreshData()
    ThisWorkbook.UpdateLink Name:="I:\Data.xls", Type:=xlExcelLinks
    End Sub
    >

    thanks

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    and yes, the data.xls file is on the I:\ directory

  3. #3
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    Sub RefreshData()
    ThisWorkbook.UpdateLink Name:="I:\Data.xls", Type:=xlExcelLinks
    End Sub

    this code will work only if the present file, the file where the macro is as a cell which as reference to "i:\data.xls" workbook.

  4. #4
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Thanks, I don't believe I overlooked that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1