Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


get excel hyprelink using vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,60042
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> get excel hyprelink using vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 get excel hyprelink using vbscript - 5/9/2008 1:52:02 PM   
  chandresh_s74

 

Posts: 1
Score: 0
Joined: 5/9/2008
Status: offline
Help please....


I am trying to retrieve the excel hyperlink how do i get the data which is already stored in the excel file.

I am using following file:


'Opening excel file.
Option Explicit
On Error Resume Next
Dim loopCount, directory, objExcel, workbook
Set objExcel = CreateObject("Excel.Application")
'Gets the directory where our script is running from
directory = CreateObject("Scripting.FileSystemObject").GetParentFolderName(Wscript.ScriptFullName)
'Open our XLS file
Set workbook = objExcel.Workbooks.Open(directory & "\temp.xls")
'We want to skip the header row, and then the blank row below
loopCount = 1
Do while not isempty(objExcel.Cells(loopCount, 1).Value)
Dim i       'For looping through the columns on each row
Dim value   'Value extracted from each cell
Dim value1 'hyperlink value from each cell.
For i = 1 To 1  'going for how many column in excel file.
value = objExcel.Cells(loopCount, i).Value
value1=objExcel.Cells(1, i).Hyperlink
'Do something with your value here!
MsgBox value
MsgBox value1
Next
loopCount = loopCount + 1
Loop
objExcel.Workbooks.Close
objExcel.quit
objExcel = Empty
workbook = Empty

_____________________________

chandresh
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> get excel hyprelink using vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts