Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to make an option in a userform to browse a file and add it to the excel sheet. I don't have a clue how to make this. Can anybody help me with a start? So far I can open a file, but I can not manage to just make a linkt to the object, or load the file as object in the excel file. It would be best if the link to the file or the object can be copied in a cell in the worksheet. Private Sub CommandButton2_Click() Dim TheFile As Variant TheFile = Application.GetOpenFilename("Excel files (*.xls), *.xls", , _ "Pick a file") If TheFile < False Then Workbooks.Open TheFile End If End Sub Any help welcome Kind regards, Jeroen Kluytmans |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Browse File for Mac | Excel Discussion (Misc queries) | |||
can't browse file | Excel Discussion (Misc queries) | |||
excel vba browse file | Excel Programming | |||
File Browse Box | Excel Programming | |||
Adding browse button to userform | Excel Programming |