Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 16:15
- Joined
- Sep 6, 2004
- Messages
- 897
Hi,
I tried to manage some part of the below hyperlink and but not fully operational.
Through VBA code I am exporting vehicle record data on multiple sheets of one excel file. And in the same file and summary of the total sheets ( each sheet have named with different vehicle number) is being generated on one single sheet.
Let us suppose there are 10 sheets by name 1030-ABC, 1024-PQR..... and so on and one last sheet named as Summary on which all the vehicle numbers are being placed in one column.
What I want is to make hyperlinks on the vehicle numbers of summery sheet thru the vba code. I reached somehow to some level where I am enable to make hyperlink but to the same file - NOT TO DIFFERENT SHEETS in the same file.
The concerned lines only I placed here of the VBA code I used:
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
Above works ok and but this managed only hyperlink to the vehicleNo that generating on Summery sheet but after clicking on vehicleno, it dont move to required particular sheet in the same file.
Below sub address might be require:
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
But I am not aware how to do it.
Anybody there to help me ? Any suggestion / advise shall be appreciated...
Thanks in advance.
Ashfaque
I tried to manage some part of the below hyperlink and but not fully operational.
Through VBA code I am exporting vehicle record data on multiple sheets of one excel file. And in the same file and summary of the total sheets ( each sheet have named with different vehicle number) is being generated on one single sheet.
Let us suppose there are 10 sheets by name 1030-ABC, 1024-PQR..... and so on and one last sheet named as Summary on which all the vehicle numbers are being placed in one column.
What I want is to make hyperlinks on the vehicle numbers of summery sheet thru the vba code. I reached somehow to some level where I am enable to make hyperlink but to the same file - NOT TO DIFFERENT SHEETS in the same file.
The concerned lines only I placed here of the VBA code I used:
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
Code:
.....
..... various lines of codes.
objXl.Cells(SRow, 2).Value = rstNames![VNo]
....
....
' ADD MAIN-ADDRESS
objXl.Cells.Hyperlinks.Add _
Anchor:=objXl.Cells(SRow, 2), _
Address:="", _
SubAddress:="", _
ScreenTip:="-", _
TextToDisplay:=""
Below sub address might be require:
Code Tags Added by UG
Please use Code Tags when posting VBA Code
https://www.access-programmers.co.u...e-use-code-tags-when-posting-vba-code.240420/
Code:
' ' ADD SUB-ADDRESS
objSht("Sheet2").Hyperlinks.Add _
Anchor:=objSht(rstNames![VNo]).Cells(cell.Row, 1), _
Address:="", _
SubAddress:=objSht.Name & "rstNames![VNo]" & cell.Address, _
ScreenTip:="", _
TextToDisplay:=""
Anybody there to help me ? Any suggestion / advise shall be appreciated...
Thanks in advance.
Ashfaque
Last edited by a moderator: