Yuav ua li cas Tsim PowerPoint Macro los hloov cov duab

Cov txheej txheem:

Yuav ua li cas Tsim PowerPoint Macro los hloov cov duab
Yuav ua li cas Tsim PowerPoint Macro los hloov cov duab
Anonim

Yuav Paub

  • Go to View > Macros, sau npe rau macro thiab xaiv Create, ces sau tus lej rau macro.
  • Txuag macro raws li PowerPoint Macro-Enabled Presentation.
  • Yuav tsum siv macro, mus rau View > Macros, xaiv macro koj ua, thiab xaiv Khiav.

Kab lus no piav qhia yuav ua li cas los tsim PowerPoint macro los hloov cov duab kom tag nrho cov duab zoo ib yam thiab tib txoj hauj lwm ntawm tus swb. Cov lus qhia siv rau PowerPoint 2019, 2016, 2013, thiab PowerPoint rau Microsoft 365.

Ntxiv cov duab rau PowerPoint Slides

Yog tias koj muaj ntau cov duab los suav nrog hauv PowerPoint, ua kom cov txheej txheem ntawm resizing lawv yam tsis tas yuav rov ua haujlwm nyuaj rau txhua daim duab los ntawm kev tsim cov macro los ua txoj haujlwm rau koj.

Ua ntej koj pib, ntxig tag nrho cov duab koj xav siv hauv PowerPoint kev nthuav qhia.

  1. Qhib qhov kev nthuav qhia PowerPoint thiab xaiv thawj tus swb uas yuav tuav cov duab.
  2. Nyob rau Insert.
  3. Xaiv Daim duab > Daim duab los ntawm cov ntaub ntawv.
  4. Xaiv duab hauv koj lub computer thiab xaiv Insert.
  5. Rov ua cov txheej txheem no kom ntxiv cov duab rau lwm cov slides hauv koj qhov kev nthuav qhia.

    Image
    Image
  6. Tsis txhob txhawj xeeb tias cov duab loj dhau lossis me dhau rau cov swb ntawm qhov no. Lub macro yuav saib xyuas cov duab resizing kom lawv loj tib yam.

Record a Macro los hloov cov duab

Tom qab tag nrho cov duab tau muab tso rau hauv koj qhov kev nthuav qhia PowerPoint, tsim cov macro kom txo tau tag nrho cov duab rau tib qhov loj thiab txoj hauj lwm ntawm tus swb. Ua ntej koj tsim cov macro kom ua haujlwm ua haujlwm, koj yuav xav xyaum cov kauj ruam ntawm ib daim duab kom paub tseeb tias koj tau txais cov txiaj ntsig uas koj xav tau.

  1. Mus rau View thiab xaiv Macros.

    Image
    Image
  2. Nyob hauv Macro dialog box, nkag mus rau Macro npe.

    Lub npe tuaj yeem muaj cov tsiaj ntawv thiab tus lej, tab sis yuav tsum pib nrog tsab ntawv thiab tsis tuaj yeem muaj qhov chaw. Siv cov ntawv hauv qab los qhia qhov chaw hauv lub npe macro.

    Image
    Image
  3. Tus Macro hauv daim ntawv qhia lub npe ntawm kev nthuav qhia koj ua haujlwm rau.

    A macro tuaj yeem siv rau ntau qhov kev nthuav qhia. Qhib lwm qhov kev nthuav qhia thiab xaiv Txhua qhov kev nthuav qhia qhib.

  4. Xaiv Create qhib Microsoft Visual Basic rau daim ntawv thov.

    Image
    Image
  5. Nkag mus rau cov ntaub ntawv hauv qab no tab sis hloov cov lej tom qab kos npe sib npaug nrog koj tus kheej qhov xav tau duab loj thiab tso chaw. Sau cov lej hauv cov ntsiab lus. Piv txwv li:

    sub ResizePhotos ()

    With ActiveWindow. Selection. ShapeRange

    . Height=418.3

    . Width=619.9

    . Left=45. Top=45

    End With

    End Sub

    Image
    Image
  6. Xaiv Save qhib Save As dialog box.
  7. In the Save as type list, xaiv PowerPoint Macro-Enabled Presentation.

    Image
    Image
  8. Xaiv Save.
  9. Kaw Visual Basic rau daim ntawv thov.

Thov lub Macro los hloov cov duab hauv koj qhov kev nthuav qhia

  1. Xaiv cov duab koj xav hloov pauv.
  2. Mus rau View thiab xaiv Macros.
  3. Xaiv macro koj nyuam qhuav tsim thiab xaiv Run.

    Image
    Image
  4. Koj cov duab tau hloov pauv thiab txav mus. Txuas ntxiv siv cov macro rau lwm cov duab hauv koj qhov kev nthuav qhia.

Pom zoo: