View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
MSHO MSHO is offline
external usenet poster
 
Posts: 15
Default macros opening files

Hello

I have a macro that prompts the user to open a file. Currently it is a .csv
file but i want it to be able to open .csv or .xls. This is my code:

fileToOpen = Application.GetOpenFilename("Excel Files (*.csv), *.csv")

Is there a way i can add an OR or AND somehow or make it be able to open any
sort of file?

Thanks in Advance