LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel macro help??

Ok, here is what I am trying to do. I have a button which
says "find file". What I want is that when someone clicks
this button, your "open" file box or dialog box pops up
and you can search for the file you want to use. However,
instead of opening the file, it just gives the correct
path of that file. I have a text file that I will be
sending out to people, and they need to save it
somewheres, and then click this "find file" button to
insert that path so another macro can read off of the
location.

I am using Excel 2000, and it is frustrating, this code
works for office xp products, but not with this excel
version:

With Application.FileDialog(msoFileDialogOpen)

.AllowMultiSelect = True
.Show

' Display paths of each file selected
For lngCount = 1 To .SelectedItems.Count
ActiveSheet.Range("I27").Select
Range("I27").Value = .SelectedItems(lngCount)
'MsgBox .SelectedItems(lngCount)
Next lngCount

End With

Any help would be much appreciated!!! Thanks.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
passing arguments from an excel macro to a word macro KWE39 Excel Discussion (Misc queries) 1 July 7th 05 03:56 PM


All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"