Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default FileSystemObject And Excel

hi
all
i got one strange problem when I create a file with
Filesystem Object and try to open it in Excel with the
following code.[I am using component of excel 2000]

dim xlapp as excel.application
set xlapp = createObject("Excel.application")
xlapp.workbooks.add "path of the file created by File
System Object"

then that file becomes visible,without writing
xlapp.visible = true. Actually this code is in ActiveX
control. I got this strange behaviour when I use this
control in IE. this control works fine If use it in VB in
other standerd exe project.

Instead of opening file created by FSO. If I open any file
already present on the harddisk, then it won't get visible
In IE also.(For Ex.:-- xlapp.workbooks.add "C:\1.htm" )

before opening the file in excel created by FSO I am
closing all the fso objects.
file1.close
set fso = nothing
then there is some code for progressbar control.after this
code I am opening the file in excel,so no issue of fso
object remain in cache.

file1 is an variable of object type. and later set it to a
file using fso.opentextfile method

I checked there is no other excel instance other than I
opened.

i tried the same thing with some small changes like
dim xlapp as object
set xlapp = createObject("Excel.Application")

instead of xlapp.workbooks.add, I used
xlapp.workbooks.open

but got the same problem
please help me out to solve this problem.


Regards
Amod
Reply
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
Scripting.FileSystemObject Leif Rasmussen Excel Discussion (Misc queries) 1 January 12th 05 11:21 PM
Help with FileSystemObject? Ed[_9_] Excel Programming 2 August 5th 03 12:08 AM
FileSystemObject question Tod Excel Programming 3 August 2nd 03 06:08 PM
FileSystemObject to get last 10 lines of text file. john Excel Programming 11 July 16th 03 03:54 PM


All times are GMT +1. The time now is 11:22 PM.

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

About Us

"It's about Microsoft Excel"