Skip i'r prif gynnwys

Sut i arbed llyfr gwaith yn gyflym i sawl lleoliad yn Excel?

Yn Excel, gallwn arbed llyfr gwaith i leoliad penodol fel y dymunwn, fodd bynnag, a ydych wedi delweddu arbed un llyfr gwaith i sawl ffolder ar yr un pryd? Yn yr erthygl hon, gyda'r cod VBA, gallwch arbed un llyfr gwaith yn gyflym i sawl lleoliad ar unwaith.

Cadwch lyfr gwaith i sawl lleoliad gyda VBA


swigen dde glas saeth Cadwch lyfr gwaith i sawl lleoliad gyda VBA

Er mwyn arbed llyfr gwaith i sawl lleoliad, does ond angen i chi gymhwyso un cod macro.

1. Gwasgwch Alt + F11 allweddi i agor Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

2. Cliciwch Mewnosod > Modiwlau a gludo islaw'r cod i sgript y Modiwl. Gweler y screenshot:

VBA: Cadwch lyfr gwaith i sawl lleoliad

Sub SaveToLocations()
'UpdateByExtendoffice20160623
    ActiveWorkbook.SaveCopyAs "C:\Users\DT168\Documents\" + ActiveWorkbook.Name
    ActiveWorkbook.SaveCopyAs "C:\Users\DT168\" + ActiveWorkbook.Name
    ActiveWorkbook.Save
End Sub

doc arbed i sawl lleoliad 1

Tip: yn y cod macro, gallwch newid y llwybrau arbed fel y dymunwch.

3. Gwasgwch F5 allwedd i redeg y cod, ac mae'r llyfr gwaith gweithredol wedi'i arbed i'r lleoliadau a nodwyd gennych yn y cod.

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how to make this code run when close/save the file automatically? thanks in advance!
This comment was minimized by the moderator on the site
Is it possible to save a file to multiple locations EVERY time someone amends it? At my office we share docs and 6 people can edit the same doc. I want to be able to create a backup of the file to a diff folder every time someone makes a change and saves it. It has to be a diff folder because the file is too big to put a backup in the same location. Can someone help please? Thanks
This comment was minimized by the moderator on the site
Hi,

I may offer you my solution called SOS Click for Microsoft Office. It is available at https://www.sos-click.com and works with Word, Excel and PowerPoint and allows you to save to several places in one click. It also allows you to auto-save every X minutes (up to 60). It can also attach a time-stamp to the filename so you can distinguish between different versions of the same spreadsheet. Hope this helps.
This comment was minimized by the moderator on the site
Hi,
I may offer you my solution called SOS Click for Microsoft Office. It is available at https://www.sos-click.com and works with Word, Excel and PowerPoint and allows you to save to several places in one click. It also allows you to auto-save every X minutes (up to 60). It can also attach a time-stamp to the filename so you can distinguish between different versions of the same spreadsheet. Hope this helps.
This comment was minimized by the moderator on the site
Sorry, I did not find a good solustion about this problem
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations