Export field value to excel cell

jbush

New Member
Joined
Jul 12, 2013
Messages
3
Hello. This is my fist posting on this forum, and first posting on any forum for that matter. I have been trying for some time to export the value in my access field into an excel cell. The user will dblclick a hyperlink, which will open the corresponding file, as well open an excel template. Here is where I'm stuck. I need the code to take the hyperlink(path and filename), and stick it in an excel cell. This is what I have so far.
------------------------------------------
Private Sub DEMOS_NAME_DblClick(Cancel As Integer)

Dim LinkStr As String


LinkStr = [DEMOS NAME]
Application.FollowHyperlink LinkStr


Dim ObjXLApp As Object
Dim ObjXLBook As EXCEL.Workbook
Dim OSheet As EXCEL.Worksheet
Set ObjXLApp = CreateObject("Excel.Application")
Set ObjXLBook = ObjXLApp.Workbooks.Open("z:\upload\UPLOAD TEMPLATEv5.xls")
Set OSheet = ObjXLBook.Worksheets("Demo and Coding Entry")
ObjXLApp.Visible = True






Set d = CurrentDb()
Set r = d.OpenRecordset("PROCESSING")
Set fvalue = r.Fields("DEMOS NAME")






OSheet.Cells(2, 3) = fvalue

End Sub
-------------------------------------------------------------

If I put fvalue in quotes, it will transfer the text over, but i need the actual value of the hyperlink. And i do not need it to transfer as a link. Any help would be much appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
What do you mean by "the value of the hyperlink"? Is that a file, a file name, some other caption, the address of the file, or what?
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,861
Members
449,052
Latest member
Fuddy_Duddy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top