2022年12月11日日曜日

リンク_メモ(セールスフォース学習サイト)

【認定アドミニストレータ対策コース(1) (日本語)】
・Salesforce ユーザの基本
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_salesforce_basics
  Salesforce へようこそ https://trailhead.salesforce.com/ja/content/learn/modules/lex_salesforce_basics/lex_salesforce_basics_welcome
  Salesforce の使用開始
https://trailhead.salesforce.com/ja/content/learn/modules/lex_salesforce_basics/lex_salesforce_basics_getting_started
  Salesforce システム管理者との連携   https://trailhead.salesforce.com/ja/content/learn/modules/lex_salesforce_basics/lex_salesforce_basics_your_admin

・Salesforce Platform の基礎
  https://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com
  Salesforce Platform の使用開始
   https://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com/starting_intro
  プラットフォームの使用事例の確認
   https://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com/starting_discovering
  Salesforce アーキテクチャについてhttps://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com/starting_understanding_arch
  [設定] の操作
   https://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com/starting_tour
  AppExchange による強化https://trailhead.salesforce.com/ja/content/learn/modules/starting_force_com/starting_developer_console

・会社全体の組織設定
  https://trailhead.salesforce.com/ja/content/learn/modules/company_wide_org_settings
  地域設定の概要
   https://trailhead.salesforce.com/ja/content/learn/modules/company_wide_org_settings/org_settings_regional
  マルチ通貨設定の概要
   https://trailhead.salesforce.com/ja/content/learn/modules/company_wide_org_settings/org_settings_currency

・ユーザ管理
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_user_setup_mgmt
  新規ユーザの追加
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_user_setup_mgmt/lex_implementation_user_setup_mgmt_adding_users
  ユーザがアクセスできる情報の管理
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_user_setup_mgmt/lex_implementation_user_setup_mgmt_configure_user_access

【認定アドミニストレータ対策コース(2) (日本語)】
・データセキュリティ
  https://trailhead.salesforce.com/ja/content/learn/modules/data_security
  データセキュリティの概要
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_overview
  組織へのアクセスの制御
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_org
  オブジェクトへのアクセスの制御
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_objects
  項目へのアクセスの制御
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_fields
  レコードへのアクセスの制御
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_records
  ロール階層の作成
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_roles
  共有ルールの定義
   https://trailhead.salesforce.com/ja/content/learn/modules/data_security/data_security_sharing_rules

・データモデリング
  https://trailhead.salesforce.com/ja/content/learn/modules/data_modeling
  カスタムオブジェクトと標準オブジェクトについて
   https://trailhead.salesforce.com/ja/content/learn/modules/data_modeling/objects_intro
  オブジェクトリレーションを作成する
   https://trailhead.salesforce.com/ja/content/learn/modules/data_modeling/object_relationships
  スキーマビルダーを使う
   https://trailhead.salesforce.com/ja/content/learn/modules/data_modeling/schema_builder

・Lightning Experience のカスタマイズ
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization
  組織の設定
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_custom_objects
  Lightning アプリケーションの作成およびカスタマイズ
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_apps
  リストビューの作成およびカスタマイズ
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_list
  コンパクトレイアウトを使用したレコードの強調表示のカスタマイズ
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_compact_layouts
  ページレイアウトを使用したレコードの詳細のカスタマイズ
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_page_layouts
  カスタムボタンとカスタムリンクの作成
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_buttons_links
  クイックアクションによるユーザ操作の強化
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_customization/lex_customization_actions

・【認定アドミニストレータ対策コース(3) (日本語)】
 Lightning Experience の取引先と取引先責任者
  https://trailhead.salesforce.com/ja/content/learn/modules/accounts_contacts_lightning_experience
  顧客に関する情報を保存する
   https://trailhead.salesforce.com/ja/content/learn/modules/accounts_contacts_lightning_experience/accounts-and-contacts-lightning
  取引先と取引先責任者のリレーションの説明
   https://trailhead.salesforce.com/ja/content/learn/modules/accounts_contacts_lightning_experience/understand-account-and-contact-relationships-lightning

・商品、見積、契約
  https://trailhead.salesforce.com/ja/content/learn/modules/sales_admin_products_quotes_contracts
  価格表を作成して商品を追跡する
   https://trailhead.salesforce.com/ja/content/learn/modules/sales_admin_products_quotes_contracts/sales_admin_products_quotes_contracts_unit_1
  顧客見積の設定と契約の追跡を行う
   https://trailhead.salesforce.com/ja/content/learn/modules/sales_admin_products_quotes_contracts/sales_admin_products_quotes_contracts_unit_2

・Lightning Experience の Service Cloud
  https://trailhead.salesforce.com/ja/content/learn/modules/service_lex
  カスタマーサービスジャーニーの開始
   https://trailhead.salesforce.com/ja/content/learn/modules/service_lex/service_lex_cloud
  Service Cloud の管理
   https://trailhead.salesforce.com/ja/content/learn/modules/service_lex/service_lex_connect
  ケース管理の自動化
   https://trailhead.salesforce.com/ja/content/learn/modules/service_lex/service_lex_case_manage
  複数のチャネルでのデジタルエンゲージメントの作成
   https://trailhead.salesforce.com/ja/content/learn/modules/service_lex/service_lex_channels

