ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   filesystemobject not defined?? (https://www.excelbanter.com/excel-programming/336324-filesystemobject-not-defined.html)

[email protected]

filesystemobject not defined??
 
I am trying to use a filesystemobject in a macro for excel. Basically I
want to open a new file, output some data to it, then close it.

The Visual Basic editor is complaining "User-defined type not defined"

I have done some research on the message boards and the commonly
suggested solution is Tools references check Microsoft Scripting
Runtime

BUT

for some reason the references option is greyed out.

Anyone have any suggestions?


Roy Harrill

filesystemobject not defined??
 
Perhaps your PC doesn't have the scripting files. You can download the
version for your Excel from:
http://msdn.microsoft.com/library/de...ist/webdev.asp
HTH


wrote in message
ups.com...
I am trying to use a filesystemobject in a macro for excel. Basically I
want to open a new file, output some data to it, then close it.

The Visual Basic editor is complaining "User-defined type not defined"

I have done some research on the message boards and the commonly
suggested solution is Tools references check Microsoft Scripting
Runtime

BUT

for some reason the references option is greyed out.

Anyone have any suggestions?




Jim Thomlinson[_4_]

filesystemobject not defined??
 
This might be a silly question but is your code still executing. Ensure it is
not by Clicking the stop button in the VBE and the reference option should
become available.
--
HTH...

Jim Thomlinson


" wrote:

I am trying to use a filesystemobject in a macro for excel. Basically I
want to open a new file, output some data to it, then close it.

The Visual Basic editor is complaining "User-defined type not defined"

I have done some research on the message boards and the commonly
suggested solution is Tools references check Microsoft Scripting
Runtime

BUT

for some reason the references option is greyed out.

Anyone have any suggestions?



[email protected]

filesystemobject not defined??
 
Not silly at all. That is exactly what happened - I never stopped the
code from running!

Thanks alot!



All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com