Results 1 to 4 of 4

Thread: Suppress 'This workbook contains links...'

  1. #1

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Suppress 'This workbook contains links...'

    I am using an Excel worksheet that contains DDE links as part of a vb.net automation project. However, when I call the worksheet, I get the message "This workbook contains links to other data sources." Once I select OK to update the links everything else proceeds fine. Is there anyway to suppress this dialog and automatically update the links?

  2. #2
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: Suppress 'This workbook contains links...'

    Go to Tools -> Options -> Edit Tab and uncheck the option "Ask to update automatic links".

    This might help you.
    _______________________
    CS

  3. #3
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628

    Re: Suppress 'This workbook contains links...'

    If your doing it in code it is also in the parameter list.
    VB Code:
    1. Excel.Application.Workbooks.Open "filepath",True

  4. #4

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: Suppress 'This workbook contains links...'

    Thanks for the replies. This is what I wound up using... it works great.

    ' updatelinks=3 to update or updatelinks=0 to not update
    xlWB = xlApp.Workbooks.Open(xlFile, updatelinks:=3)

Posting Permissions

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



Click Here to Expand Forum to Full Width