PC Review


Reply
Thread Tools Rate Thread

Add Hyperlink to Powerpoint vb.net automation

 
 
Anish Dantale
Guest
Posts: n/a
 
      5th Apr 2011
Hi,
I am trying to add a hyperlink to a table in a PowerPoint slide using vb.net .

Was trying the code

Dim tr As TextRange
tr = ppslide.Shapes.Item(10).Table.Cell(2, 2).Shape.TextFrame.TextRange

tr = ppapplication.ActiveWindow.Selection.TextRange.InsertAfter("Hyperlink")

tr.ActionSettings(PpMouseActivation.ppMouseClick).Action = PpActionType.ppActionHyperlink

tr.ActionSettings(PpMouseActivation.ppMouseClick).Hyperlink.Address = "c:\test.doc"



from reference http://www.vbforums.com/showthread.php? t=442549
Its not working
giving an exception "Selection (unknown member) : Invalid request. Nothing appropriate is currently selected."


What is the correct way of doing it


 
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
Macro for Drill Down Hyperlink Automation ? binar Microsoft Excel Programming 1 13th Feb 2009 06:28 AM
Macro for Drill Down and Hyperlink Automation binar Microsoft Excel Programming 0 12th Feb 2009 10:08 PM
Macro for Drill Down and Hyperlink Automation binar Microsoft Excel Programming 0 12th Feb 2009 10:08 PM
Macro for Drill Down and Hyperlink Automation binar Microsoft Excel Programming 0 12th Feb 2009 10:08 PM
PowerPoint Automation: PowerPoint ignores the status of GetSaved() =?Utf-8?B?U3luZXJneQ==?= Microsoft Powerpoint 0 15th Mar 2007 12:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.