Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How do I open a file browse window and have my spread sheet read the contents and write them to a worksheet? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Christopher,
Try something like the following: Dim FName As Variant Dim WB As Workbook FName = Application.GetOpenFilename("Excel files ,*.xls") If FName = False Then ' no file chosen Exit Sub End If Set WB = Workbooks.Open(Filename:=FName) ' ' do something with WB ' -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Christopher Brooks" wrote in message ... Hello, How do I open a file browse window and have my spread sheet read the contents and write them to a worksheet? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim fname as String
fname = Application.GetOpenFileName if fname < "False" then workbooks.open fname End if If you are talking about something other than an XLS file, then you would have to be more specific. -- Regards, Tom Ogilvy "Christopher Brooks" wrote in message ... Hello, How do I open a file browse window and have my spread sheet read the contents and write them to a worksheet? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading contents | Excel Discussion (Misc queries) | |||
reading from another file and pasting to current file, "combobox" | New Users to Excel | |||
reading cell contents in a macro | Excel Programming | |||
Browsing to URL and reading contents | Excel Programming | |||
Reading from file | Excel Programming |