Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable Hyperlink without opening the Excel
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
HI Sathiya,

Please create an excel object and then use the Hyperlinks method to create the hyper link.

snippet:
Code:
Set  objEx = CreateObject("Excel.Application")

HI Sathiya,

Please create an excel object and then use the Hyperlinks method to create the hyper link.

snippet:
Code:
Set objEx = CreateObject("Excel.Application")
'Example: ScreenShotName = screenshotFolderPath & screenshotName(UserDefined)  & ".png"
ScreenShotName = screenshotFolderPath & Environment.Value("ActionName") &SetDateFormat(now(), "mm-dd-yyyy HH-nn-ss")  & ".png" ' here we are giving the dynamic name for screenshot with time stamp.
Set objLink = objEx.ActiveWorkbook.ActiveSheet.HyperLinks.Add (objEx.Selection,screenshotName)

Let me know if you need any further info.
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: Enable Hyperlink without opening the Excel - by supputuri - 05-25-2012, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error while opening test run results vkalyankar 3 4,318 11-12-2014, 09:49 AM
Last Post: vinod123
  Hyperlink click is not automated in UFT 11.5 test run prinju 1 2,796 11-03-2014, 12:04 PM
Last Post: vinod123
  QTP Stuck at Opening stage TurtleRock 4 3,676 05-27-2014, 08:42 PM
Last Post: mauler69
  QTP is not recording the first step of opening Flight reservation app srinanduri 2 3,173 08-06-2013, 09:59 PM
Last Post: srinanduri
  Having issue in opening QTP test newqtp 0 1,887 01-22-2013, 08:47 PM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 9 Guest(s)