M?u m? ? thm ?ng d?n v tn t?p ? m?i tr?t

D?ch tiu ? D?ch tiu ?
ID c?a bi: 222797 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

? Trang ny


Bi vi?t ny ch?a m?t m?u Microsoft Visual Basic cho cc ?ng d?ng v? m (ti?u th? t?c) cho bi?t thm ?ng d?n v tn t?p ? chn c?a m?i tr?t trong m?t bi thuy?t tr?nh. N?u b?n thay ?i tn ho?c v? tr c?a cc tr?nh by, b?n c th? ch?y cc macro m?t l?n n?a ? c?p nh?t cc chn.


Microsoft cung c?p l?p tr?nh v d? ? minh ho? ch?, khng c b?o hnh ho?c th? hi?n hay ng? ?. i?u ny bao g?m, nhng khng gi?i h?n, b?o ?m ng? ? kh? nng bn hng ho?c cho m?t m?c ch c? th?. Bi vi?t ny gi? ?nh r?ng b?n ? quen thu?c v?i ngn ng? l?p tr?nh m ang ?c ch?ng minh v v?i nh?ng cng c? ?c s? d?ng ? t?o ra v g? l?i th? t?c. Microsoft h? tr? cc k? s c th? gip gi?i thch cc ch?c nng c?a m?t th? t?c c? th?, nhng h? s? khng s?a ?i cc v d? ? cung c?p thm ch?c nng ho?c xy d?ng quy tr?nh ? p ?ng cc yu c?u c? th? c?a b?n. LU ?: Cc v d? v? m sau lm vi?c ch? trong PowerPoint. Visual Basic cho cc ?ng d?ng macro khng ?c h? tr? b?i Microsoft PowerPoint Viewer. bit thm thng tin, bm vao s bai vit sau xem bai vit trong C s Kin thc Microsoft:

Th? t?c Visual Basic m?u

   Sub UpdatePath()

      ' Macro to add the path and file name to each slide's footer.
      Dim PathAndName As String
      Dim FeedBack As Integer

      ' Place a message box warning prior to replacing footers.
      FeedBack = MsgBox( _
         "This Macro replaces any existing text that appears " & _
         "within your current footers " & Chr(13) & _
         "with the presentation name and its path. " & _
         "Do you want to continue?", vbQuestion + vbYesNo, _

      ' If no is selected in the dialog box, quit the macro.
      If FeedBack = vbNo Then
      End If

      ' Gets the path and file name and converts the string to lowercase.
      PathAndName = LCase(ActivePresentation.Path & "\" & _

      ' Checks whether there is a Title Master, and if so, updates the
      ' path.
      If ActivePresentation.HasTitleMaster Then
         With ActivePresentation.TitleMaster.HeadersFooters
            With .Footer
               .Text = PathAndName
            End With
         End With
      End If

    ' Updates the slide master.
      With ActivePresentation.SlideMaster.HeadersFooters
         With .Footer
            .Text = PathAndName
         End With
      End With

 ' Updates the individual slides that do not follow the master.
Dim X As Integer 
For X = 1 to ActivePresentation.Slides.Count 
     With ActivePresentation.Slides(X).HeadersFooters 
          With .Footer 
                .Text = PathAndName 
          End With
     End With 
   End Sub


? bi?t thm chi ti?t v? cch s? d?ng m?u m? trong bi vi?t ny, b?m s? bi vi?t d?i y ? xem bi vi?t trong c s? ki?n th?c Microsoft:
212536OFF2000: Lm th? no ? ch?y m?u m? t? bi vi?t c s? ki?n th?c

Thu?c tnh

ID c?a bi: 222797 - L?n xem xt sau cng: 17 Thang Chin 2011 - Xem xt l?i: 3.0
p d?ng
  • Microsoft PowerPoint 2004 for Mac
  • Microsoft Office PowerPoint 2003
  • Microsoft PowerPoint 2002 Standard Edition
  • Microsoft PowerPoint 2001 for Mac
  • Microsoft PowerPoint 2000 Standard Edition
  • Microsoft PowerPoint 97 Standard Edition
  • Microsoft PowerPoint X for Mac
T? kha:
kbcode kbdtacode kbhowto kbmacro kbprogramming kbmt KB222797 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:222797

Cung cp Phan hi


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com