• WSd_rasley

    WSd_rasley

    @wsd_rasley

    Viewing 15 replies - 16 through 30 (of 557 total)
    Author
    Replies
    • in reply to: Cracking a linux system #1036416

      A friend of ours managed to get the linux passwords reset – I havn’t got a clue how, and perhaps it’s one of those things best left secret. Booting into linux allowed him to scan the Windows files, but not directly boot into Windows. The links in the Lost Password thread should be helpful to actually log into Windows which will make the rest of the job easier. Thanks.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1032116

      I tested your code and couldn’t get all of it to work. Beginning with your first group of code to change the account, strUsersAccount = … equated to “” and then errored on the System.PrivateProfileString command. Perhaps it still doesn’t like IMO-setups?

      The next oddity was Set olApp = CreateObject(“Outlook.Application”) – other than a pause nothing visible happened to indicate Outlook started; no splash screen, no taskbar button. I went to the Task Manager and there it was. Not a problem if Outlook is left closed at the end of the program.

      The code to check the outgoing item count worked perfectly joy and I’ll use that instead of my messagebox solution.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031938

      Hmmmm….. The 2cents 2cents 2cents solution of having an extra button-click in the program versus money money money to update a lot of computers and train-up? Which way would you go?

      Maybe when we upgrade the PC’s to Vista… cloud9 rofl

      Anyhow, I’m going to consider my initial questions solved. thankyou I’ve got code that works (maybe not the best but good enough nonetheless), and I’ve learned a good deal in the process.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031928

      What I get from Control Panel > Mail is the dialog box for Internet Accounts.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031918

      What, precisely, do you mean by loading a profile for Outlook? All of our installations are set up as Internet Mode Only, and I’ve never seen an option for selecting a profile to use.

      I would like to have a procedure in Word to watch Outlook’s Outbox and pause Word until the outgoing message count = 0 and thereby eliminate the need for an artificial pause, but for now I don’t know how to access the folder’s information.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031836

      Is this a frequent task? Would it be too much to ask the user to manually change the default back after completing the merge/send process?

      This program would be run every couple of days, in a busy computer room with a history of not following procedures explicitly — past experience tells me that anything more complicated than a button-click leaves the process open to too many human-induced errors.

      Perhaps an application-modal messagebox to halt the code’s execution immediately after completing the merge: “Merge complete. Now go to Outlook and make sure the messages get sent before you click this ‘OK’ button.” If they actually wait until the outbox is empty before switching back to Word and clicking the messagebox button, that might be good enough to do the trick. scratch

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031793

      Unfortunately, I have to admit that the code is not working as intended. I was hoping that the MailMerge-generated messages would use the changed default email account as the sending account, but they actually used the default account at time they were being sent. The default account was being changed to the alternate account as intended and the messages generated, but by the time they were being sent the default had been changed back — and that was the account being used when Outlook’s ‘send’ took effect. One, maybe two, messages went out using the changed account, but the rest go out with the ‘restored’ default account.

      Word doesn’t support a ‘Wait’ command, but Excel’s VBA library does (and the ‘Help’ file gives an excellent example of how to use this code) so I added Excel’s library to the standard ‘Word’ library list and was able to use it to build in a delay before executing the code to restore the original default account. What would have been a 10-second ‘Wait’ delay in Excel ran much longer in Word and still left open the possibility for Outlook to begin sending with the wrong account.

      It looks like I may have to use MailMerge to generate the messages and then find a way to determine when Outlook’s ‘Outbox’ folder empties before restoring the default account back to the original value (ie, If count of outgoing messages = 0 then continue with change to default email account).

      UNLESS — Would your code example allow the created outgoing messages to use the changed email account as the outgoing account regardless of the default account set at the time the messages are actually sent?

      It might help to clarify why these changes are necessary. The MailMerge will be processed and sent out from our IT department but the replies need to be received through a different account. The recipients of the outgoing messages need to be able to ‘Reply’ and have their message go to the desired email account (100% chance the reply would be sent to the correct receiving account, no margin for error allowable). This could easily be accomplished by using a separate PC to create the outgoing messages but there’s no way to reasonably justify the cost of setting up a single-purpose PC just for what is expected to be a temporary (weeks/months vs years) situation.

    • in reply to: Code to change default email account (Word 2000 / VBA) #1031710

      Thanks. Found a workable solution myself though, using WshShell.RegWrite. I had tried using this previously without success – I could manipulate a registry key but Outlook wouldn’t recognize the change. Today I found the key to the puzzle: close Outlook before changing the registry keys, and when Outlook is re-opened the changed values are recognized.

      The mostly-finished code (I’d love a variable subject line, using data pulled from the mailmerge source file):

      Code:
      Dim WshShell
      
      Sub macStartMerge()
          
      On Error GoTo Errors
      
      
      'Create the Shell object
          Set WshShell = CreateObject("WScript.Shell")
      
      
      'Close Outlook before manipulating the system default email account
              Shell "C:Program FilesAccessoriesTaskill.exe outlook.exe"
      
      
      'Change the default email account to the desired sending account
          WshShell.RegWrite "HKCUSoftwareMicrosoftOfficeOutlookOMI Account Manager" _
              & "Default Mail Account", "00000002", "REG_SZ"
      
      
      'Run the mail merge
          With ActiveDocument.MailMerge
              .Destination = wdSendToEmail
              .MailAsAttachment = False
              .MailAddressFieldName = "EMAIL"
              .MailSubject = "Subject"
              .SuppressBlankLines = False
              With .DataSource
                  .FirstRecord = wdDefaultFirstRecord
                  .LastRecord = wdDefaultLastRecord
              End With
              .Execute Pause:=True
          End With
      
      
      'Restore the default email account
          WshShell.RegWrite "HKCUSoftwareMicrosoftOfficeOutlookOMI Account Manager" _
              & "Default Mail Account", "00000001", "REG_SZ"
      
      
      'Open Outlook to send the messages
          Shell "C:Program FilesMicrosoft OfficeOfficeoutlook.exe"
      
      
      'Everything complete, finish program
          GoTo Done
      
      
      Errors:
      
      'Display a message box with the error encountered
          MsgBox ("The program encountered the following error:" & Chr(13) & Chr(10) & _
              Chr(10) & Err.Description)
          Exit Sub
      
      
      Done:
      
      End Sub

      Taskill is a stand-alone program that can end a running process. http://www.ozemail.com.au/~nulifetv/freezip/freeware%5B/url%5D

    • in reply to: How to format a USB memory key #1024522

      Looks promising, just have to find the time to try it. From the description it looks like the program NtfsFloppySetup.exe can be added to the boot-usb drive and run manually to access an NTFS drive. I have to wonder about the details though, since when I booted from my jump drive it was set up as C:, which is also the designation for my primary drive.

      I recently had a near-fatal issue with my main drive and I would have loved a way to boot the system from a jump drive to be able to copy from my main drive to my second drive (both NTFS) before attempting a repair.

    • in reply to: How to format a USB memory key #1024476

      The option to use the DOS files on the system is inactive if I select FAT or FAT32 formatting; if I select NTFS formatting it doesn’t even allow the ‘Create DOS’ disk option.

    • in reply to: How to format a USB memory key #1024463

      This is really sweet, but is there some way to make it able to read my NTFS drives?

    • in reply to: Send To resizes window (2000 SP3) #1023100

      Thanks for the bad news. So it’s fixed in newer versions… still not enough of a reason to update from 2000. I’ll bet there’s no way to change the default message content either. I’d love to kill the attachment security warning.

    • in reply to: SaveAs giving different file sizes (2000 SP3) #1020027

      The FileCopy trick from Hans worked and I’m now getting identical files from the code, so my main concern is taken care of. The bloat is unquestionably metadata, but I’m not really concerned about squeezing it out since the file sizes are still small enough to email conveniently, even with the bloat.

    • in reply to: SaveAs giving different file sizes (2000 SP3) #1019478

      That little trick should do the job just right, thanks. I was previously unaware of the FileCopy command but I’m sure I’ll find lots of other uses for it now. To use this fix I’ll have to save, close, FileCopy, and then open again but it should be an easy bit of code to whip together.

    • in reply to: Adobe Reader Problems #1014727

      I like Foxit and use it for my primary PDF reader; lightweight and very fast. I keep Adobe though because for some reason Foxit can’t open some of the files I receive – but Adobe has no problem with them. Since disk space will likely never be a problem this approach works very well for me.

    Viewing 15 replies - 16 through 30 (of 557 total)