・Lightning Experience のナレッジの基本
  https://trailhead.salesforce.com/ja/content/learn/modules/lightning-knowledge-basics
  Lightning Knowledge の使用開始
   https://trailhead.salesforce.com/ja/content/learn/modules/lightning-knowledge-basics/get-started-with-lightning-knowledge
  Salesforce 知識ベースを準備する
   https://trailhead.salesforce.com/ja/content/learn/modules/lightning-knowledge-basics/prepare-the-kb-for-success
  簡単な知識ベースの設定
   https://trailhead.salesforce.com/ja/content/learn/modules/lightning-knowledge-basics/set-up-a-simple-knowledge-base

・Experience Cloud の基本
  https://trailhead.salesforce.com/ja/content/learn/modules/community_cloud_basics
  Experience Cloud の使用開始
   https://trailhead.salesforce.com/ja/content/learn/modules/community_cloud_basics/communities_intro_to_community_cloud
  顧客との交流
   https://trailhead.salesforce.com/ja/content/learn/modules/community_cloud_basics/communities_setting_goals_for_community
  パートナーと協力する
   https://trailhead.salesforce.com/ja/content/learn/modules/community_cloud_basics/communities_partner_community

【認定アドミニストレータ対策コース(4) (日本語)】
・Lightning Experience の Chatter の管理
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter
  Chatter の使用開始
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter/lex_implementation_chatter_intro
  Chatter グループとのコラボレーション
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter/lex_implementation_chatter_groups
  フィード追跡の有効化
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter/lex_implementation_chatter_feed_tracking
  Chatter フィードからのレコードの承認
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter/lex_implementation_chatter_approvals
  ロールアウト計画の策定
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_chatter/lex_implementation_chatter_adoption

・データ品質
  https://trailhead.salesforce.com/ja/content/learn/modules/data_quality
  データ品質の使用開始
   https://trailhead.salesforce.com/ja/content/learn/modules/data_quality/data_quality_getting_started
  データ品質の評価
   https://trailhead.salesforce.com/ja/content/learn/modules/data_quality/data_quality_assess_your_data
  データ品質の向上
   https://trailhead.salesforce.com/ja/content/learn/modules/data_quality/data_quality_improve_quality

・データ管理
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_data_management
  データのインポート
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_data_management/lex_implementation_data_import
  データのエクスポート
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_data_management/lex_implementation_data_export

・データ管理ツールを使用したインポートとエクスポート
  https://trailhead.salesforce.com/ja/content/learn/projects/import-and-export-with-data-management-tools
  データインポートウィザードの使用
   https://trailhead.salesforce.com/ja/content/learn/projects/import-and-export-with-data-management-tools/use-the-data-import-wizard
  dataloader.io を使用したデータのエクスポート
   https://trailhead.salesforce.com/ja/content/learn/projects/import-and-export-with-data-management-tools/use-data-loader-to-export-data
  dataloader.io を使用したデータの更新
   https://trailhead.salesforce.com/ja/content/learn/projects/import-and-export-with-data-management-tools/use-data-loader-to-import-data

【認定アドミニストレータ対策コース(5) (日本語)】
・Lightning Experience のレポートおよびダッシュボード
  https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards
  Lightning Experience のレポートおよびダッシュボードの概要
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_overview
  レポートビルダーを使用したレポートの作成
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_using_report_builder
  レポートの形式設定
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_report_formats
  Lightning ダッシュボードビルダーでのデータの視覚化
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_visualizing_data
  AppExchange を使用したレポート戦略の拡張
   https://trailhead.salesforce.com/ja/content/learn/modules/lex_implementation_reports_dashboards/lex_implementation_reports_dashboards_appexchange

・営業マネージャとマーケティングマネージャ用のレポートとダッシュボードの作成
  https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers?assignmentId=a5c3m000001C8MgAAK
  レポートフォルダとダッシュボードフォルダの作成
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/run-and-modify-a-report
  簡単なカスタムレポートの作成
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/create-a-simple-custom-report
  レポートの絞り込み
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/filter-your-reports
  データのグループ化と分類
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/group-and-categorize-your-data
  レポートでの集計項目の使用
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/use-summary-formulas-in-your-reports
  レポートデータの管理
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/manage-reported-data
  データの視覚化
   https://trailhead.salesforce.com/ja/content/learn/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/visualize-your-data-with-conditional-highlighting-report-charts-and-dashboards

・クイックスタート: プロセスビルダー
  https://trailhead.salesforce.com/ja/content/learn/projects/quickstart-process-builder
  取引先オブジェクトに対する新しいプロセスを作成する
   https://trailhead.salesforce.com/ja/content/learn/projects/quickstart-process-builder/quickstart-process-builder1
  プロセス条件を追加する
   https://trailhead.salesforce.com/ja/content/learn/projects/quickstart-process-builder/quickstart-process-builder2
  プロセスアクションを追加する
   https://trailhead.salesforce.com/ja/content/learn/projects/quickstart-process-builder/quickstart-process-builder3
  プロセスをテストする
   https://trailhead.salesforce.com/ja/content/learn/projects/quickstart-process-builder/quickstart-process-builder4

