Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mau
 
Posts: n/a
Default excel chart export error runtime 1004

Hello,
I'm trying to export an excel chart from vbscript


If I run the code using a non-administator user it doesn't work


If I put the same user in the administrators group it works.


Any solution to make it working in the first case too?


The folder I'm trying to export to has all the rigths: I give
fullcontrol to everyone..
please help!!!


E.G.
This one work fine only with administrator's user:
Ex.ActiveWorkbook.ActiveChart.Export "C:\FolderEveryOne\Image.gif"

This one work fine always:
Ex.ActiveWorkbook.save "C:\FolderEveryOne\file.xls"

  #3   Report Post  
Mau
 
Posts: n/a
Default

Thank Tushar for your answer...

....I try to give full control to everyone's group for all temporary
folders(C:\WINDOWS\Temp; C:\Documents and Settings\[user]\Impostazioni
locali\Temp; etc. ) but it doesn't work!!!!!

Have you any idea.




Tushar Mehta ha scritto:

This is sheer speculation...

Maybe the Export method creates a temporary file in some temp directory
to which the non-admin userid lacks write privileges.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article .com,
says...
Hello,
I'm trying to export an excel chart from vbscript


If I run the code using a non-administator user it doesn't work


If I put the same user in the administrators group it works.


Any solution to make it working in the first case too?


The folder I'm trying to export to has all the rigths: I give
fullcontrol to everyone..
please help!!!


E.G.
This one work fine only with administrator's user:
Ex.ActiveWorkbook.ActiveChart.Export "C:\FolderEveryOne\Image.gif"

This one work fine always:
Ex.ActiveWorkbook.save "C:\FolderEveryOne\file.xls"



  #4   Report Post  
Mau
 
Posts: n/a
Default

Thanks Tushar for your answer...

....I try to give full control to everyone's group for all temporary
folders(C:\WINDOWS\Temp; C:\Documents and Settings\[user]\Impostazioni
locali\Temp; etc. ) but it doesn't work!!!!!

Have you any idea.




Tushar Mehta ha scritto:

This is sheer speculation...

Maybe the Export method creates a temporary file in some temp directory
to which the non-admin userid lacks write privileges.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article .com,
says...
Hello,
I'm trying to export an excel chart from vbscript


If I run the code using a non-administator user it doesn't work


If I put the same user in the administrators group it works.


Any solution to make it working in the first case too?


The folder I'm trying to export to has all the rigths: I give
fullcontrol to everyone..
please help!!!


E.G.
This one work fine only with administrator's user:
Ex.ActiveWorkbook.ActiveChart.Export "C:\FolderEveryOne\Image.gif"

This one work fine always:
Ex.ActiveWorkbook.save "C:\FolderEveryOne\file.xls"



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
Export from Oracle into Excel, "Open" is not an option in XP Pierre Excel Discussion (Misc queries) 0 August 4th 05 06:08 PM
Activating a Chart object Hari Prasadh Charts and Charting in Excel 6 August 2nd 05 07:22 PM
Updating Excel OLE chart data in PPT from Excel Hari Prasadh Charts and Charting in Excel 5 July 26th 05 08:52 PM
Adding a chart to a Word template linked to an Excel doc. Bobbie Excel Discussion (Misc queries) 0 January 3rd 05 08:07 PM
Chart appearance using "export" method Alex St-Pierre Charts and Charting in Excel 4 December 3rd 04 03:29 AM


All times are GMT +1. The time now is 09:14 AM.

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"