Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3347

Re: Export pdf using Windows window

$
0
0

Stefan,

 

 

i have tried your very simple code to save PDF Document but without success. I have a variable which stores the filename. On executing WshShell.Sendkeys strFilename, the system types in the variable in the vba code itself and not on the activated SAVE AS Dialog Box.

 

Could you kindly look into this.

 

thanks

Amit

 

 

************************************************************

 

  Set WshShell = CreateObject("WScript.Shell")

  Application.Wait Now + TimeValue("0:00:01")

  AppActivate "Speichern unter"

  WshShell.SendKeys "%n"

  WshShell.SendKeys strFilename

  WshShell.SendKeys "%s"

  Set WshShell = Nothing

 

************************************************************


Viewing all articles
Browse latest Browse all 3347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>