・割引承認プロセスの作成
  https://trailhead.salesforce.com/ja/content/learn/projects/build-a-discount-approval-process
  組織での事前準備
   https://trailhead.salesforce.com/ja/content/learn/projects/build-a-discount-approval-process/prepare-your-org
  承認プロセスの作成
   https://trailhead.salesforce.com/ja/content/learn/projects/build-a-discount-approval-process/create-an-approval-process
  申請時のアクションの作成
   https://trailhead.salesforce.com/ja/content/learn/projects/build-a-discount-approval-process/create-initial-submission-actions
  最終承認時と却下時のアクションの指定
   https://trailhead.salesforce.com/ja/content/learn/projects/build-a-discount-approval-process/specify-final-approval-and-rejection-actions

【認定アドミニストレータ対策コース(6) (日本語)】
・Salesforce モバイルアプリケーションのカスタマイズ
  https://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app
  Salesforce モバイルアプリケーションの使用開始https://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_intro
  ナビゲーションのカスタマイズhttps://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_navigation
  グローバルクイックアクションの作成https://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_actions_global
  オブジェクト固有のクイックアクションの作成https://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_actions_objectspecific
  コンパクトレイアウトのカスタマイズhttps://trailhead.salesforce.com/ja/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_compact_layouts

・AppExchange の基本
  https://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics
  AppExchange 入門https://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics/appexchange_basics_overview
  AppExchange をナビゲートするhttps://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics/appexchange_basics_navigate
  AppExchange リストを確認するhttps://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics/appexchange_basics_listings
  AppExchange パッケージをインストールするhttps://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics/appexchange_basics_install
  AppExchange コミュニティとつながって貢献するhttps://trailhead.salesforce.com/ja/content/learn/modules/appexchange_basics/appexchange_basics_community

2022年1月30日日曜日

リンク_メモ(セールスフォース初心者講座)

【Sales4box】
・模擬問題
 https://sales4box.com/admin_exam/

【セールスフォース初心者講座】
・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ①組織の設定
 https://www.youtube.com/watch?v=Xi9iZYkPHZg&t=761s

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ②ユーザの設定
 https://www.youtube.com/watch?v=73FAFVBw6UE

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ③セキュリティとアクセス
 https://www.youtube.com/watch?v=5Kz_30SLitE

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ④標準オブジェクトとカスタムオブジェクト
 https://www.youtube.com/watch?v=wvKj1_B77OE&t=702s

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑤営業アプリケーションとマーケティングアプリケーション
 https://www.youtube.com/watch?v=xl0rSerwbFU

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑥サービスアプリケーションとサポートアプリケーション
 https://www.youtube.com/watch?v=AReGHRMtPz0

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑦活動の管理
 https://www.youtube.com/watch?v=w3JfUXW52dI
 
・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑧データの管理
 https://www.youtube.com/watch?v=bNSC9kwLUag
 
・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑨分析 レポートとダッシュボード
 https://www.youtube.com/watch?v=UvI50068-_I&t=25s

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑩ワークフロー/プロセスの自動化
 https://www.youtube.com/watch?v=BFuJNyQT1zs

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑪ デスクトップとモバイルの管理
 https://www.youtube.com/watch?v=lAKnmFF3iKI

・Salesforce セールスフォース 認定アドミニストレーター試験対策
 ⑫ APPEXCHANGE
 https://www.youtube.com/watch?v=MWhu8LeKe4Y

2021年12月26日日曜日

