Excel でマクロを有効または無効に設定する方法
マクロのアクティブ化とは
既存の Excel 設定では、マクロを含むファイルを開くと警告が表示されます。マクロをそのまま実行することはできません。
チェックせずに実行すると、悪意のあるコードが含まれている場合、コンピューターがウイルスに感染している可能性があります。それを防ぐには、使用する人に、それが大丈夫なマクロであるかどうかをチェックするように頼む必要があります。
インターネット上にダウンロードされたマクロについては特に注意してください。マクロは、信頼できるファイルに対してのみ有効にします。
マクロを有効にする3つの方法
マクロを有効にするには、メッセージ バーからマクロを有効にする方法、Backstage ビューからマクロを有効にする方法、およびファイルが開いている間だけマクロを有効にする方法の 3 つがあります。
あなたの状況に合わせて使いましょう。
※この記事はExcel 2019を用いて解説しています。Excel 2003、2007、2010、または2013をお使いの場合、一部の画面の名前や手順などが異なる場合があります。ご理解のほどよろしくお願いいたします。
メッセージ バーからマクロを有効にする
マクロを含む Excel ブック (ファイル) を開くと、黄色のセキュリティ警告メッセージ バーに “マクロが無効" と表示されます。このメッセージ バーからマクロを有効にする方法について説明します。
作業時間:1分
[コンテンツを有効にする]を押す
信頼できるブックの場合は、[コンテンツを有効にする]ボタンを押します。
マクロを有効にする
マクロが有効になりました。ブック内のマクロを実行できます。ファイルの「コンテンツを有効にする」を押すと、ファイルをコピーまたは移動しない限り、メッセージは表示されません。
バックステージビューからマクロを有効にする
「マクロが無効です」という黄色のセキュリティ警告メッセージ バーが表示されたときに、[ファイル]タブを開く画面 (Backstage ビュー) からマクロを有効にする方法について説明します。
[ファイル]タブを選択します。
バックステージビューが開いたら、(1)を選択します。[Information](2)を押します。[Enable Content]ボタンをクリックします。
[すべてのコンテンツを有効にする]を選択します。このドキュメントのマクロは常に有効にします (信頼済みドキュメントにします)。
マクロが有効になりました。ブック内のマクロを実行できます。
マクロは、ファイルが開いている間のみ有効にする
ファイルが開いた後にのみマクロを有効にする場合の設定方法は次のとおりです。
[ファイル]タブを選択します。
バックステージビューが開いたら、(1)を選択します。[Information](2)を押します。[Enable Content]ボタンをクリックします。
[詳細オプション]を選択します。
[Microsoft Office セキュリティ オプション]ダイアログ ボックスが表示されます。
(1) 選択[Enable the contents of this session]とプレス (2)[OK]ボタン。
マクロが有効になりました。ブック内のマクロを実行できます。
ファイルを再度開くと、警告メッセージが再び表示されます。
セキュリティ センターからマクロ設定を変更する
マクロは、設定を変更することでいつでも実行または無効にできます。お好みに合わせて設定しましょう。
[ファイル]タブを選択します。
バックステージビューが開いたら、[Options].
[Excelオプション]ダイアログボックスが表示されます。
(1) 選択[Trust Center](2)を押します。[Trust Center Settings]ボタン。
※以前はセキュリティセンターと呼ばれていましたが、現在はセキュリティセンターに変更されています。
[セキュリティ センター]ダイアログ ボックスが表示されます。
(1) 選択[Macro Settings]左側のナビゲーションから。(2)お好みの設定を選択してください(今回は[Display a warning and disable all macros])から4つの「マクロ設定」を選択し、(3)を押します。[OK]ボタン。
4つのマクロ設定を以下にまとめますので、参考にしてください。
マクロ設定名 | 設定内容 |
---|---|
警告なしにすべてのマクロを無効にする | マクロとマクロのセキュリティ警告は無効になります。マクロを使用したくない場合は、マクロを設定します。 |
警告を表示してすべてのマクロを無効にする | これはデフォルトで設定されています。マクロは無効になりますが、マクロを含むファイル (ブック) の場合は、セキュリティ警告が表示されます。 |
デジタル署名されたマクロを除くすべてのマクロを無効にする |
マクロは無効になりますが、マクロを含むファイル (ブック) の場合は、セキュリティ警告が表示されます。 ただし、発行元を信頼するとマクロが実行されますが、発行元を信頼していない場合は、署名を有効にするように通知されます。edマクロと出版社を信頼します。 |
すべてのマクロを有効にする (推奨されません。危険なコードが実行される可能性があります) | 警告なしにすべてのマクロを実行します。悪意のあるファイルの場合、コンピュータのセキュリティは弱くなります。 |
「Excelオプション」ダイアログボックスが再び表示されますので、[OK]ボタン。
セキュリティ センター (セキュリティ センター) で設定されたマクロ設定が反映されました。
マクロが有効にならない場合の対処方法
マクロが有効になっていない (コンテンツが有効になっている) 場合
黄色のセキュリティ警告メッセージ バーに “マクロが無効" と表示されない場合は、セキュリティ センターでマクロの設定が変更されている可能性があります。
上記の「セキュリティセンター(セキュリティセンター)からマクロ設定を変更する」の章を参照してください。
ファイル形式を変更した場合
Excel ブック (.xlsm) を Excel ブック (.xlsx) に保存すると、マクロは無効になります。拡張機能を確認し、Excel マクロ対応ブックにもう一度保存します。
バックステージビューを開き、(1)を選択します。[Save as]選ぶ[Excel macro valid book (*.xlsm)](2)拡張子から、(3)を押します[Save]ボタン。
マクロスコピー専門書の紹介
マクロをもっと深く研究したいのなら、この本で理解を深めてみませんか?
ディスカッション
コメント一覧
Really enjoyed this blog post.Really looking forward to read more. Much obliged.
I really like and appreciate your blog.Much thanks again. Keep writing.
Wow, great article. Keep writing.
be bold no essay scholarshippersuasive essay ideaswriting a literature essay
Im obliged for the blog post.Really thank you! Keep writing.
I am so grateful for your article.Really thank you! Fantastic.
Really informative blog article.Thanks Again. Will read on…
I value the article.Really looking forward to read more. Really Great.
Say, you got a nice blog article.Really looking forward to read more. Fantastic.
Thanks for the blog article.Really looking forward to read more. Really Great.
Remarkable issues here. I’m very glad to peer your article. Thank you a lot and I am taking a look ahead to touch you. Will you kindly drop me a mail?
Very informative article.Much thanks again. Cool.
Im obliged for the article post.Really looking forward to read more. Fantastic.
Very good blog article.Really thank you! Really Great.
Thanks-a-mundo for the blog post.Really thank you! Keep writing.
At this time it appears like WordPress is the preferred bloggingplatform out there right now. (from what I’ve read) Is that what youare using on your blog?
Found this on MSN and I’m happy I did. Well written article.Scrapebox list $5
zithromax antibiotic zithromax online paypal – where can i get zithromax
Thanks a lot for the blog post.Really looking forward to read more. Cool.
Thank you, I’ve just been searching for information about this subject for a while and yours is the greatest I havefound out till now. However, what concerning the conclusion? Areyou positive concerning the supply?
Gypsy Nation (Excerpt) (From The Album ‘Tales From A Meinibone Tavern’) Satin Doll I Blame You — Ledisi — The Truth (CD, Album)
Thanks again for the blog post. Keep writing.
I loved your blog.Really looking forward to read more. Awesome.
wow, awesome blog.Really looking forward to read more. Fantastic.
hydro chloroquine what is plaquenil malaria usmle
Thanks again for the blog article.Really looking forward to read more. Keep writing.
Hey, thanks for the blog post.Really thank you! Keep writing.
Really appreciate you sharing this blog. Keep writing.
Fantastic blog article. Awesome.
Incredible lots of terrific facts! canada pharmaceutical online ordering
canadian pharmacy world coupon canadian pharmacy discount coupon – pharmaceutical online
Howdy! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blogto rank for some targeted keywords but I’m not seeing very good results.If you know of any please share. Thank you!
Thank you for your blog.Much thanks again. Really Cool.
I really liked your blog.Thanks Again. Great.
Very good post.Really thank you! Keep writing.
Im obliged for the blog article.Thanks Again. Great.
Im obliged for the blog post.Really thank you! Want more.
Im grateful for the article post. Great.
Major thanks for the blog post.Really thank you! Want more.
I used to be suggested this blog by means of my cousin. I am now not certain whether this put up is written through him as nobody else realize suchcertain about my problem. You are wonderful! Thank you!
Thanks a lot for the blog post.Much thanks again. Fantastic.
I cannot thank you enough for the blog post. Keep writing.
Thanks so much for the blog article.Thanks Again. Cool.
Fantastic article.Really thank you! Great.
tesekkürler admin çok isime yarayacak bir bilgi.
I cannot thank you enough for the article post.Thanks Again. Keep writing.
big pharmacy online cvs pharmacy store timings
Fantastic post.Really looking forward to read more. Awesome.
Major thankies for the blog post.Thanks Again. Cool.
Fine way of describing, and nice post to obtain information regarding my presentation topic, which i am going to convey in academy.
I get pleasure from, lead to I found exactly what I used to be looking for. You have ended my four day long hunt! God Bless you man. Have a nice day. Bye
When some one searches for his essential thing, so he/she wishes to be available that in detail, so that thing is maintained over here.
Article writing is also a fun, if you be acquainted with after that you can write otherwise it is complex towrite.
Thanks-a-mundo for the blog post.Thanks Again. Cool.
I need to to thank you for this great read!! I absolutely enjoyed every bit of it. I have got you book marked to check out new things you post…
Very good article.Really looking forward to read more. Will read on…
Im obliged for the blog.Thanks Again. Want more.
Very neat blog.Much thanks again. Great.
I really like and appreciate your blog.Much thanks again.
A big thank you for your post. Really Cool.
Thank you for your article post.Really looking forward to read more. Much obliged.
Say, you got a nice post.Really thank you! Really Cool.
Really enjoyed this blog.Thanks Again. Fantastic.
Thanks a lot for the article.Much thanks again. Awesome.
online gambling free slots games slots free
Muchos Gracias for your post.Thanks Again. Fantastic.
wow, awesome post.Really thank you! Awesome.
Thank you for your article.Really thank you! Awesome.
rittenhouse apartments carrollton park apartments pointe west apartments
Major thanks for the blog. Really Cool.
Hello. excellent job. I did not expect this. This is a impressivestory. Thanks!Take a look at my blog post … forum.m2clasic.ro
A motivating discussion is worth comment. I do believe that you should write more on this issue, it might not be a taboo matter but usually folks don’t discuss such issues. To the next! Best wishes!!
This is one awesome article.Really thank you! Fantastic.
Thanks designed for sharing such a fastidious thought, post is nice, thats why i have read it fully
lily james phim và chương trình truyền hình
Thanks for the blog.Thanks Again. Awesome.
Straight away she put her mouth around my head getting a good taste of me.
I really enjoy the article.Thanks Again. Awesome.
ivermectin horse paste ingredients how to worm chickens with ivermectin
Enjoyed every bit of your article.Really looking forward to read more. Much obliged.
Major thanks for the blog article.Thanks Again. Great.
Wow that was strange. I just wrote an incredibly long comment but after I clicked submitmy comment didn’t show up. Grrrr… well I’m not writing all thatover again. Regardless, just wanted to say wonderful blog!
Great article.Thanks Again. Really Great.
Looking forward to reading more. Great article.
A big thank you for your article.Really thank you! Awesome.
I cannot thank you enough for the blog article.Thanks Again. Want more.
Aw, this was a really nice post. Spending some time and actual effort to produce a great article…but what can I say… I hesitate a whole lot and never manage to getnearly anything done.
Im thankful for the article.Really thank you!
A big thank you for your blog article.Thanks Again. Awesome.
Thank you ever so for you post. Much obliged.
Thanks-a-mundo for the blog. Awesome.
Thanks so much for the article.Much thanks again. Awesome.
Appreciate it for helping out, good info. « It does not do to dwell on dreams and forget to live. » by J. K. Rowling.
Im obliged for the article post.Really thank you! Want more.
An intriguing discussion is worth comment. I believe that you ought topublish more on this subject, it might not be a taboo subjectbut typically folks don’t discuss these topics.To the next! Cheers!!
Im thankful for the article post.Really thank you! Really Cool.
Very informative blog.Really looking forward to read more. Cool.
ivermectin over the counter walgreens worming rabbits with ivermectin
Thanks-a-mundo for the blog post.Really looking forward to read more. Cool.
I enjoy reading through an article that will make people think. Also, thanks for permitting me to comment!
I cannot thank you enough for the post. Really Great.
Do you have a spam problem on this blog; I also am a blogger, and I was curiousabout your situation; many of us have created some nice methods andwe are looking to exchange methods with others, be sure to shoot me an e-mail if interested.
Really informative blog. Want more.
Verschiedene Dosierungen dieses Krauts sind als Pillen, Pulver oder Tonika erhältlich
Im obliged for the post.Much thanks again. Really Cool.
Hi there, of course this piece of writing is reallypleasant and I have learned lot of things from it on the topic of blogging.thanks.
Hmm is anyone else having problems with the pictures on this blog loading?I’m trying to figure out if its a problem on my end orif it’s the blog. Any feedback would be greatly appreciated.
Thank you for your article.Really looking forward to read more. Want more.
ivermectin cream 5 ivermectin for sale – ivermectin tablets uk
Thanks for sharing, this is a fantastic post.Really thank you! Great.
What as up, just wanted to mention, I loved this blog post. It was inspiring. Keep on posting!
Hello! I’ve been following your blog for a while now and finally got thecourage to go ahead and give you a shout out from Atascocita Tx!Just wanted to mention keep up the great job!
Thanks for sharing, this is a fantastic article.Really looking forward to read more. Want more.
Im thankful for the blog article.Thanks Again. Keep writing.
I loved your blog article.Thanks Again.
ivermectin eye drops ivermectin new zealand
At this time it sounds like Drupal is the best bloggingplatform available right now. (from what I’ve read) Is thatwhat you’re using on your blog?
I truly appreciate this blog post.Really looking forward to read more. Want more.
Awesome post.Thanks Again. Fantastic.
Thanks again for the post.Thanks Again. Will read on…
Thanks for the blog.Much thanks again. Great.
stromectol france ivermectin dose for goats with lice
Hey, thanks for the blog post.Much thanks again. Want more.
I am so grateful for your post.Thanks Again. Really Cool.
Hey, thanks for the blog article.Thanks Again. Really Cool.
Thanks for sharing, this is a fantastic post.Really looking forward to read more. Will read on…
Hey, thanks for the blog article.Really thank you! Want more.
I am so grateful for your article post.Really looking forward to read more. Keep writing.
Looking forward to reading more. Great post.Much thanks again. Really Cool.
Muchos Gracias for your blog article.Thanks Again. Really Great.
creighton university pharmacy online good value pharmacy
Im grateful for the blog.Really looking forward to read more. Keep writing.
Thanks for sharing, this is a fantastic blog.Really looking forward to read more. Great.
Thanks for finally talking about > We Have Come To The End… –The Unique Blogger
I really enjoy the post.Thanks Again. Fantastic.
It’s actually a nicе and helpful piece of info. I am glad that you shared this helpful info with uѕ.Please stay us up to date like this. Thank you for sharing.
Im obliged for the post.Thanks Again. Much obliged.
I really liked your article.Really looking forward to read more. Cool.
I am so grateful for your blog article.Really thank you! Really Cool.
ivermectin brand – stromectol pills for humans ivermectin for humans for sale
I have read so many articles about the blogger lovers but this piece of writingis actually a fastidious article, keep it up.
Article writing is also a excitement, if you be acquainted with after that you can write or else it is difficult to write.
I really liked your article post.Really thank you!
Enjoyed every bit of your article.Really thank you! Much obliged.
Awesome post.Thanks Again. Cool.
Awesome blog post.Really thank you! Really Cool.