PC Review


Reply
Thread Tools Rate Thread

How to bypass the Update link dialog in excel when called from vb?

 
 
chin_yen83
Guest
Posts: n/a
 
      7th Dec 2005
Dear All,

I have a problem in Excel - VB programming. For the purpose of Customer

Reporting and information, I've develop a VB module to display customer

information and a link to open an Excel file for detail information.
The excel file contain datasource in other link.. So, How to bypass the

Update link dialog ?
I want the excel file is automatically update link without customer
needs to choose the option from that dialog.


At recent i've used this code to open excel:
Dim objApp As Object
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet


Unload Me


With frmExcelViewer
.IndexFile = Idx
.Show


.wbrExcel.Navigate strFilePath


Set xlBook = .wbrExcel.Document
Set xlSheet = xlBook.Worksheets(1)


.wbrExcel.SetFocus
End With


Your solution is expected


Thx,


Chin Yen

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th Dec 2005
You can open your other workbook in code and specify how the links should be
treated.

Take a look at workbooks.open in VBA's help -- specifically for the updatelinks
parm.

chin_yen83 wrote:
>
> Dear All,
>
> I have a problem in Excel - VB programming. For the purpose of Customer
>
> Reporting and information, I've develop a VB module to display customer
>
> information and a link to open an Excel file for detail information.
> The excel file contain datasource in other link.. So, How to bypass the
>
> Update link dialog ?
> I want the excel file is automatically update link without customer
> needs to choose the option from that dialog.
>
> At recent i've used this code to open excel:
> Dim objApp As Object
> Dim xlBook As Excel.Workbook
> Dim xlSheet As Excel.Worksheet
>
> Unload Me
>
> With frmExcelViewer
> .IndexFile = Idx
> .Show
>
> .wbrExcel.Navigate strFilePath
>
> Set xlBook = .wbrExcel.Document
> Set xlSheet = xlBook.Worksheets(1)
>
> .wbrExcel.SetFocus
> End With
>
> Your solution is expected
>
> Thx,
>
> Chin Yen


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic reply and bypass dialog Jacky Luk Microsoft Outlook VBA Programming 1 22nd Dec 2005 03:35 PM
How to bypass Update link dialog when open an excel file from vb chin_yen83 Microsoft Excel Programming 0 7th Dec 2005 04:08 AM
How do I bypass this status dialog in PrintPreview? =?Utf-8?B?QkxN?= Microsoft Dot NET Framework Forms 1 12th Nov 2005 05:33 PM
Bypass printer dialog box =?Utf-8?B?RGluZXNoIFNyaW5pdmFz?= Windows XP Internet Explorer 0 19th Sep 2005 08:06 AM
Bypass IE Print Dialog nycboy Microsoft Dot NET Framework Forms 1 16th Feb 2005 11:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 PM.