[Book's Review (Develop)]独習JavaScript 新版

(1)レビュー
 JavaScriptは古くからあり、時代と共に進化してきています。
 JavaScriptの独習シリーズは過去にもありましたが、
 最近(2021年)、独習シリーズでJavaScriptの新版が登場しました。

 クラス、反復処理、非同期処理など、
 サンプルプログラムを例示しながらわかりやすく解説されています。

 例えば、反復処理を実装するために、
 他の言語(C#、Python等)ではyieldキーワードを採用していますが、
 新版のJavaScriptでもyieldが採用されています。

 今どきの新しいJavaScriptを習得するには、
 重宝の1冊だと思います。

 試しに、当書籍を参考にしながら、
 オブジェクト指向を意識したコードを書いてみました。
 今となっては珍しいコードではないかと思いますが、
 従来のJavaScriptよりもやれることが拡がったように思えます。

 以下は、Perosnクラスに、
 NameとBirthdayのプロパティを定義し、
 sayHello()、saysayBirthday()、sayAge()の各々のメソッドで、
 あいさつ、誕生日出力、年齢出力をするサンプルです。

<html>
<head>

<script language="javascript">
   //【テスト関数】
   function sayHello()
   {
      const person = new Person(
         {first:"太郎", last:"山田"},
         new Date(1953,8-1,15));
      person.sayHello();
   }

   function sayBirthDay()
   {
      const person = new Person(
         {first:"太郎", last:"山田"},
         new Date(1953,8-1,15));
      person.sayBirthDay();
   }

   function sayAge()
   {
      const person = new Person(
         {first:"太郎", last:"山田"},
         new Date(1953,8-1,15));
      person.sayAge();
   }

   //【クラス定義】
   class Person{
      constructor(name, birthday){
         this.name = name;
         this.birthday = birthday;
      }

      //【メソッド定義】
      //あいさつをする。
      sayHello(){
         window.alert(
            "こんにちは。" + 
            this.name.first + " " + 
            this.name.last + "です。");
      }

      //生年月日を出力する。
      sayBirthDay(){
         window.alert(this.birthday);
      }

      //年齢を出力する。
      sayAge(){
         let age = 0;
         let today = new Date();

         if(today.getMonth() * 100 + today.getDate() < 
            this.birthday.getMonth() * 100 + this.birthday.getDate())
         {
            //今日が誕生日前の場合
            age=today.getFullYear() - this.birthday.getFullYear() -1;
         }
         else
         {
            //今日が誕生日以降の場合
            age=today.getFullYear() - this.birthday.getFullYear();
         }

         window.alert("私は" + age + "歳です。");
      }

   }

</script>
</head>
<body bgcolor="azure">

<input type="button" value="あいさつをする。" onclick="sayHello();"><br/>
<input type="button" value="生年月日を言う。" onclick="sayBirthDay();"><br/>
<input type="button" value="年齢を言う。" onclick="sayAge();"><br/>

</body>
</html>
[JavaScript]オブジェクト指向を意識したコード

[実行結果]
JavaScript実行結果.PNG

(2)リンク
独習JavaScript 新版

独習JavaScript 新版

  • 作者: CodeMafia 外村将大
  • 出版社/メーカー: 翔泳社
  • 発売日: 2021/11/15
  • メディア: Kindle版

[Book's Review (Develop)]プログラミングC# 第8版

(1)レビュー
 C#8.0の書籍で、
 入門編レベルよりもさらに踏み込んだ技術を習得したい方にお勧め!
 レベルの高い書籍だと、文章がわかりにくかったり、
 無駄にページ数が多かったり、『~編』のようにシリーズ化しているものが多いですが、
 この書籍はわかりやすくまとめてあります。

 非同期ストリーム、インターフェイスのデフォルト実装、null 合体代入 (??=)など
 新機能もわかりやすく解説しています。

(2)リンク
プログラミングC# 第8版

プログラミングC# 第8版

  • 出版社/メーカー: オライリージャパン
  • 発売日: 2021/06/22
  • メディア: 単行本(ソフトカバー)
プログラミングC# 第7版

プログラミングC# 第7版

  • 出版社/メーカー: オライリージャパン
  • 発売日: 2013/11/29
  • メディア: 大型本

2020年11月26日木曜日

[VBA]複数のセルオブジェクトを1つのセルオブジェクトに統合する。

[はじめに]
・あまり知られていないかもしれませんが、
 複数のセルオブジェクトを、1つのセルオブジェクトに統合することができます。
 ※Union関数を使用。

 統合後のセルに対して、
 プロパティやメソッドにアクセスすると、
 統合前のセルすべてに対して、アクセスすることと同じ意味になります。
 複数のセルオブジェクトをまとめて処理したい場合に、便利です。
 ※[注意]セルの結合ではありません。

 以下は、
 「A1」、「B2:D5」、「D3,D5」の複数のセル領域を統合して、
 「Hello」の文字列を設定する例です。
  備忘録としてサンプルソースを掲載します。

[ソース]
Private Sub UnionSample()

    Dim cellArray() As Variant
    Dim cellUnion As Range
    Dim cell As Variant
    
    '① 統合前のセルを定義
    cellArray = Array(Range("A1"), Range("B2:C5"), Range("D3:F5"))
    
    '② ①で定義したセルを
    '  1つのセルオブジェクトに統合する。
    For Each cell In cellArray
        If cellUnion Is Nothing Then
            '初回のみセルを設定
            Set cellUnion = cell
        Else
            '2回目以降は、セルを統合する。
            Set cellUnion = Union(cellUnion, cell)
        End If
    
    Next
    
    '③ 統合後のセルに値を設定。
    cellUnion.Value = "Hello"

End Sub
[VBA]複数のセルオブジェクトを1つのセルオブジェクトに統合する。

2020年11月25日水曜日

[VBA]カラーの定数一覧

[はじめに]
・VBAで、
 色の定数を知りたいことがよくあるので、
 備忘録として掲載します。

カラーの定数一覧
ColorConstants定数
カラー例ColorConstants定数RGBカラー値
(R+G×256+B×2562)
黒■vbBlack0000
青■vbBlue0025516711680
シアン■vbCyan025525516776960
緑■vbGreen0255065280
マゼンタ■vbMagenta255025516711935
赤■vbRed25500255
白■vbWhite25525525516777215
黄■vbYellow255255065535


XlRgbColor定数
カラー例XlRgbColor定数RGBカラー値
(R+G×256+B×2562)
黒■rgbBlack0000
ディムグレー■rgbDimGray、rgbDimGrey1051051056908265
灰色■rgbGray、rgbGrey1281281288421504
濃い灰色■rgbDarkGray、rgbDarkGrey16916916911119017
銀色■rgbSilver19219219212632256
薄い灰色■rgbLightGray、rgbLightGrey21121121113882323
ゲーンズボロ■rgbGainsboro22022022014474460
ホワイトスモーク■rgbWhiteSmoke24524524516119285
白■rgbWhite25525525516777215
スノー■rgbSnow25525025016448255
ローズブラウン■rgbRosyBrown1881431439408444
薄いさんご■rgbLightCoral2401281288421616
インディアンレッド■rgbIndianRed20592926053069
茶■rgbBrown16542422763429
れんが色■rgbFireBrick17834342237106
栗色■rgbMaroon12800128
濃い赤■rgbDarkRed13900139
赤■rgbRed25500255
ミスティローズ■rgbMistyRose25522822514804223
サーモンピンク■rgbSalmon2501281147504122
トマト■rgbTomato25599714678655
濃いサーモンピンク■rgbDarkSalmon2331501228034025
さんご■rgbCoral255127805275647
オレンジレッド■rgbOrangeRed25569017919
薄いサーモンピンク■rgbLightSalmon2551601228036607
シェンナ■rgbSienna16082452970272
シーシェル■rgbSeashell25524523815660543
ピーチパフ■rgbPeachPuff25521818512180223
サンディブラウン■rgbSandyBrown244164966333684
リネン■rgbLinen25024023015134970
ペルー■rgbPeru205133634163021
ビスク■rgbBisque25522819612903679
濃いオレンジ■rgbDarkOrange255140036095
アンティークホワイト■rgbAntiqueWhite25023521514150650
タン■rgbTan2101801409221330
バーリーウッド■rgbBurlyWood2221841358894686
ブランシュアーモンド■rgbBlanchedAlmond25523520513495295
ナバホホワイト■rgbNavajoWhite25522217311394815
パパイヤホイップ■rgbPapayaWhip25523921314020607
モカシン■rgbMoccasin25522818111920639
オレンジ■rgbOrange255165042495
フローラルホワイト■rgbFloralWhite25525024015792895
オールドレース■rgbOldLace25324523015136253
小麦■rgbWheat24522217911788021
ゴールデンロッド■rgbGoldenrod218165322139610
濃いゴールデンロッド■rgbDarkGoldenrod18413411755384
コーンシルク■rgbCornsilk25524822014481663
ゴールド■rgbGold255215055295
レモンシフォン■rgbLemonChiffon25525020513499135
カーキ■rgbKhaki2402301409234160
濃いカーキ■rgbDarkKhaki1891831077059389
ペールゴールデンロッド■rgbPaleGoldenrod2382321077071982
アイボリー■rgbIvory25525524015794175
ベージュ■rgbBeige24524522014480885
明るい黄■rgbLightYellow25525522414745599
薄いゴールデンロッドイエロー■rgbLightGoldenrodYellow25025021013826810
オリーブ■rgbOlive128128032896
黄■rgbYellow255255065535
オリーブドラブ■rgbOliveDrab107142352330219
イエローグリーン■rgbYellowGreen154205503329434
濃いオリーブグリーン■rgbDarkOliveGreen85107473107669
グリーンイエロー■rgbGreenYellow173255473145645
若草色■rgbLawnGreen124252064636
シャルトルーズ■rgbChartreuse127255065407
ハニーデュー■rgbHoneydew24025524015794160
濃いシーグリーン■rgbDarkSeaGreen1431881439419919
明るい緑■rgbLightGreen1442381449498256
ペールグリーン■rgbPaleGreen15225115210025880
フォレストグリーン■rgbForestGreen34139342263842
ライムグリーン■rgbLimeGreen50205503329330
濃い緑■rgbDarkGreen0100025600
緑■rgbGreen0128032768
黄緑■rgbLime0255065280
淡いアクアマリン■rgbMediumAquamarine10225517011206502
淡いシーグリーン■rgbMediumSeaGreen601791137451452
シーグリーン■rgbSeaGreen46139875737262
ミントクリーム■rgbMintCream24525525016449525
スプリンググリーン■rgbSpringGreen02551278388352
淡いスプリンググリーン■rgbMediumSpringGreen025015410156544
アクアマリン■rgbAquamarine12725521213959039
ターコイズ■rgbTurquoise6422420813688896
薄いシーグリーン■rgbLightSeaGreen3217817011186720
淡いターコイズ■rgbMediumTurquoise7220920413422920
空色■rgbAzure24025525516777200
ペールターコイズ■rgbPaleTurquoise17523823815658671
濃いスレートグレー■rgbDarkSlateGray4779795197615
濃いスレートグレー■rgbDarkSlateGrey4779795197615
青緑■rgbTeal01281288421376
濃いシアン■rgbDarkCyan01391399145088
明るい水色■rgbLightCyan01391399145088
濃いターコイズ■rgbDarkTurquoise020620913749760
水色■rgbAqua025525516776960
カデットブルー■rgbCadetBlue9515816010526303
パウダーブルー■rgbPowderBlue17622423015130800
明るい青■rgbLightBlue17321623015128749
深いスカイブルー■rgbDeepSkyBlue019125516760576
スカイブルー■rgbSkyBlue13520623515453831
薄いスカイブルー■rgbLightSkyBlue13520625016436871
アリスブルー■rgbAliceBlue24024825516775408
スチールブルー■rgbSteelBlue7013018011829830
スレートグレー■rgbSlateGray1121281449470064
薄いスレートグレー■rgbLightSlateGray11913615310061943
ドジャーブルー■rgbDodgerBlue3014425516748574
薄いスチールブルー■rgbLightSteelBlue17619622214599344
コーンフラワーブルー■rgbCornflowerBlue10014923715570276
ロイヤルブルー■rgbRoyalBlue6510522514772545
ゴーストホワイト■rgbGhostWhite24824825516775416
ラベンダー■rgbLavender23023025016443110
ミッドナイトブルー■rgbMidnightBlue25251127346457
ネイビー■rgbNavy、rgbNavyBlue001288388608
濃い青■rgbDarkBlue001399109504
淡い青■rgbMediumBlue0020513434880
青■rgbBlue0025516711680
濃いスレートブルー■rgbDarkSlateBlue72611399125192
スレートブルー■rgbSlateBlue1069020513458026
淡いスレートブルー■rgbMediumSlateBlue12310423815624315
淡い紫■rgbMediumPurple14711221914381203
青紫■rgbBlueViolet1384322614822282
インディゴ■rgbIndigo7501308519755
濃いオーキッド■rgbDarkOrchid1535020413382297
濃い紫■rgbDarkViolet148021113828244
淡いオーキッド■rgbMediumOrchid1868521113850042
あざみ色■rgbThistle21619121614204888
プラム■rgbPlum22116022114524637
紫色■rgbViolet23813023815631086
紫■rgbPurple12801288388736
濃いマゼンタ■rgbDarkMagenta13901399109643
明るい紫■rgbFuchsia255025516711935
オーキッド■rgbOrchid21811221414053594
淡いバイオレットレッド■rgbMediumVioletRed199211338721863
深いピンク■rgbDeepPink255201479639167
ホットピンク■rgbHotPink25510518011823615
ラベンダーブラッシュ■rgbLavenderBlush25524024516118015
ペールバイオレットレッド■rgbPaleVioletRed2191121479662683
深紅■rgbCrimson22020603937500
ピンク■rgbPink25519220313353215
薄いピンク■rgbLightPink25518219312695295

2020年11月23日月曜日

[VBA]RGBカラー値からRGBの各々の値を取得

[はじめに]
・RGBの各要素からRGBカラー値を取得する為に、
 VBAではRGB関数が用意されていますが、
 その逆(RGBカラー値から元のRGB各要素を取得)の関数は
 用意されていません。

 たまに必要になることがあるので、
 ユーザ定義関数を作成しましたので、備忘録として掲載します。

[ソース]
'[機能]
' RGB カラー値から、
' 赤(R)、緑(G)、青(B)の各々の値を取得する。
'[引数]
' rgbColor:RGB カラー値
'[戻り値]
' RGBの各値(配列)
'  0番目:赤(R)
'  1番目:緑(G)
'  2番目:青(B)
Public Function GetRgbValues(ByVal rgbColor As Long) As Integer()

    Dim rtnColors(2) As Integer

    '赤(R)
    rtnColors(0) = rgbColor Mod 256
    '緑(G)
    rtnColors(1) = rgbColor \ 256 Mod 256
    '青(B)
    rtnColors(2) = rgbColor \ 65536

    GetRgbValues = rtnColors

End Function
[VBA]RGBカラー値から赤(R)、緑(G)、青(B)の各々の値を取得

2020年11月22日日曜日

[VBA]セルの取得、値の書き込み

[はじめに]
・Excel VBAでよくセルの情報を取得することがありますが、
 様々な書き方があるので、備忘録に記載します。

 セル座標をA1形式や行列番号で指定したり、
 複数セルの範囲指定、その他のブックやシート上のセルの取得 など
 用途に応じたパターンを適用頂ければと思います。

[ソース]
Private Sub WriteToCellValue()

    '■■■1.「A1形式」でセルを指定する。
    ' ①単一セルを扱う。
    ' ※例:セルA1に値を出力
    Range("A1").Value = "あ"
    
    ' ②複数セルを扱う(その1)
    ' ※例:セルA3~A5に値を出力
    Range("A3:A5").Value = "い"

    ' ③複数セルを扱う(その2)
    ' ※例:セルC1~D10に値を出力
    Range(Range("C1"), Range("D10")).Value = "う"

    '■■■2.行番号、列番号でセルを指定する。
    ' 行番号、列番号をカウントアップ等をさせたい場合、有効。
    ' ※例:セル(1行目、6列目)に値を出力
    Cells(1, 6).Value = "え"

    '■■■3.特定のセル範囲内から、相対的にセルを取得
    ' ※例:セルD4(B3~E5内で2行目、3列目)に値を出力
    Range("B3:E5").Cells(2, 3).Value = "お"

    '■■■4.特定のセル範囲内から、相対的な行を取得
    ' ※例:B3~E5内の1行目に値を出力
    Range("B3:E5").Rows(1).Value = "か"

    '■■■5.特定のセル範囲内から、相対的な列を取得
    ' ※B3~E5内の3列目に値を出力
    Range("B3:E5").Columns(3).Value = "き"

    '■■■6.他のシートのセルを扱う。
    ' 指定セルが、他のシートにある場合は、
    ' 以下のように記載します。
    ' シート省略時は、アクティブシートが対象になります。
    ' ※例:シートSheet1のセルA2に値を出力
    '   以下例のRangeは上記の1~5の表記でも可能。
    Sheets("Sheet1").Range("A2").Value = "く"

    '■■■7.他のブックのセルを扱う。
    ' 指定セルが、他のブック、シートにある場合は、
    ' 以下のように記載します。
    ' ブック省略時は、アクティブブックが対象になります。
    ' ※例:当ブックのシートSheet1のセルA3に値を出力
    '   以下例のRangeは上記の1~5の表記でも可能。
    ThisWorkbook.Sheets("Sheet1").Range("A3").Value = "け"

End Sub
[VBA]セルの選択

2020年6月9日火曜日

[.NET][Visual Studio]CodeLensを非表示にする。(○○個の参照)

[はじめに]
 Visual Studioはバージョンアップのたびに様々な便利機能が追加されますが、
 便利な反面、稀に不便なものもあります。
 そのうちの1つがCodeLensです。(あくまでも筆者の感想です)

 CodeLensとは、
 Visual Studio 2015で追加された機能で、
 コードエディタ上で、メソッドやクラスの定義の上の行に、
 そのメソッドやクラスを参照している個数を表示する機能です。
 (図1で「4個の参照」と表示されている箇所です。)

 一見、便利な機能ですが、
 コード編集時に「○○個の参照」の行にカーソルが入らない為、
 編集時に思い通りの動作にならず、不便に感じることがあります。

 CodeLensを無効にする設定が一見わかりづらいので、
 無効にする手順を、備忘録として掲載します。


【図1】
vs_01b.jpg

[CodeLensを無効にする手順]
(1)Visual Studio の「ツール」→「オプション」を選択し、
   オプションダイアログを表示させる。
  vs_02_01.jpg

(2)オプションダイアログの左側のツリービューで、
   「テキストエディタ」→「すべての言語]」→「CodeLens」をクリックし、
   右側のエリアの「CodeLens を有効にする」の
   チェックボックスのチェックを外す。
  vs_02_02.jpg

(3)(2)まで実施すると、CodeLensの表記が表示されなくなります。
  vs_03b.jpg

2020年6月7日日曜日

[.NET]yield returnの使用例(C#)

[はじめに]
 C#には「yield」キーワードがありますが、
 他の言語と比べて特殊でわかりにくいので、使い方の備忘録を掲載します。
 ※「yield」は、
  他の言語(JavaScript、Perl、Python等)でも採用されつつありますが。。。

 「yield」は、
 オブジェクト指向のデザインパターンのIteratorパターンの実装で利用されます。
 Iteratorパターンとは、多数の集合に対してその内部の実装を意識することなく、
 逐次処理するためのデザインパターンです。

 C#では、.NET Framework 2.0(Visual Studio 2005)から
 「yield」が導入されました。
 .NET Framework 1.1(Visual Studio .NET 2003)以前の版で、
 Iteratorパターンを実装するには、
 IEnumerableインタフェース、IEnumeratorインタフェースを実装したクラスを
 記述する必要がありましたが、
 .NET Framework 2.0(Visual Studio 2005)以降では、
 それらのクラスは「yield return」で代用され、
 Iteratorパターンの実装がより簡潔になりました。

[サンプルコード]
以下、2つのサンプルコードを掲載します。
2つのサンプルコードは、各々独立して動作します。
 /// <summary>
 /// yield returnの実装サンプル
 /// </summary>
 public class YieldSample1 : IEnumerable<string>
 {
     /// <summary>
     /// 月の異名の列挙を取得する。
     /// </summary>
     /// <returns>月の異名の列挙</returns>
     public IEnumerator<string> GetEnumerator()
     {
         yield return "睦月";
         yield return "如月";
         yield return "弥生";
         yield return "卯月";
         yield return "皐月";
         yield return "水無月";
         yield return "葉月";
         yield return "長月";
         yield return "神無月";
         yield return "霜月";
         yield return "師走";
     }

     /// <summary>
     /// 月の異名の列挙を取得する。
     /// </summary>
     /// <returns>月の異名</returns>
     IEnumerator IEnumerable.GetEnumerator()
     {
         return this.GetEnumerator();
     }
 }

 public class Program1
 {
     /// <summary>
     /// 列挙を取得し、各々の要素を出力する。
     /// </summary>
     /// <param name="args"></param>
     static void Main(string[] args)
     {
         System.Console.WriteLine("■月の異名を出力する。");

         IEnumerable<string> ie1 = new YieldSample1();
         foreach (var it1 in ie1)
         {
             System.Console.WriteLine(it1);
         }
         System.Console.WriteLine("");

         //[出力]
         // ■月の異名を出力する。
         // 睦月
         // 如月
         // 弥生
         // 卯月
         // 皐月
         // 水無月
         // 葉月
         // 長月
         // 神無月
         // 霜月
         // 師走

         //[補足]
         // 上記コードは、
         // 下記のように書き換えることも可能です。
         // 逆に言うと、foreachで実装すると、
         // 以下のコードに読み替えて実行されます。

         //System.Console.WriteLine("■月の異名を出力する。(while文で処理)");

         //IEnumerable<string> ie1 = new YieldSample1();
         //IEnumerator<string> it1 = ie1.GetEnumerator();
         //while (it1.MoveNext())
         //{
         //    System.Console.WriteLine(it1.Current);
         //}
         //System.Console.WriteLine("");

         System.Console.ReadLine();

     }
 }
[C#]yield returnの使用例(その2)


/// <summary>
/// yield returnの実装サンプル
/// </summary>
public class YieldSample2
{
    /// <summary>
    /// 干支の列挙を取得する。
    /// </summary>
    /// <returns>干支の列挙</returns>
    public IEnumerable<String> GetEto()
    {
        yield return "子年";
        yield return "丑年";
        yield return "寅年";
        yield return "卯年";
        yield return "辰年";
        yield return "巳年";
        yield return "午年";
        yield return "未年";
        yield return "申年";
        yield return "酉年";
        yield return "戌年";
        yield return "亥年";
    }
}

public class Program2
{
    /// <summary>
    /// 列挙を取得し、各々の要素を出力する。
    /// </summary>
    /// <param name="args"></param>
    static void Main(string[] args)
    {
        System.Console.WriteLine("■干支を出力する。");

        YieldSample2 ie1 = new YieldSample2();
        foreach (var it1 in ie1.GetEto())
        {
            System.Console.WriteLine(it1);
        }
        System.Console.WriteLine("");

        //[出力]
        // ■干支を出力する。
        // 子年
        // 丑年
        // 寅年
        // 卯年
        // 辰年
        // 巳年
        // 午年
        // 未年
        // 申年
        // 酉年
        // 戌年
        // 亥年

        //[補足]
        // 上記コードは、
        // 下記のように書き換えることも可能です。
        // 逆に言うと、foreachで実装すると、
        // 以下のコードに読み替えて実行されます。

        //System.Console.WriteLine("■干支を出力する。(while文で処理)");

        //YieldSample2 ie1 = new YieldSample2();
        //IEnumerator<string> it1 = ie1.GetEto().GetEnumerator();
        //while (it1.MoveNext())
        //{
        //    System.Console.WriteLine(it1.Current);
        //}
        //System.Console.WriteLine("");

        System.Console.ReadLine();
    }
}
[C#]yield returnの使用例(その2)
[ご参考]
Iteratorパターンについて
 デザインパターン「Iterator」-Qiita

2019年8月11日日曜日

[Book's Review (Develop)]オラクル認定資格教科書 Javaプログラマ Gold SE 8 (EXAMPRESS)

(1)レビュー
 以下2冊の紹介です。

 (1)『オラクル認定資格教科書 Javaプログラマ Gold SE 8』(通称『紫本』)
 (2)『徹底攻略 Java SE 8 Gold 問題集[1Z0-809]対応』(通称『黒本』)

 今までMicrosoft系をメインに資格取得に励んできましたが、
 Java系の資格にもチャレンジすることになり、
 参考書として『紫本』を、
 問題集として『黒本』を購入しました。

 JavaSE8といえば、
 新機能のラムダ式やストリームAPI、
 日付/時刻API が注目されていますが、
 JavaSE7で追加された
 try-with-resources、switch文の拡張(String型のサポート)、
 ダイヤモンド演算子、例外のマルチキャッチ、
 Executor Service、Fork/Join Framework、
 数値リテラルのアンダースコアの区切り文字や2進数表記 等など
 普段の開発でも使いこなされていなさそうな機能についても、
 分かりやすい解説が充実しています。

 書店のIT系資格コーナーには
 必ずと言っていいほど並んでいる書籍ですが、
 有名なだけあり、内容も充実しています。
   『JavaSE8 Gold』資格取得を目指している方にぜひオススメの2冊です。

 また『Javaプログラマ Gold SE 8』は
 『Javaプログラマ Silver SE 8』が前提資格となります。
 Goldと併せて、Slver対策として、以下2冊もオススメです。
 (3)『オラクル認定資格教科書 Javaプログラマ Silver SE 8』(通称『紫本』)
 (4)『徹底攻略 Java SE 8 Silver 問題集[1Z0-808]対応』(通称『黒本』)

 [2019.8.10 合格]
 本試験は、Javaプログラマ歴、7、8年のベテランでも、
 1回の受験で通るのは難しいと言われています。
 Java開発経験は3年程度の私ですが、
 .NET(C#、VB.NET)の10年の開発経験で、
 オブジェクト指向やラムダ式の基本を理解していた為、
 『紫本』による学習、『黒本』による問題演習を、
 各々2周することで、1回の受験で合格できました。

(2)リンク
オラクル認定資格教科書 Javaプログラマ Gold SE 8 (EXAMPRESS)

オラクル認定資格教科書 Javaプログラマ Gold SE 8 (EXAMPRESS)

  • 作者: 山本 道子
  • 出版社/メーカー: 翔泳社
  • 発売日: 2016/07/21
  • メディア: 単行本(ソフトカバー)
徹底攻略 Java SE 8 Gold 問題集[1Z0-809]対応

徹底攻略 Java SE 8 Gold 問題集[1Z0-809]対応

  • 作者: 米山 学
  • 出版社/メーカー: インプレス
  • 発売日: 2016/10/14
  • メディア: 単行本(ソフトカバー)
オラクル認定資格教科書 Javaプログラマ Silver SE 8

オラクル認定資格教科書 Javaプログラマ Silver SE 8

  • 作者: 有限会社ナレッジデザイン 山本道子
  • 出版社/メーカー: 翔泳社
  • 発売日: 2016/02/11
  • メディア: 単行本(ソフトカバー)
徹底攻略 Java SE 8 Silver 問題集[1Z0-808]対応

徹底攻略 Java SE 8 Silver 問題集[1Z0-808]対応

  • 作者: 志賀 澄人
  • 出版社/メーカー: インプレス
  • 発売日: 2016/01/18
  • メディア: 単行本(ソフトカバー)

[雑記]ドローン(DJI Mini 3)

(1)雑記 もともと多趣味の友人 masakazu Drone 氏が、 最近、 ドローン にハマり始めて、 更に、新たな趣味が増えたとのこと。 ドローン を始めてから、 まだ1年も経っていないとのことですが、 旅行先で山や川の景色を 空撮 して、 Youtube ...