Hello guys again.
Sorry for the title, I am new here:-) and was a bit desperate :-).
So I would like your ideas on the following:
As I didn't know how to write a code for clicking hyperlink, I recorded a macro and then saw the code.
"Workbooks.Open Filename:="H:\MP\Copy.xls"
"Range("E24:G24").Select
"Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
The problem I face now is how to just access that. I don't want to open the other file. I just want to have access on this Hyperlink in order to check for some data there.
Regarding my check there I have done the following:
---------------------------------------------------------------
For Countball = 1 To 1000
If StrComp(Volleyball, Range(E, Countball)) = True OR
StrComp(Football, Range(C, Countball)) = True Then
Totalballs = Totalballs + 1
If StrComp(Green, Range(R, Countball)) = True Then
Greensnum = Greensnum + 1
End If
End If
Next
--------------------------------------------------------------
So, as I have said in my first post, I would like to open one excel file A, that will take data from a hyperlink of another excel, make some search about how many balls are Green and so on, and return the data on the excel file A.
I would appreciate any suggestions.
Unfortunately I cannot post the file that has the hyperlink, cause it is for a project I have for a professor.
Thanks a lot
Bookmarks