xref: /AOO41X/main/helpcontent2/source/text/shared/explorer/database/migrate_macros.xhp (revision 5d4216fabf6cf34657efaf4bcf80f5215e5e5e34)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir<helpdocument version="1.0">
3cdf0e10cSrcweir
40ba1032bSAndrew Rist<!--***********************************************************
5cdf0e10cSrcweir *
60ba1032bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
70ba1032bSAndrew Rist * or more contributor license agreements.  See the NOTICE file
80ba1032bSAndrew Rist * distributed with this work for additional information
90ba1032bSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
100ba1032bSAndrew Rist * to you under the Apache License, Version 2.0 (the
110ba1032bSAndrew Rist * "License"); you may not use this file except in compliance
120ba1032bSAndrew Rist * with the License.  You may obtain a copy of the License at
13cdf0e10cSrcweir *
140ba1032bSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
15cdf0e10cSrcweir *
160ba1032bSAndrew Rist * Unless required by applicable law or agreed to in writing,
170ba1032bSAndrew Rist * software distributed under the License is distributed on an
180ba1032bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
190ba1032bSAndrew Rist * KIND, either express or implied.  See the License for the
200ba1032bSAndrew Rist * specific language governing permissions and limitations
210ba1032bSAndrew Rist * under the License.
22cdf0e10cSrcweir *
230ba1032bSAndrew Rist ***********************************************************-->
240ba1032bSAndrew Rist
250ba1032bSAndrew Rist
26cdf0e10cSrcweir
27cdf0e10cSrcweir<meta>
28cdf0e10cSrcweir      <topic id="textsharedexplorerdatabasemigrate_macrosxml" indexer="include">
29cdf0e10cSrcweir         <title xml-lang="en-US" id="tit">Migrate Macros</title>
30cdf0e10cSrcweir         <filename>/text/shared/explorer/database/migrate_macros.xhp</filename>
31cdf0e10cSrcweir      </topic>
32cdf0e10cSrcweir   </meta>
33cdf0e10cSrcweir   <body>
34cdf0e10cSrcweir      <section id="migrate_macros">
35cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id6009095"><bookmark_value>wizards;macros (Base)</bookmark_value>
36cdf0e10cSrcweir         <bookmark_value>Macro Wizard (Base)</bookmark_value>
37cdf0e10cSrcweir         <bookmark_value>macros;attaching new (Base)</bookmark_value>
38cdf0e10cSrcweir         <bookmark_value>migrating macros (Base)</bookmark_value>
39cdf0e10cSrcweir</bookmark><comment>MW added 2 index entries</comment>
40cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id0112200902353472" role="heading" level="1" l10n="NEW"><link href="text/shared/explorer/database/migrate_macros.xhp">Migrate Macros</link></paragraph>
41cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:DBMigrateScripts" id="bm_id0224200911384751" localize="false"/>
42cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0112200902353466" role="paragraph" l10n="NEW"><ahelp hid=".">The Database Document Macro Migration Wizard moves existing macros from sub-documents of an old Base file into the new Base file's macro storage area.</ahelp></paragraph>
43cdf0e10cSrcweir      </section>
44cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/dbaccess:PushButton:TP_SAVE_DBDOC_AS:PB_BROWSE_SAVE_AS_LOCATION" id="bm_id022420091141368" localize="false"/>
45cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id0224200911454780" role="paragraph" l10n="NEW"><ahelp hid="." visibility="hidden">Choose a location and file name to save the new database file. By default, the new file gets the same name as the old file, while the old file gets renamed with the string "backup" in the name.</ahelp></paragraph>
46cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/dbaccess:MultiLineEdit:TP_SUMMARY:ED_CHANGES" id="bm_id0224200911450172" localize="false"/>
47cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id022420091145472" role="paragraph" l10n="NEW"><ahelp hid="." visibility="hidden">The list shows all changes that were applied to the database file.</ahelp></paragraph>
48cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id0112200902353542" role="paragraph" l10n="NEW">Previously, macros have been allowed to reside only in the text sub-documents of forms and reports. Now macros can also be stored in the Base file itself. This means that macros in Base files can be called now from any of its sub-components: forms, reports, table design, query design, relation design, table data view.</paragraph>
49cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id0112200903075865" role="paragraph" l10n="NEW">However, it is technically not possible to store macros both in a Base file and in its sub-documents at the same time. So, if you want to attach some new macros to the Base file, while retaining any existing old macros that were stored in the sub-documents, you must move the existing old macros up to the Base file's macro storage area.</paragraph>
50cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id0112200903075830" role="paragraph" l10n="NEW">The Database Document Macro Migration Wizard can move the macros up into the Base file's storage area. You can then examine the macros and edit them as needed.</paragraph>
51cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id0112200903075951" role="paragraph" l10n="NEW">For example, it is possible that macros from the sub-documents had the same module names and macro names. After you moved the macros into one common macro storage area, you must edit the macros to make the names unique. The wizard cannot do this.</paragraph>
52cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id0112200903075915" role="paragraph" l10n="NEW">The wizard can backup the Base file to another folder of your choice. The wizard changes the original Base file. The backup remains unchanged.</paragraph>
53cdf0e10cSrcweir      <embed href="text/shared/00/00000001.xhp#zurueckautopi"/>
54cdf0e10cSrcweir      <embed href="text/shared/00/00000001.xhp#weiterautopi"/>
55cdf0e10cSrcweir      <embed href="text/shared/00/00000001.xhp#finish"/>
56cdf0e10cSrcweir      <embed href="text/shared/00/00000001.xhp#abbrechen"/>
57cdf0e10cSrcweir      <section id="relatedtopics">
58*5d4216faSmseidel         <paragraph xml-lang="en-US" id="par_id0112200902353554" role="paragraph" l10n="NEW"><link href="https://wiki.openoffice.org/wiki/Macros_in_Database_Documents">An in depth explanation by the developers (Wiki)</link></paragraph>
59cdf0e10cSrcweir      </section>
60cdf0e10cSrcweir   </body>
61cdf0e10cSrcweir</helpdocument>
62