Automatically translated.View original post

Gentle Excel 🔰 The clock moves

← Easy Excel time saving technique (@ oharu _ work)

Thank you for watching 😊

🎙️ Sound Ali Recommended

[Digital clock code that moves automatically]

Subdigital _ clock ()

Range ("B5"). Value = Now

Application.OnTimeNow + TimeValue ("00: 00: 01"), "digital _ clock"

End Sub

⚠️ Note ⚠️

1. Change "B5" in Range ("B5") to the cell number you want to display the clock

2. When saving, select "Excel Macro Enabled Workbook (.xlsm)."

If you want to stop the clock, close the Excel file.

"Macro seems difficult..." I avoided 🔰

The moment the clock moves in my Excel,

A little touching ✨

Even I, who tried macro for the first time, could do it,

Everyone will definitely be okay!

⚠️ I stumbled here!

When an error occurs

I wrote the code "B5" wrong 😂

The "B5" part is

Please choose the cell where you entered = now () yourself!

* It may not work depending on the version or specification

Next time, we will shorten the time to make your daily life easier

i will deliver it, so please save it and look back

*********************************************

Make some free time /

Mac 17 years | Windows 3 years

We are sending the struggle story of Excel de beginner 🔰.

Please like and follow me if you like

▶️ _ work

Please feel free to DM and comment

********************************************* "

Excel Time Shortening Easy Excel Excel beginner Excel Time Shortening Techniques# excel _ beginner

1/26 Edited to

... Read moreここでは、記事の「動くデジタル時計」を確実に動かすために、私が追加で調べて助かったポイントをまとめます。特に多いのが「エクセル マクロの実行がブロックされました」で止まるパターンでした。 ■ まず:Excelで時計を作る基本(VBA+表示形式) 1) 時計を表示したいセル(例:B5)に =NOW() を入れておくと、どのセルに出したいか迷いにくいです。 2) 表示を「時:分:秒」にしたい場合は、セルの書式設定 → 表示形式 → ユーザー定義で「h:mm:ss」または「h"時"mm"分"ss"秒"」にしました。これで秒まで見えて“時計感”が出ます。 3) VBAは標準モジュールに貼り付け。記事のコードの Range("B5") は、表示したいセル番地に変更します(ここを間違えてエラーになりがち)。 ■ 「マクロの実行がブロックされました」の主な原因と対処 最近のExcelはセキュリティが強く、ネットから入手したファイルや添付ファイルだとマクロがブロックされやすいです。私が試して解決した順に書きます。 1) ファイルの「ブロック解除」 エクスプローラーで該当ファイルを右クリック → プロパティ → 下の方に「ブロックの解除」が出ていたらチェックしてOK。これだけで動くことがあります。 2) 保存形式の確認(.xlsm) 「Excel マクロ有効ブック(.xlsm)」で保存し直します。.xlsxのままだとマクロ自体が保存されません。 3) Excelの信頼センター設定 Excel → オプション → セキュリティ センター → セキュリティ センターの設定 ・「マクロの設定」や ・「信頼できる場所」に、作業用フォルダを追加 で通るケースがありました。会社PCだと管理者ポリシーで変更できないこともあるので、その場合は情シスに確認が安心です。 4) 画面上部の「セキュリティの警告」 ファイルを開いた直後に黄色バーが出ていたら「コンテンツの有効化」を押します(出ない場合は上のブロック解除/信頼センター側の問題のことが多いです)。 ■ 止め方・注意点(地味に大事) この時計は Application.OnTime で次の実行予約を入れ続けるので、基本はファイルを閉じれば止まります。もし動作が重いと感じたら、更新間隔を 1秒→2秒にする(TimeValue("00:00:02"))だけでも軽くなりました。 私の場合、「B5の指定ミス」と「ブロック解除の見落とし」で時間を溶かしたので、同じところで詰まったら上から順番に確認してみてください。