PC Review


Reply
Thread Tools Rate Thread

Select a browze picked file and copy Read contents into a work sheet!

 
 
aiyer
Guest
Posts: n/a
 
      18th Mar 2004
Hello all!

Thanks Mudraker. Let me reframe the question again.
Here is the problem. I used a variable 'myfile' with th
getopenfilename application as follows for the user to browze pick
*.scompfinal file, as follows.

myfile = Application.GetOpenFilename("scompfinal files,*.scompfinal")
myfile could thus be n1m2.scompfinal,a1,b2.scompfina
etc...anything.....

But after I read the contents of this file to another existin
worksheet called 'vtec.xls', that already exists in the workbook,
would like to delete myfile (the just read-in file).

I am not able to select the myfile for me to copy the contents out o
that into 'vtec.xls'.
I tried the following two ways, to select the currently read-in myfil
but won't work, it'z giving me errors..

Worksheets("myfile").Activate, Sheets(myfile).Select etc.....

Thanks, would appreciate a reply.

Regds,
Arun................
Vtec Corp

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      18th Mar 2004
Arun,

It is not the worksheet that is called myFile, but the workbook.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"aiyer >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all!
>
> Thanks Mudraker. Let me reframe the question again.
> Here is the problem. I used a variable 'myfile' with the
> getopenfilename application as follows for the user to browze pick a
> *.scompfinal file, as follows.
>
> myfile = Application.GetOpenFilename("scompfinal files,*.scompfinal")
> myfile could thus be n1m2.scompfinal,a1,b2.scompfinal
> etc...anything.....
>
> But after I read the contents of this file to another existing
> worksheet called 'vtec.xls', that already exists in the workbook, I
> would like to delete myfile (the just read-in file).
>
> I am not able to select the myfile for me to copy the contents out of
> that into 'vtec.xls'.
> I tried the following two ways, to select the currently read-in myfile
> but won't work, it'z giving me errors..
>
> Worksheets("myfile").Activate, Sheets(myfile).Select etc.....
>
> Thanks, would appreciate a reply.
>
> Regds,
> Arun................
> Vtec Corp.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSG file attachment is not picked by Javascript sleepyrajesh Microsoft Outlook Form Programming 0 16th Sep 2011 06:07 AM
Trying to put job# picked in combo box from Main form into Subform =?Utf-8?B?YmFicw==?= Microsoft Access Forms 2 7th Jul 2007 03:10 PM
Get user-picked list of file names on Mac? robotman Microsoft Excel Programming 2 7th Jun 2007 12:33 AM
Can't browze and open file, urgent! aiyer Microsoft Excel Programming 1 27th Aug 2004 08:51 PM
want to copy the contents of a cell into another place based on the contents of a cel CBlev Microsoft Excel Misc 0 9th Sep 2003 10:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.