code to open a file selection window

hilyete

Active Member
Joined
Aug 19, 2009
Messages
293
3 years ago I made a "Flash Card" program for my students using PowerPoint and Excel. The PPt presentation allows the student to up-load the vocabulary from Excel sheets. When the school updated to 64 bit computers, the PPt would not work, giving an error message about updating the API calls. I put in the "PtrSafe" as directed and everything works again EXCEPT the code that opens a file selection window that lets them browse to find the Excel file they need. I no longer get an error message, but the file selection window just doesn't open. Does anyone have code (or can point me in the direction) for opening a file selection window using 64 bit computers? (And will that work now on 32 Bit computers?

Thanks

Tom
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
7,798
GetOpenFileName or Application.FileDialog(msoFileDialogFilePicker) should work on 32-bit and 64-bit computers.
 
Upvote 0

Forum statistics

Threads
1,191,686
Messages
5,988,071
Members
440,125
Latest member
vincentchu2369

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top