Hi JP, Please find the below VBA code for the solution of your problem. Hope this will help you.
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) a = ActiveCell.Address For i = 1 To 10 On Error Resume Next If a = ("$A$") & i Then If Range("A" & i).Value < 1 Then m = Application.GetOpenFilename If m = 0 Then Exit Sub End If Workbooks("Test.xls").Sheets("Sheet1").Range("A" & i).Value = m End If End If Next i End Sub On Thu, Oct 22, 2009 at 3:41 AM, jp <knox...@gmail.com> wrote: > > I would like to be able to select a cell in a worksheet and then run a > macro to open a dialogue box to browse through folders and files on my > computer, select a file, and insert that file path and name into the > active cell. Can someone please help me to do this? Any help would > be greatly appreciated! > > JP > > > > -- Thanks, Deepak Rai --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---