LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Use MS Browse Feature...

Carlee,
Check the help for Application.GetOpenFilename.

Then set a variable (instead of your current Const) to the return value.
Then .Open that, assuming the user did not cancel.

NickHK

"Carlee" wrote in message
...
Hi all,

I used the following code to open a file called 'Copreco Daily Submission
Reading' and import the ensuing record into the Daily Reading Master Log.

Question: I need to change the code, (and I dont know how), such that
rather than looking for the 'Copreco Daily Submission Reading' file, I

want
the user to be able to use the Browse feature to select any .xls file,

then
continue the process.

Cany anyone help me on this one?


Sub CopyFromCoprecoReading()
Call PasswordOff
'these have to do with THIS workbook
'name of the sheet to get data from
Const destSheet = "Daily Reading Master Log" ' in HQ master workbook
'****

---------------- CUT --------------------


 
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
Trying to browse Add-ins???? [email protected] Excel Discussion (Misc queries) 1 March 5th 08 08:47 PM
browse between worksheets ? excel-tr Excel Programming 1 March 9th 07 09:38 PM
Browse up to file kaiser Excel Programming 1 October 3rd 05 07:51 AM
InputBox - Browse banavas[_7_] Excel Programming 4 June 21st 04 02:29 PM
Browse Save As Feature Neil[_14_] Excel Programming 3 January 14th 04 05:54 AM


All times are GMT +1. The time now is 07:41 PM.

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

About Us

"It's about Microsoft Excel"