Results 1 to 2 of 2

Thread: Office Assistant in Excel

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448

    Office Assistant in Excel

    How do I manipulate or at least show and hide the office assistant in the VB portion of Excel/Access/Word/or Powerpoint programs?

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    This works in VB....should be able to modify for VBA useage.

    VB Code:
    1. Dim objOffice As New Word.Application
    2.    
    3.    With objOffice.Assistant
    4.      
    5.         '.On = True
    6.         ' set .visble to false to hide while turnning it on.
    7.         ' and then change filename that re-freshes the filename correctly
    8.        
    9.        .Visible = False
    10.        
    11.        '.On = True
    12.         ' assistant filenames end with ACS..the following are
    13.         ' on my system
    14.         '
    15.        .FileName = "d:\msoffice\office\clippit.acs"
    16.        
    17.        .Visible = True
    18.  
    19.        ' possible animations...characters don't accept all of them
    20.  
    21.       '.Animation = msoAnimationAppear
    22.       '.Animation = msoAnimationBeginSpeaking
    23.       '.Animation = msoAnimationCharacterSuccessMajor
    24.       '.Animation = msoAnimationCheckingSomething
    25.       '.Animation = msoAnimationDisappear
    26.       '.Animation = msoAnimationEmptyTrash
    27.       '.Animation = msoAnimationGestureDown
    28.       '.Animation = msoAnimationGestureLeft
    29.       '.Animation = msoAnimationGestureRight
    30.       '.Animation = msoAnimationGestureUp
    31.       '.Animation = msoAnimationGetArtsy
    32.       '.Animation = msoAnimationGetAttentionMajor
    33.       '.Animation = msoAnimationGetAttentionMinor
    34.       '.Animation = msoAnimationGetTechy
    35.       '.Animation = msoAnimationGetWizardy
    36.       '.Animation = msoAnimationGoodbye
    37.       '.Animation = msoAnimationGreeting
    38.       '.Animation = msoAnimationIdle
    39.       '.Animation = msoAnimationListensToComputer
    40.       '.Animation = msoAnimationLookDown
    41.       '.Animation = msoAnimationLookDownLeft
    42.       '.Animation = msoAnimationLookDownRight
    43.       '.Animation = msoAnimationLookLeft
    44.       '.Animation = msoAnimationLookRight
    45.       '.Animation = msoAnimationLookUp
    46.       '.Animation = msoAnimationLookUpLeft
    47.       '.Animation = msoAnimationLookUpRight
    48.       '.Animation = msoAnimationPrinting
    49.       '.Animation = msoAnimationRestPose
    50.       '.Animation = msoAnimationSaving
    51.       '.Animation = msoAnimationSearching
    52.       '.Animation = msoAnimationSendingMail
    53.       '.Animation = msoAnimationThinking
    54.       '.Animation = msoAnimationWorkingAtSomething
    55.       .Animation = msoAnimationWritingNotingSomething
    56.      
    57.      
    58.       Sleep 5000
    59.      
    60.       .Animation = msoAnimationSendingMail
    61.        
    62.       Sleep 5000
    63.            
    64.       .Animation = msoAnimationCharacterSuccessMajor
    65.      
    66.       Sleep 5000
    67.            
    68.       .Visible = False
    69.       .On = False
    70.    End With
    71.    
    72.    Set objOffice = Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width