Date: prev next · Thread: first prev next last
2022 Archives by date, by thread · List index

Have gotten this macro to do what I want, but the process requires two 
inputbox commands. Was trying to find a way to have a single dialog rather 
than two. All the searches come up with thing not even closely related to what I 
am looking for. Many are linked to Calc or Base or have super complex step.
Want a single form or whatever to enter the to: info and subject: info.
Have tried dozens of search terms but not finding an example. 

Sub Mailto
Dim oDoc As Object
Dim Path$, sendto$,subject$,cmd$
oDoc = ThisComponent
Path$ = oDoc.getURL()
sendto$ = InputBox ("To:")
subject$ = InputBox("Subject:")
If oDoc.HasLocation() Then
  subject$=replace(subject$," ","%20")
  cmd$="/home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDTO.EXE " 
&mid(Path$,8,100) &" "&" 
  Print "The document has not yet been stored"
End If
End Sub
 Michael D. Setzer II - Computer Science Instructor (Retired)                    
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.