Navision Automation - Excel Hyperlink Issue

tarkmyler
Member Posts: 57
I am creating an Excel shipment list using the Navision automation controller. UPS Worldship writes shipment data to a Navision table. For key customers I use the automation controller to build and email a spreadsheet with shipment data. One of the cells has a hyperlink to UPS package tracking. Because of the shipment volume other solutions like UPS Quantum View are less desireable.
However, I have an issue:
In VBA this is the code used to make a hyperlink in Excel "live".
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber=1ZXXX0300346748046" _
, TextToDisplay:= "1ZXXX0300346748046"
I haven't been successful translating this into Navision and am stuck putting the text of the hyperlink into a cell and having the user edit the cell to "activate" the address data. Does anyone know how to make this work using the Navision automation controller?
However, I have an issue:
In VBA this is the code used to make a hyperlink in Excel "live".
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber=1ZXXX0300346748046" _
, TextToDisplay:= "1ZXXX0300346748046"
I haven't been successful translating this into Navision and am stuck putting the text of the hyperlink into a cell and having the user edit the cell to "activate" the address data. Does anyone know how to make this work using the Navision automation controller?
Mark Tyler
Pacific City, OR
Pacific City, OR
0
Comments
-
I'm not sure i read this correctly.
Do you want the excel link to work or are you trying to import the tracking # into navision & say on the push of a package button "Track Package" type of thing??tarkmyler wrote:I haven't been successful translating this into NavisionHYPERLINK(STRSUBSTNO(ShippingAgent."Internet Address","External Tracking No."));
ShippingAgent."Internet Address” is
http://wwwapps.ups.com/WebTracking/proc ... &tracknum=%10 -
Ok. I'm a little embarassed now. How about...
Range("A1").Value := '=HYPERLINK("[link]","[Friendly Name]")';
:oops:Mark Tyler
Pacific City, OR0 -
tarkmyler wrote:I am creating an Excel shipment list using the Navision automation controller. UPS Worldship writes shipment data to a Navision table. For key customers I use the automation controller to build and email a spreadsheet with shipment data. One of the cells has a hyperlink to UPS package tracking. Because of the shipment volume other solutions like UPS Quantum View are less desireable.
However, I have an issue:
In VBA this is the code used to make a hyperlink in Excel "live".
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber=1ZXXX0300346748046" _
, TextToDisplay:= "1ZXXX0300346748046"
I haven't been successful translating this into Navision and am stuck putting the text of the hyperlink into a cell and having the user edit the cell to "activate" the address data. Does anyone know how to make this work using the Navision automation controller?
I had the same problem and I solved it as follows:
XlWorkSheet.Hyperlinks.Add(XlWorkSheet.Range(xlColID + xlRowID), "Hypertext Address");
(first parameter must be object)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions