メインコンテンツへスキップ

ブックの保存を無効にして、Excelでの保存のみを許可するにはどうすればよいですか?

ブックの元のデータを変更して保持するには、このブックのデータを更新するたびに、[名前を付けて保存]機能を使用する必要があります。 ただし、ワークブックの編集中にCtrl + Sキーを押してワークブックを保存することに慣れています。 保存機能を無効にして、Excelでのみ保存を許可する方法はありますか? この記事はあなたを助けることができます。

ブックの保存を無効にしますが、VBAコードの場合と同様に保存のみを許可します


ブックの保存を無効にしますが、VBAコードの場合と同様に保存のみを許可します

次のVBAコードは、保存機能を無効にするのに役立ちますが、ブックとして保存のみを許可します。

1。 押す 他の + F11 キーを同時に開いて アプリケーション向け Microsoft Visual Basic 窓。

2。 の中に アプリケーション向け Microsoft Visual Basic ウィンドウ、ダブルクリック このワークブック セクションに プロジェクト 開くペイン ThisWorkbook(コード) 窓。 次に、以下のVBAコードをコピーしてコードウィンドウに貼り付けます。

VBAコード:Excelでのみ保存を許可する

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    If Not SaveAsUI Then
        Cancel = True
        MsgBox "You cannot save this workbook. Use Save As", vbInformation, "Kutools for Excel"
    End If
End Sub

3。 押す 他の + Q を閉じるためのキー アプリケーション向け Microsoft Visual Basic 窓。

4.ブックにはVBAスクリプトが含まれているため、ブックを保存すると、最初に次のダイアログボックスが表示されます。 クリックしてください 有り

5.このワークブックの保存機能が無効になっていることを通知するダイアログボックスが表示されます。このワークブックの更新データを保存するには、[名前を付けて保存]機能を使用する必要があります。

クリックしてください OK ボタンをクリックし、[名前を付けて保存]機能を使用してブックを保存します。


関連記事:

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What you want is already built in to Excel. When you are finished with your workbook click 'Save As'. Now Click 'Browse' (has a folder icon next to it near middle left of screen). At the bottom of the new window, click the 'Tools' dropdown and click 'General'. Enter a password for modifying the workbook. Now no one without the password can modify your original workbook but can modify it and save it as something else.
This comment was minimized by the moderator on the site
This works well but there are also complex macros running. What I am finding is that when you open the master you can't 'Save', only 'Save As' but once the macros have run it will allow you to 'Save' which defeats the purpose as its after the macros have run that we need to prevent the over-writing.
This comment was minimized by the moderator on the site
It does indeed disable Save function but warns and then closes without saving, not letting the user to Save as after the warning
This comment was minimized by the moderator on the site
Hi,
In my case, the workbook can be saved as after manually closing the warning dialog.
Maybe it is the problem caused by Excel version. Which Excel version do you use?
This comment was minimized by the moderator on the site
Will the save button be disabled completely in excel or only in that particular excel workbook file.
This comment was minimized by the moderator on the site
Dear Omkar,
The Save button can only be disabled in that particular workbook file.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations