Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Windows Scripting Host/Windows XP

I have been using a small piece of code found on the newsgroup to create a
shortcut to an excel file. This has worked fine until we started upgrading
to Windows XP. It works fine on stand alone machines, but hangs up on the
"Save" line on our networked machines. The network administrator will give
me access to the security password if it can be written into code, but I do
not even know where to begin. If anyone can assist me or knows a workaround,
I would greatly appreciate your help. Below is the code I am using.
Thanks for your help.
Valerie

'Creates Shortcut to file

Set WshShell = CreateObject("Wscript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")

Set OShellLink = WshShell.CreateShortcut(strDesktop & "\Daily Sales " &
Range("a1").Text & ".lnk")

With OShellLink
.TargetPath = ActiveWorkbook.FullName
.WindowStyle = 4
.Save
End With


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
i want all windows in one excel frame (windows in taskbar) Subramanya Excel Discussion (Misc queries) 1 December 18th 09 03:14 PM
cannot open exel from windows xp in windows vista and visa versa lildiana New Users to Excel 4 February 25th 09 07:26 PM
can windows vista edit shared document from windows xp sasa Excel Worksheet Functions 1 January 9th 08 06:44 PM
Page breaks are different in Windows 2000 and Windows XP Bill Allen Excel Discussion (Misc queries) 1 November 23rd 05 04:42 PM
Use Windows Script to run Windows Explorer Search? Ian Elliott[_3_] Excel Programming 0 January 12th 04 05:03 PM


All times are GMT +1. The time now is 10:51 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"