JP2018077844A - Calculation system, calculation method, calculation program, accounting program, accounting system, accounting terminal device and accounting method - Google Patents

Calculation system, calculation method, calculation program, accounting program, accounting system, accounting terminal device and accounting method Download PDF

Info

Publication number
JP2018077844A
JP2018077844A JP2017211059A JP2017211059A JP2018077844A JP 2018077844 A JP2018077844 A JP 2018077844A JP 2017211059 A JP2017211059 A JP 2017211059A JP 2017211059 A JP2017211059 A JP 2017211059A JP 2018077844 A JP2018077844 A JP 2018077844A
Authority
JP
Japan
Prior art keywords
sheet
cell
accounting
processing
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017211059A
Other languages
Japanese (ja)
Other versions
JP7245486B2 (en
Inventor
俊雄 荒井
Toshio Arai
俊雄 荒井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Publication of JP2018077844A publication Critical patent/JP2018077844A/en
Priority to JP2023033446A priority Critical patent/JP7486240B2/en
Application granted granted Critical
Publication of JP7245486B2 publication Critical patent/JP7245486B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing system which has higher convenience to a user while utilizing an advantage of spreadsheet software and to provide a calculation processing method, a calculation processing program, an accounting program, an accounting system, an accounting terminal device and an accounting method.SOLUTION: An information processing system 10 includes input means, output means, basic processing means, and state update means. The basic processing means executes processing using an expression or a value (hereafter, regarded as "definition information".) defined in relation to at least one cell of spreadsheet software to execute routine processing. The state update means has redefinition information defined in advance in areas other than an area (hereafter, regarded as "an operation planned area".) with an operation planned when a user performs the routine processing, and uses the redefinition information to update a state about an operable object when an operation is performed about at least any operable object of a cell, a row, a column, and a sheet with the definition information related to.SELECTED DRAWING: Figure 11

Description

本発明は、表計算ソフトウェアによる計算システム、計算方法、計算プログラム、会計プログラム、会計システム、会計端末装置及び会計方法に関する。   The present invention relates to a calculation system using spreadsheet software, a calculation method, a calculation program, an accounting program, an accounting system, an accounting terminal device, and an accounting method.

従来、業務で扱う集計や計算の処理を行う場合に、当該業務に応じた様々な情報処理システムが利用されている。   2. Description of the Related Art Conventionally, various information processing systems corresponding to business operations are used when performing aggregation and calculation processing handled in the business operations.

例えば、膨大な計算が必要な業務の1つに会計処理がある。会計処理は、コンピュータ化される以前においては、事業規模に応じてまた実態に見合った内容及び書式で決算書類を作成していたが、コンピュータ化されるようになってからは、上場企業並みの品質及び決算書類を作成している。   For example, one of the tasks that requires enormous calculation is accounting. Prior to computerization, accounting documents were prepared in the form and format suitable for the actual situation according to the scale of the business. Quality and financial statements are prepared.

そこで、財務会計及びそのソフトウェアの知識が十分でなくても工事台帳を容易に作成するための発明がある(例えば、特許文献1参照)。特許文献1では、月毎に、ディスプレイ上に請求書等を表示させ、これに業者から発行された請求書情報を入力し、また、ディスプレイ上に入金表を表示させ、入金情報を入力する技術が開示されている。   Therefore, there is an invention for easily creating a construction ledger even if the knowledge of financial accounting and its software is not sufficient (see, for example, Patent Document 1). According to Patent Document 1, a bill is displayed on a display on a monthly basis, and bill information issued by a supplier is input to the display, and a payment table is displayed on the display to input payment information. Is disclosed.

また、表計算ソフトウェアによって、会計データを扱うようにしたシステムも開発されている(例えば、特許文献2参照)。   A system that handles accounting data by spreadsheet software has also been developed (see, for example, Patent Document 2).

さらに、表計算ソフトウェアを用いたシステムは、会計処理に限らず、様々な業務の処理に応じて設計され、利用されている(例えば、特許文献3参照)。   Furthermore, a system using spreadsheet software is designed and used not only for accounting processing but also for various business processes (see, for example, Patent Document 3).

特開2000−123075号公報JP 2000-123075 A 特開2017−174130JP 2017-174130 特開2013−97565号公報JP 2013-97565 A

今日市場で流通している会計ソフトウェアは、上場企業をはじめとする大企業が使用することを前提に作成されている。上場企業のような大企業では、決算書を税務署に提出するほか、銀行などの取引先に提出したり株主に報告したりしている。取引先に提出する決算書では文書としての体裁にも注意が必要であり、また経済統計を作成する際には、この決算書を利用して、集計の元データを提供する。そのため、統計や集計に役立つように、細かなルールが厳格に決められている。   Accounting software distributed in the market today is created on the assumption that large companies including listed companies will use it. Large companies such as listed companies submit financial statements to the tax office, submit them to business partners such as banks, and report to shareholders. Careful attention should be paid to the appearance of documents in financial statements submitted to business partners. When preparing economic statistics, the financial statements are used to provide the original data for aggregation. For this reason, detailed rules are strictly determined to be useful for statistics and tabulation.

それに対し、小規模会社や個人事業主は、決算書を税務署のみに提出する。この場合、簡易で単純な決算書で十分である場合も多い。また仮に、統計に参加する場合においても、大まかな集計値だけが求められる。そのため、小規模会社や個人事業主は、税務署提出用の決算書に特化した、構造が単純で、廉価な会計システムを求める。加えて、経営者及びその従業員にとって使い勝手のよい、会計システムが求められる。   In contrast, small companies and private business owners submit their financial statements only to the tax office. In this case, a simple and simple financial statement is often sufficient. In addition, even when participating in statistics, only a rough summary value is obtained. For this reason, small companies and individual business owners seek a simple and inexpensive accounting system that specializes in financial statements for tax office submission. In addition, there is a need for an accounting system that is easy to use for managers and their employees.

また、会計処理などの場合には、特に表計算ソフトウェアによるシステム構築が適しており、これにより、比較的廉価で、経営者及びその従業員などのユーザにとって使い勝手がよいシステムが提供可能である。   In the case of accounting processing and the like, it is particularly suitable to construct a system using spreadsheet software. This makes it possible to provide a system that is relatively inexpensive and easy to use for users such as managers and their employees.

表計算ソフトウェアは、一般的に、表計算ソフトウェア自身の機能としてユーザ自身による軽微なカスタマイズ(例えば、GUIによる対話形式の操作による表形式のシートにおける行・列の追加や削除など)が容易であり、また当該カスタマイズを行った場合に、シートの各セルに定義されている式を自動的に補正する機能(以下、「自動補正機能」と称する。)を有している。   In general, spreadsheet software can be easily customized as a function of spreadsheet software itself (for example, addition or deletion of rows / columns in a table-type sheet by interactive operation using GUI). In addition, when the customization is performed, a function for automatically correcting an expression defined in each cell of the sheet (hereinafter referred to as “automatic correction function”) is provided.

しかしながら、表計算ソフトウェアが本来有する機能としてのカスタマイズの許容範囲とそれに伴う自動補正機能が有効となる範囲は、ユーザにとって使い勝手の良い(利便性の高い)システム構築をする上では限定的といわざるを得ない。   However, the allowable range of customization as an inherent function of the spreadsheet software and the range in which the automatic correction function associated therewith is effective are limited in constructing a user-friendly (convenient) system. I do not get.

すなわち、システムの利便性を優先してこれらの範囲を超えた運用をしようとすると、例えば、計算の元になる参照先のデータの整合性が取れなくなり、想定される適切な結果が得られないといった致命的な問題となる場合がある。   In other words, if you try to operate beyond these ranges, giving priority to the convenience of the system, for example, the consistency of the data at the reference destination that is the source of the calculation will not be achieved, and the expected appropriate result will not be obtained. May become a fatal problem.

この問題は、会計処理システムに限らず、表計算ソフトウェアを用いた情報処理システムの全般において同様に存在する。   This problem exists not only in the accounting processing system but also in the entire information processing system using spreadsheet software.

本発明は、斯かる実情に鑑み、廉価に構築でき、ユーザによる軽微なカスタマイズとそれに伴う自動補正機能を備えた表計算ソフトウェアを用いた情報処理システム、計算処理方法、計算処理プログラム、会計プログラム、会計システム、会計端末装置及び会計方法において、表計算ソフトウェアの利点も活かしつつ、よりユーザにとっての利便性の高い情報処理システム、計算処理方法、計算処理プログラム、会計プログラム、会計システム、会計端末装置及び会計方法を提供しようとするものである。   In view of such circumstances, the present invention can be constructed at low cost, and is an information processing system using spreadsheet software having a slight customization by a user and an automatic correction function associated therewith, a calculation processing method, a calculation processing program, an accounting program, In the accounting system, accounting terminal device and accounting method, while taking advantage of spreadsheet software, the information processing system, calculation processing method, calculation processing program, accounting program, accounting system, accounting terminal device, which are more convenient for the user, and It is intended to provide an accounting method.

本発明は、表計算ソフトウェアを用いて所定の定型処理を行う情報処理システムであって、入力手段と、出力手段と、基本処理手段と、状態更新手段とを備え、前記基本処理手段は、前記定型処理を実行するために、前記表計算ソフトウェアの少なくとも1つのセルに関連して定義された式又は値(以下、「定義情報」という。)を用いた処理を実行可能であり、前記状態更新手段は、ユーザが前記定型処理を行う際に操作が予定されている領域(以下、「操作予定領域」という。)以外の領域に予め定義された再定義情報を有し、前記定義情報が関連するセル、行、列、シートの少なくともいずれかの操作可能対象について操作がされた場合、前記再定義情報を用いて前記操作可能対象についての状態を更新可能である、ことを特徴とする情報処理システムである。   The present invention is an information processing system that performs predetermined routine processing using spreadsheet software, and includes an input unit, an output unit, a basic processing unit, and a state update unit, and the basic processing unit includes In order to execute the standard processing, it is possible to execute processing using an expression or value (hereinafter referred to as “definition information”) defined in relation to at least one cell of the spreadsheet software, and the state update The means includes redefinition information defined in advance in an area other than an area where an operation is scheduled when the user performs the routine process (hereinafter referred to as “operation scheduled area”), and the definition information is related to When the operation is performed on at least one of a cell, a row, a column, and a sheet that can be operated, the state of the operable object can be updated using the redefinition information. It is a processing system.

また、本発明は、表計算ソフトウェアを用いて所定の定型処理を行う情報処理方法であって、前記定型処理を実行するために、前記表計算ソフトウェアの少なくとも1つのセルに関連して定義された式又は値(以下、「定義情報」という。)を用いた処理を実行するステップと、前記定義情報が関連するセル、行、列、シートの少なくともいずれかの操作可能対象について操作がされた場合に、ユーザが前記所定の処理を行う際に操作が予定されている領域以外の領域に予め定義された再定義情報を用いて前記操作可能対象についての状態を更新するステップと、を有する、ことを特徴とする情報処理方法である。   In addition, the present invention is an information processing method for performing predetermined routine processing using spreadsheet software, and is defined in relation to at least one cell of the spreadsheet software for executing the routine processing. When an operation is performed on at least one of a cell, a row, a column, and a sheet that can be processed by using a formula or a value (hereinafter, referred to as “definition information”) And updating the state of the operable object using redefinition information previously defined in an area other than the area that is scheduled to be operated when the user performs the predetermined process. Is an information processing method characterized by

また、本発明は、上記の情報処理方法による処理をコンピュータに実行させる、表計算ソフトウェアを用いた情報処理プログラムである。   The present invention is also an information processing program using spreadsheet software that causes a computer to execute the processing according to the above information processing method.

また、本発明は、複数の会計処理シートを予め設定している表計算ソフトウェアが搭載されたコンピュータに搭載される会計プログラムであり、前記複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部を、前記コンピュータに付与する、会計プログラムである。   Further, the present invention is an accounting program installed in a computer equipped with spreadsheet software presetting a plurality of accounting processing sheets, and between cells in one sheet of the plurality of accounting processing sheets and a plurality of An accounting program for giving an automatic processing unit for performing either one or both of automatic assignment and automatic restoration to the computer with respect to a mathematical expression relating cells in a sheet.

また、本発明は、表計算ソフトウェアを格納したコンピュータと、請求項1乃至3の何れかの会計プログラムと、を備える、会計システムである。   Moreover, this invention is an accounting system provided with the computer which stored the spreadsheet software and the accounting program in any one of Claims 1 thru | or 3.

また、本発明は、複数の会計処理シートを予め設定している表計算ソフトウェアによる会計処理部と、前記複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部と、入力部と、出力部と、を備える、会計装置である。   Further, the present invention relates an accounting processing unit by spreadsheet software in which a plurality of accounting processing sheets are set in advance, and between cells in one sheet of the plurality of accounting processing sheets and between cells in the plurality of sheets. An accounting apparatus including an automatic processing unit that performs either one or both of automatic assignment and automatic repair, an input unit, and an output unit.

また、本発明は、表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の前記会計処理シートに対し、日々の取引を入力する会計方法であって、複数の前記会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の前記会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う、会計方法である。   The present invention is an accounting method in which a plurality of accounting processing sheets are set in advance for spreadsheet software, and daily transactions are input to the plurality of accounting processing sheets. When transitioning between sheets, when starting or ending spreadsheet software, when entering a formula other than a planned formula that is a cell in any of the plurality of accounting sheets, It is an accounting method in which either or both of automatic assignment and automatic repair are performed with respect to mathematical expressions relating cells in one sheet of the accounting processing sheet and cells in a plurality of sheets.

また、本発明は、表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の前記会計処理シートに対し、日々の取引を入力する会計端末装置であって、複数の前記会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の前記会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部を備える、会計端末装置である。   Further, the present invention is an accounting terminal device that presets a plurality of accounting processing sheets for spreadsheet software and inputs daily transactions to the plurality of accounting processing sheets, When transitioning between processing sheets, when starting or ending spreadsheet software, when entering a formula other than the expected formula that is a cell in any of the plurality of accounting processing sheets An accounting terminal apparatus comprising an automated processing unit that performs either one or both of automatic assignment and automatic repair for a mathematical expression relating cells in one sheet of the accounting processing sheet and cells in a plurality of sheets. .

本発明によれば、廉価に構築でき、ユーザによる軽微なカスタマイズとそれに伴う自動補正機能を備えた表計算ソフトウェアを用いた情報処理システム、計算処理方法、計算処理プログラム、会計プログラム、会計システム、会計端末装置及び会計方法において、表計算ソフトウェアの利点も活かしつつ、よりユーザにとっての利便性の高い情報処理システム、計算処理方法、計算処理プログラム、会計プログラム、会計システム、会計端末装置及び会計方法を提供することができる。   According to the present invention, an information processing system, a calculation processing method, a calculation processing program, an accounting program, an accounting system, an accounting system that uses a spreadsheet software that can be constructed inexpensively, and has a user-customized customization and an automatic correction function associated therewith. In the terminal device and accounting method, providing information processing system, calculation processing method, calculation processing program, accounting program, accounting system, accounting terminal device, and accounting method that are more convenient for users while taking advantage of spreadsheet software can do.

本発明の第1実施形態に係る会計プログラムを搭載して当該プログラムを実行させたときの会計システムの機能ブロック構成図である。It is a functional block block diagram of an accounting system when the accounting program according to the first embodiment of the present invention is installed and executed. 本発明の第1実施形態に係る複数の会計処理シートのうち、売上・仕入のシートの一例を示す図である。It is a figure which shows an example of the sheet | seat of sales and purchase among several accounting process sheets which concern on 1st Embodiment of this invention. 本発明の第1実施形態に係る複数の会計処理シートのうち、日別残高のシートの一例を示す図である。It is a figure which shows an example of the sheet | seat of a daily balance among the some accounting process sheets which concern on 1st Embodiment of this invention. 本発明の第1実施形態に係る複数の会計処理シートのうち、損益計算のシートの一例を示す図である。It is a figure which shows an example of the sheet | seat of profit / loss calculation among the some accounting process sheets which concern on 1st Embodiment of this invention. 本発明の第1実施形態に係る複数の会計処理シートのうち、経費のシートの一例を示す図である。It is a figure which shows an example of the sheet | seat of expense among the some accounting process sheets which concern on 1st Embodiment of this invention. 本発明の第1実施形態に係る会計システムにおいて、数式の自動付与、自動修復の処理を示すフロー図である。In the accounting system concerning a 1st embodiment of the present invention, it is a flow figure showing processing of automatic grant of a numerical formula, and automatic restoration. 操作員が意図せずに数式を削除する場面において、マクロによる数式の自動修復の状況に関し、会計システムの出力部の表示状況を示す図である。It is a figure which shows the display condition of the output part of an accounting system regarding the condition of the automatic repair of the numerical formula by a macro in the scene where an operator deletes a mathematical expression unintentionally. 操作員が意図せずに数式を変更する場面において、マクロによる数式の自動修復の状況に関し、会計システムの出力部の表示状況を示す図である。It is a figure which shows the display condition of the output part of an accounting system regarding the condition of the automatic repair of the numerical formula by a macro in the scene which an operator changes a numerical formula unintentionally. 操作員が行を挿入する場面において、マクロによる数式の自動修復の状況に関し、会計システムの出力部の表示状況を示す図である。It is a figure which shows the display condition of the output part of an accounting system regarding the condition of the automatic repair of the numerical formula by a macro in the scene where an operator inserts a line. 操作員が定数を入力する場面において、マクロによる数式の自動修復がなされない状況に関し、会計システムの出力部の表示状況を示す図である。It is a figure which shows the display condition of the output part of an accounting system regarding the situation where the automatic repair of the numerical formula by a macro is not made in the scene where an operator inputs a constant. 本発明の第2実施形態に係る会計処理システムの概要図である。It is a schematic diagram of the accounting processing system which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る会計処理システムのシートの一例である。It is an example of the sheet | seat of the accounting processing system which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る会計処理システムにおける、串刺し演算処理の概念図である。It is a conceptual diagram of the skewering calculation process in the accounting processing system which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る状態更新手段を説明する概要図である。It is a schematic diagram explaining the state update means which concerns on 2nd Embodiment of this invention.

以下、本発明の実施の形態を添付図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the accompanying drawings.

<第1実施形態>
まず、図1〜図10を参照して、本発明の第1実施形態について、説明する。
<First Embodiment>
First, a first embodiment of the present invention will be described with reference to FIGS.

図1は、本発明の実施形態に係る会計プログラムを搭載して当該プログラムを実行させたときの会計システムの機能ブロック構成図である。会計システム1は、図1に示すように、入力部2と、演算処理部3と、表計算ソフトウェア及び会計プログラムを記憶した記憶部4と、出力部5と、を少なくとも備えている。   FIG. 1 is a functional block configuration diagram of an accounting system when an accounting program according to an embodiment of the present invention is installed and executed. As shown in FIG. 1, the accounting system 1 includes at least an input unit 2, an arithmetic processing unit 3, a storage unit 4 that stores spreadsheet software and an accounting program, and an output unit 5.

会計システム1は、入力部2と演算処理部3と表計算ソフトウェア及び会計プログラムを記憶した記憶部4と出力部5とを備えたコンピュータを用いて、表計算ソフトウェア及び会計プログラムを演算処理部3で処理することにより実現される。ここで、表計算ソフトウェアには、複数の会計処理シートが予め設定されている。   The accounting system 1 uses a computer having an input unit 2, an arithmetic processing unit 3, a spreadsheet software and a storage unit 4 storing an accounting program, and an output unit 5, and uses the computer with the spreadsheet software and accounting program 3 This is realized by processing. Here, a plurality of accounting processing sheets are preset in the spreadsheet software.

よって、演算処理部3は、会計ソフトウェアにより実現される会計処理部3aと、自動化処理部3bを構成する。自動化処理部3bは、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う。   Therefore, the arithmetic processing unit 3 constitutes an accounting processing unit 3a realized by accounting software and an automation processing unit 3b. The automation processing unit 3b performs either one or both of automatic assignment and automatic repair on a mathematical expression relating cells in one sheet of a plurality of accounting processing sheets and cells in a plurality of sheets.

この自動付与、自動修復は、複数の会計処理シートの間を遷移するとき、会計プログラムの起動、終了の何れかのとき、複数の会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、の少なくとも一つ以上のときに行われる。   This automatic assignment or automatic repair is scheduled for a cell in one of the plurality of accounting sheets at the start or end of the accounting program when transitioning between multiple accounting sheets. This is done when at least one of the following is entered.

自動付与・自動修復を説明する前提として、会計プログラムの起動から日々の利益額の計算までのプロセス、さらには決算書作成までのプロセスを説明する。   As a premise for explaining automatic grant / automatic repair, the process from the start of the accounting program to the calculation of the daily profit amount and the process from the preparation of the financial statements will be explained.

ステップ1:会計プログラムを起動する。この会計プログラムは、エクセル(登録商標)等の表計算ソフトウェア上で起動させることができる。すると、会計プログラム上に既に入力されている複数のシートが表示可能な状態となる。表示可能なシートは、「売上・仕入」、「日別残高」、「損益計算」、「経費」などのシートである。   Step 1: Start the accounting program. This accounting program can be started on spreadsheet software such as Excel (registered trademark). Then, a plurality of sheets already input on the accounting program can be displayed. Sheets that can be displayed are sheets such as “sales / purchase”, “daily balance”, “income calculation”, and “expense”.

ステップ2:シートのうち「売上・仕入」を選択し、請求書の内容、すなわち、客先
(取引先)名、売上、仕入を入力する。すると、売上、仕入などが積算され、「損益計算」と「日別残高」に反映される。
Step 2: Select “Sales / Purchase” from the sheet, and enter the contents of the invoice, that is, the customer (business partner) name, sales, and purchase. Then, sales, purchases, etc. are integrated and reflected in “Profit / Loss Calculation” and “Daily Balance”.

ステップ3:シートのうち「経費」を選択し、各種の経費を入力する。すると、経費、雑収入などが積算され、「損益計算」と「日別残高」に反映される。   Step 3: Select "Expense" from the sheet and enter various expenses. Then, expenses, miscellaneous income, etc. are accumulated and reflected in “Profit / Loss Calculation” and “Daily Balance”.

ステップ4:シートのうち「日別残高」を選択し、日々の現金の残高と預金残高を表示する。これは、入力誤りや入力漏れなどの人的な誤りを発見するための、情報提供となる。   Step 4: Select “daily balance” from the sheet, and display the daily cash balance and deposit balance. This provides information for finding human errors such as input errors and omissions.

ステップ5:シートのうち「損益計算」を選択すると、日々の利益金額が自動で生成される。決算時には、決算処理をした後に、シートを印刷して、決算書の一部として税務署に提出できる。   Step 5: When “Profit / Loss” is selected from the sheet, the daily profit amount is automatically generated. At the time of settlement, after the settlement process, the sheet can be printed and submitted to the tax office as part of the settlement report.

ここで、会計プログラムで作成されているフォームとしての各シートについて説明する。図2は本発明の実施形態に係る複数の会計処理シートのうち、売上・仕入のシートの一例を示す図、図3は本発明の実施形態に係る複数の会計処理シートのうち、日別残高のシートの一例を示す図、図4は本発明の実施形態に係る複数の会計処理シートのうち、損益計算のシートの一例を示す図、図4は本発明の実施形態に係る複数の会計処理シートのうち、経費のシートの一例を示す図である。   Here, each sheet as a form created by the accounting program will be described. FIG. 2 is a diagram showing an example of a sales / purchase sheet among a plurality of accounting processing sheets according to the embodiment of the present invention. FIG. 3 is a daily view of a plurality of accounting processing sheets according to the embodiment of the present invention. FIG. 4 is a diagram illustrating an example of a balance sheet, FIG. 4 is a diagram illustrating an example of a profit / loss calculation sheet among a plurality of accounting processing sheets according to the embodiment of the present invention, and FIG. 4 is a plurality of accounting according to the embodiment of the present invention. It is a figure which shows an example of the sheet | seat of expense among process sheets.

「売上・仕入」のシートには、「売上・仕入、品物の動き」と「決済情報、お金の動き」の二つの大項目に分かれている。前者の大項目「売上・仕入、品物の動き」は、「No」、取引日付を示す「年月、日」、「勘定科目」、「顧客先名」、「内容、数量」、「取引金額」などの項目で構成される。後者の大項目「決済情報、お金の動き」は、取引日付を示す「年月、日」、「上期/下期」、「当社負担分の送金手数料」、「現金」の入金及び出金、「預金1」の入金及び出金、「預金2」の入金及び出金、「預金3」の入金及び出金などの項目で構成される。   The “sales / purchase” sheet is divided into two major items: “sales / purchase, movement of goods” and “settlement information, movement of money”. The former major item “sales / purchase, movement of goods” is “No”, “date of transaction”, “account”, “customer name”, “content, quantity”, “transaction” It consists of items such as “Amount”. The latter major item “settlement information, movement of money” includes “date, month, day”, “first half / second half”, “remittance fee for our share”, “cash” deposit and withdrawal, This includes items such as deposit and withdrawal of “deposit 1”, deposit and withdrawal of “deposit 2”, deposit and withdrawal of “deposit 3”, and the like.

「日別残高」のシートは、取引のあった日毎に、「現金」、「預金1」、「預金2」、「預金3」などのそれぞれの入金と出金と残高の項目で構成される。   The “Daily Balance” sheet is composed of items such as “cash”, “deposit 1”, “deposit 2”, “deposit 3”, etc. .

「損益計算」のシートは、「単月の合計」と「期首からの合計」の二つに大別され、それぞれ、「売上」、「仕入」、「売上利益」、「雑収入」、「経費」、「総利益」の各項目で構成される。   The “Profit / Loss” sheet is broadly divided into “Monthly total” and “Total from the beginning of the year”, which are “Sales”, “Purchase”, “Sales profit”, “Miscellaneous income”, It consists of items "Expense" and "Gross profit".

「経費」のシートは、取引日付を示す「年月、日」、「経費の識別コード」、「勘定科目」、「現金」「預金」の各項目で構成され、「現金」は入金及び出金で構成され、各預金は「入金」、「出金」、「振込手数料」の各項目で構成される。「勘定科目」としては、通信費、事務用品、旅費交通費、外注加工費、給与、水道光熱費などがある。なお、「損益計算」のシートとは、「経費の識別コード」をキーとして他の値と連携している。   The “Expense” sheet is composed of “Date, Date”, “Expense Identification Code”, “Account”, “Cash”, and “Deposit” items that indicate the transaction date. Each deposit is made up of the following items: “Deposit”, “Withdrawal”, and “Transfer fee”. “Accounts” include communication expenses, office supplies, travel expenses, transportation expenses, outsourcing processing expenses, salary, utilities, etc. The “Profit / Loss” sheet is linked to other values using the “Expense identification code” as a key.

これらのシートを構成する各項目のセルは、本プログラムで与えられた数式により関連づけられ、シート間でのセル内の情報を関連づけている。関連性については会計の分野においては公知である。また、セル間の関連付けの仕組みそれ自体についても公知である。しかしながら、その関係性の数式それ自体は公知ではない。本発明者が自ら創作したものである。例えば、「経費」シートにおいて、自動修復の対象の列の数式は、次のようになる。   The cells of each item constituting these sheets are related by mathematical formulas given by this program, and the information in the cells between the sheets is related. Relevance is well known in the accounting field. In addition, a mechanism for associating cells is known. However, the relationship formula itself is not known. It was created by the inventor himself. For example, in the “expense” sheet, the formula of the column to be automatically repaired is as follows.

"=IF(OR(ISERR(DATEVALUE(INT(RC5/100)+1988 &"/"& MOD(RC5,100)&" / "& OFFSET(RC5,,1))),RC5>3100,RC5<2601),1,IF(RC5<OFFSET(RC5,1,),IF(RC5=EVEN(RC5),55,44),IF(RC6=OFFSET(RC6,-1,), IF(OR( OFFSET(RC,-1,)=4, OFFSET(RC,-1,)=5, OFFSET(RC,-1,)=1 ), OFFSET(RC,-1,),IF(RC5=EVEN(RC5),5,4) ),IF(OR(OFFSET(RC,-1,)=1,OFFSET(RC,-1,)=44,OFFSET(RC,-1,)=55),IF(RC5=EVEN(RC5),5,4),1))))"   "= IF (OR (ISERR (DATEVALUE (INT (RC5 / 100) +1988 &" / "& MOD (RC5,100) &" / "& OFFSET (RC5,, 1))), RC5> 3100, RC5 < 2601), 1, IF (RC5 <OFFSET (RC5,1,), IF (RC5 = EVEN (RC5), 55,44), IF (RC6 = OFFSET (RC6, -1,)), IF (OR (OFFSET ( RC, -1,) = 4, OFFSET (RC, -1,) = 5, OFFSET (RC, -1,) = 1), OFFSET (RC, -1,), IF (RC5 = EVEN (RC5), 5,4)), IF (OR (OFFSET (RC, -1,) = 1, OFFSET (RC, -1,) = 44, OFFSET (RC, -1,) = 55), IF (RC5 = EVEN ( RC5), 5,4), 1)))) "

ここで、RC5、RC、RC6は各参照セルを示す。   Here, RC5, RC and RC6 indicate reference cells.

また、「売上・仕入」、「日別残高」、「損益計算」、「経費」の4シート間の連携は、数式のみに依存する。この4シートのみでも、法人税の白色申告ができる。   Also, the linkage between the four sheets of “sales / purchase”, “daily balance”, “profit calculation”, and “expense” depends only on the formula. Even with these 4 sheets, the corporate tax can be filed in white.

本発明の実施形態において、或るシート内のセル間において数式で関係付けられ、又は、或るシートと別のシートとのセル間において数式で関係付けられているとき、数式の自動付与及び自動修復に関する機能を備える。   In an embodiment of the present invention, when a formula is related between cells in a certain sheet or a formula is related between cells of a certain sheet and another sheet, automatic assignment and automatic formula It has a function related to restoration.

図6は、本発明の実施形態に係る会計システムにおいて、数式の自動付与、自動修復の処理を示すフロー図である。   FIG. 6 is a flowchart showing the processing for automatically assigning mathematical expressions and automatically repairing them in the accounting system according to the embodiment of the present invention.

先ず、或るシートから別のシートに移動するか、又は或るシートにおいてセルに何らかの入力があるかを判断する(step11)。   First, it is determined whether to move from one sheet to another sheet or whether there is any input in a cell in a certain sheet (step 11).

Step11においてYesの場合、或るシートにおいて数式が入るべきセルを精査し、当該セルに正しい数式が入力されているか否かを判定する(step12)。   If Yes in Step 11, a cell in which a formula is to be entered in a certain sheet is examined, and it is determined whether or not a correct formula is input to the cell (Step 12).

Step12においてNoの場合、正しい数式を自動付与する(Step13)。   If No in Step 12, the correct mathematical formula is automatically given (Step 13).

例えば、Step12において、数式が入力されるべきセルがブランク(空白)になっているためNoの判定となっている場合、Step13において当該セルに数式が自動付与される。操作員が無意識にセル内の値(情報)をDeleteした場合などに対応することができる。   For example, in Step 12, when the cell in which the formula is to be input is blank (blank) and the determination is No, in Step 13, the formula is automatically assigned to the cell. It is possible to cope with a case where an operator unintentionally deletes a value (information) in a cell.

例えば、Step12において、或るシート上で数式が入力されるべきセルに対して本来定義されるべき数式と異なっている数式が入力されているため、Noの判定となっている場合、Step13において当該セルに数式が自動付与される。操作員が無意識にセルを選択して誤って修復操作をした場合などに対応することができる。   For example, in Step 12, if a formula that is different from the formula that should be originally defined for a cell in which a formula is to be input on a certain sheet is input, A formula is automatically assigned to the cell. It is possible to cope with a case where an operator unintentionally selects a cell and erroneously performs a repair operation.

例えば、Step12において、或るシート上で行を挿入したため数式が入力されていないセルが生じ、Noの判定となっている場合、Step13において当該セルに数式が自動付与される。操作員が行の挿入をした場合などに対応することができる。   For example, in Step 12, if a cell in which a formula is not input is generated because a row is inserted on a certain sheet and the determination is No, the formula is automatically assigned to the cell in Step 13. It is possible to handle the case where an operator inserts a row.

なお、Step12において、或るシート上でセルに定数を入力したためNoの判定となっている場合、Step13において当該セルへの数式の自動入力はなされない。これは、操作員が意識的に当該セルに定数を入力した場合などに対応するためである。意識的に当該セルに定数を入れる必要がある場合とは例えば、或る売掛金の決済に「預金1」の勘定及び「現金」の勘定などの複数の勘定を同時に用いる場合や、「預金2」、「預金3」のような数式の対応していない勘定を用いる場合である。「売上・仕入」のシートにおいては、売掛金の回収時に、「預金1」の勘定又は「現金」の勘定の何れか一方の勘定で、全額決済されるという前提で、数式が定義されているが、実務ではそれ以外の決済方法が良く表れる。このような場合に対応することを可能にするため、定数値の入力を許容するものである。   In Step 12, if the determination is No because a constant is input to a cell on a certain sheet, the formula is not automatically input to the cell in Step 13. This is to cope with a case where an operator consciously inputs a constant into the cell. The case where it is necessary to consciously put a constant in the cell is, for example, the case where a plurality of accounts such as an account of “deposit 1” and an account of “cash” are simultaneously used for settlement of certain accounts receivable, or “deposit 2” In this case, an account that does not correspond to a mathematical expression such as “deposit 3” is used. In the “sales / purchase” sheet, a formula is defined on the assumption that when the accounts receivable is collected, the entire account is settled in either the “deposit 1” account or the “cash” account. In practice, however, other payment methods appear well. In order to be able to cope with such a case, input of a constant value is permitted.

本発明の実施形態に係る会計端末装置1は、図1に示すように、会計システム1において会計プログラムを実行することにより具現化され、複数の会計処理シートを予め設定している表計算ソフトウェアによる会計処理部3Aと、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部3Bと、入力部2と、出力部5と、を備える。   As shown in FIG. 1, the accounting terminal device 1 according to the embodiment of the present invention is realized by executing an accounting program in the accounting system 1, and is based on spreadsheet software in which a plurality of accounting processing sheets are set in advance. An accounting processing unit 3A, and an automation processing unit 3B that performs either or both of automatic assignment and automatic repair on a mathematical expression relating cells in one sheet of a plurality of accounting processing sheets and cells in a plurality of sheets , An input unit 2 and an output unit 5.

このような会計端末装置1を用いることにより、本発明の実施形態に係る会計方法として、表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の会計処理シートに対し、日々の取引を入力する際、複数の会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行うことができる。   By using such an accounting terminal device 1, as an accounting method according to the embodiment of the present invention, a plurality of accounting processing sheets are set in advance for spreadsheet software, and a plurality of accounting processing sheets are When a transaction is entered, when transitioning between multiple accounting sheets, the spreadsheet software is activated or terminated, and is scheduled to be a cell in any of the multiple accounting sheets. When entering a formula other than a formula, one or both of automatic assignment and automatic repair can be performed on a formula that relates cells in one sheet of a plurality of accounting sheets and cells in a plurality of sheets. .

本発明の実施形態では、このように、数式の自動付与、自動修復機能を有するため、或るシート内又はシート間においてセルに正しい数式を定義しておくことにより、正しい計算結果を表示することができる。よって、或るシートにおいて行の挿入、削除の何れか一方又は双方があっても、その挿入、削除に対応させて数式の自動付与及び自動修復をすることができる。セルに正しい数式を定義しておくための技術としては、エクセル(登録商標)には「セル保護、ワークシート保護」の機能があるが、それらの機能を取り入れると、使い勝手の劣るシステムとなる。本発明の数式の自動付与・自動修復は、セルに正しい数式を定義しておきつつ、必要な場合には定数入力も許す、そんな堅牢性と柔軟性に優れた技術である。   In the embodiment of the present invention, since the formulas are automatically assigned and automatically repaired in this way, the correct calculation result is displayed by defining the correct formula in a cell within a certain sheet or between sheets. Can do. Therefore, even if there is one or both of insertion and deletion of a row in a certain sheet, it is possible to automatically assign a mathematical expression and automatically repair it in accordance with the insertion and deletion. As a technique for defining a correct formula in a cell, Excel (registered trademark) has a function of “cell protection and worksheet protection”. If these functions are incorporated, the system becomes inconvenient. The automatic assignment / restoration of formulas according to the present invention is a technique with excellent robustness and flexibility that allows a constant formula to be input when necessary while defining a correct formula in a cell.

この数式の自動付与、修復機能は、或るシートから別のシートに移動するか、又は或るシートにおいてセルに何らかの入力があるかを判断するだけでなく、操作員が特定の指示、例えば「修復」のボタンをONにしたり、ファイルを保存したりする場合であってもよい。   This automatic formula addition and repair function not only determines whether to move from one sheet to another or whether there is any input in a cell on a certain sheet, but also allows an operator to specify a specific instruction, for example, “ You may turn on the “Repair” button or save the file.

以下、具体的な場面を想定して説明する。図7は、操作員が意図せずに数式を削除する場面において、マクロによる数式の自動修復の状況に関し、会計システム1の出力部4の表示状況を示す図である。   Hereinafter, a description will be given assuming a specific scene. FIG. 7 is a diagram illustrating a display status of the output unit 4 of the accounting system 1 regarding a status of automatic repair of a mathematical formula by a macro in a scene where an operator unintentionally deletes the mathematical formula.

「売上・仕入」のシートにおいて、「決済情報、お金の動き」の「預金」の入金に対して数式が予め入力されているとする。すなわち、図7(A)に示すように、表示部4の画面上部の数式バーには、数式が表示されている。   In the “sales / purchase” sheet, it is assumed that a mathematical formula is input in advance for the deposit of “deposit” in “settlement information, movement of money”. That is, as shown in FIG. 7A, the formula is displayed in the formula bar at the top of the screen of the display unit 4.

その後、図7(B)に示すように、操作員がその数式をDeleteしたとすると、その直後の状態は、図7(B)に示すように、数式が入力されるべきセルなのに、ブランク(空白)になっている。   Thereafter, as shown in FIG. 7B, if the operator deletes the formula, the state immediately after that is a cell to which the formula is to be input as shown in FIG. Blank).

暫くすると、例えば1秒ほど待つと、マクロの働きにより、図7(C)に示すように正しい数式が付与される。   After a while, for example, after waiting for about 1 second, a correct mathematical expression is given as shown in FIG.

図8は、操作員が意図せずに数式を変更する場面において、マクロによる数式の自動修復の状況に関し、会計システム1の出力部4の表示状況を示す図である。   FIG. 8 is a diagram illustrating a display status of the output unit 4 of the accounting system 1 regarding a status of automatic repair of a mathematical formula by a macro in a scene where an operator unintentionally changes the mathematical formula.

「売上・仕入」のシートにおいて、「決済情報、お金の動き」の「預金」の入金に対して数式が予め入力されているとする。すなわち、図8(A)に示すように、表示部4の画面上部の数式バーには、数式が表示されている。   In the “sales / purchase” sheet, it is assumed that a mathematical formula is input in advance for the deposit of “deposit” in “settlement information, movement of money”. That is, as shown in FIG. 8A, the mathematical formula is displayed in the mathematical formula bar at the top of the screen of the display unit 4.

その後、図8(B)に示すように、操作員がその数式に対して"+456"を付け加えたとすると、その直後の状態は、図8(B)に示すように、本来定義されるべき数式と異なっている数式が入力されているため、変更後の数式が計算され、「入金」列のセルには456円多い金額が表示される。   Thereafter, as shown in FIG. 8B, if the operator adds “+456” to the mathematical expression, the state immediately after that is the mathematical expression to be originally defined as shown in FIG. 8B. Since a different mathematical formula is input, the modified mathematical formula is calculated, and the amount of money of 456 yen is displayed in the cell of the “deposit” column.

暫くすると、例えば1秒ほど待つと、マクロの働きにより、図8(C)に示すように正しい数式に修復される。   After a while, for example, after waiting for about 1 second, the correct mathematical formula is restored as shown in FIG.

図9は、操作員が行を挿入する場面において、マクロによる数式の自動修復の状況に関し、会計システム1の出力部4の表示状況を示す図である。   FIG. 9 is a diagram illustrating a display status of the output unit 4 of the accounting system 1 regarding a status of automatic repair of a mathematical expression by a macro in a scene where an operator inserts a row.

操作員が「売上・仕入」のシートにおいて行を挿入しようとすると、図9(A)に示すように、セルの挿入を行全体において行ってよいかについての「OK」、「キャンセル」の選択状態となる。   When the operator tries to insert a row in the “sales / purchase” sheet, as shown in FIG. 9A, “OK”, “Cancel” regarding whether or not the cell can be inserted in the entire row. Selected state.

「OK」を選択すると、図9(B)に示すように、行を挿入したため、数式が入力されていないセルが生じている。   When “OK” is selected, as shown in FIG. 9B, a row is inserted, and thus a cell in which no mathematical expression is input is generated.

暫くすると、例えば1秒ほど待つと、マクロの働きにより、図9(C)に示すように、正しい数式が付与される。   After a while, for example, after waiting for about 1 second, a correct mathematical formula is given as shown in FIG.

図10は、操作員が定数を入力する場面において、マクロによる数式の自動修復がなされない状況に関し、会計システム1の出力部4の表示状況を示す図である。   FIG. 10 is a diagram illustrating a display state of the output unit 4 of the accounting system 1 in a situation where the mathematical formula is not automatically repaired by the macro in a scene where the operator inputs a constant.

「売上・仕入」のシートにおいて、「決済情報、お金の動き」の「預金」の入金に対して数式が予め入力されているとする。すなわち、図10(A)に示すように、表示部4の画面上部の数式バーには、数式が表示されている。   In the “sales / purchase” sheet, it is assumed that a mathematical formula is input in advance for the deposit of “deposit” in “settlement information, movement of money”. That is, as shown in FIG. 10A, the mathematical formula is displayed in the mathematical formula bar at the top of the screen of the display unit 4.

その後、図10(B)に示すように、操作員が、数式を削除した後に定数として "234000"を入力する。すると、マクロは働かず、図10(C)に示すように、定数"234000"の入力が、受け入れられる。   Thereafter, as shown in FIG. 10B, the operator inputs “234000” as a constant after deleting the mathematical expression. Then, the macro does not work, and the input of the constant “234000” is accepted as shown in FIG.

以上説明したように、本実施形態の会計プログラムは、複数の会計処理シートを予め設定している表計算ソフトウェアが搭載されたコンピュータに搭載される会計プログラムであり、前記複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部を、前記コンピュータに付与する、会計プログラムである。   As described above, the accounting program of the present embodiment is an accounting program installed in a computer on which spreadsheet software in which a plurality of accounting processing sheets are set in advance is installed. An accounting program that assigns an automatic processing unit that performs either or both of automatic assignment and automatic repair to the computer with respect to mathematical formulas that relate cells in a sheet and cells in a plurality of sheets.

上記会計プログラムにおいて、複数の前記会計処理シートが、売上・仕入シート、日別残高シート、損益計算シート、及び、経費のシートの組である。   In the accounting program, the plurality of accounting processing sheets are a set of a sales / purchase sheet, a daily balance sheet, a profit / loss calculation sheet, and an expense sheet.

上記会計プログラムにおいて、前記自動化処理部は、自動付与及び自動修復を、複数の前記会計処理シートの間を遷移するとき、前記会計プログラムの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、の少なくとも一つ以上のときに行う。   In the accounting program, the automation processing unit performs a plurality of accounting processing sheets at the time of either starting or ending the accounting program when transitioning between the plurality of accounting processing sheets for automatic grant and automatic repair. This is performed when at least one of the cells in any one of the sheets is input other than the expected formula.

また、本実施形態の会計システムは、表計算ソフトウェアを格納したコンピュータと、本発明の会計プログラムと、を備える。   Further, the accounting system of this embodiment includes a computer storing spreadsheet software and the accounting program of the present invention.

また、本実施形態の会計端末装置は、複数の会計処理シートを予め設定している表計算ソフトウェアによる会計処理部と、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部と、入力部と、出力部と、を備える。   In addition, the accounting terminal device according to the present embodiment includes an accounting processing unit using spreadsheet software in which a plurality of accounting processing sheets are set in advance, cells between one sheet in a plurality of accounting processing sheets, and cells in a plurality of sheets. An automatic processing unit that performs either one or both of automatic assignment and automatic repair, an input unit, and an output unit are provided.

また、本実施形態の会計方法は、表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の会計処理シートに対し、日々の取引を入力する会計方法であって、複数の会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う。   The accounting method of the present embodiment is an accounting method in which a plurality of accounting processing sheets are set in advance for spreadsheet software, and daily transactions are input to the plurality of accounting processing sheets. When transitioning between accounting sheets, when starting or ending spreadsheet software, when entering a non-scheduled formula that is a cell in any sheet of multiple accounting sheets One or both of automatic assignment and automatic repair are performed with respect to mathematical formulas relating cells in one sheet and between cells in a plurality of sheets.

上記の実施形態に係る発明によれば、複数の会計処理シートを予め設定している表計算ソフトウェアに対して、複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける演算式に関し、自動付与、自動修復の何れか一方又は双方を行う。そのため、複数の会計処理シートを個人事業主又は小規模会社の規模に応じて設定することができ、しかも表計算ソフトウェアについて最低限の知識を有する者であれば使用することができる。よって、小規模会社や個人事業主の規模、体裁に応じて作成することができる会計プログラム及び会計システムを提供することができる。   According to the invention according to the above-described embodiment, with respect to spreadsheet software in which a plurality of accounting processing sheets is set in advance, between cells in one sheet of a plurality of accounting processing sheets and between cells in a plurality of sheets. Regarding the arithmetic expression to be related, either one or both of automatic assignment and automatic repair is performed. Therefore, a plurality of accounting processing sheets can be set according to the scale of the individual business owner or the small company, and any person who has a minimum knowledge about the spreadsheet software can use it. Therefore, it is possible to provide an accounting program and an accounting system that can be created according to the scale and appearance of a small company or individual business owner.

<第2実施形態>
次に、図11から図26を参照して、本発明の第2実施形態として、情報処理システム(情報処理装置)10について説明する。
Second Embodiment
Next, an information processing system (information processing apparatus) 10 will be described as a second embodiment of the present invention with reference to FIGS.

<全体構成>
図11は、本実施形態に係る情報処理システム10の構成の一例を示す概要図であり、同図(A)は、情報処理システム10のハードウェア構成を示す概要図であり、同図(B)、同図(C)は情報処理システム10の機能の一例を示すブロック図である。
<Overall configuration>
FIG. 11 is a schematic diagram illustrating an example of the configuration of the information processing system 10 according to the present embodiment. FIG. 11A is a schematic diagram illustrating the hardware configuration of the information processing system 10, and FIG. 2C is a block diagram illustrating an example of functions of the information processing system 10.

同図(A)に示すように、第2実施形態の情報処理システム10は、表計算ソフトウェアを実行することが可能な情報処理端末19を含んで構成される。ここでは一例として、単独の情報処理端末19によって情報処理システム10が構成され、すなわち情報処理システム10が情報処理装置でもある場合について説明する。   As shown in FIG. 2A, the information processing system 10 of the second embodiment includes an information processing terminal 19 that can execute spreadsheet software. Here, as an example, a case where the information processing system 10 is configured by a single information processing terminal 19, that is, the information processing system 10 is also an information processing device will be described.

情報処理端末19は例えば、入力手段11と、出力手段12と、制御手段13と、記憶手段14などを備えた既知のパーソナルコンピュータである。入力手段11は、例えばキーボードやタッチパネルであり、その他マウス、マイク、マウスと協働してポインティングデバイス機能を実現するモニタなどが含まれてもよい。出力手段12は、例えばディスプレイであり、その他スピーカやプリンタなどが含まれてもよい。   The information processing terminal 19 is, for example, a known personal computer including an input unit 11, an output unit 12, a control unit 13, a storage unit 14, and the like. The input unit 11 is, for example, a keyboard or a touch panel, and may include a mouse, a microphone, and a monitor that realizes a pointing device function in cooperation with the mouse. The output unit 12 is a display, for example, and may include other speakers, printers, and the like.

制御手段13は、情報処理端末19(情報処理システム10)を統括的に制御するCPU(Central Processing Unit)等である。記憶手段14は、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、及び光ディスク等などであり、OS(Operating System)等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどが格納される。制御手段13は、記憶手段14に格納されているこれらのプログラムに基づいて種々の情報処理を実行する。   The control means 13 is a CPU (Central Processing Unit) that comprehensively controls the information processing terminal 19 (information processing system 10). The storage means 14 is, for example, a memory device such as a RAM (Random Access Memory) and a ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, an optical disk, and the like, and an OS (Operating System) or the like. Stores control programs, programs that define various processing procedures, and required data. The control means 13 executes various information processing based on these programs stored in the storage means 14.

また、記憶手段14には、例えば、表計算ソフトウェア16のアプリケーションプログラムおよび、当該表計算ソフトウェアを利用して構築した、本実施形態の情報処理システム10を実現するためのプログラム(情報処理プログラム20)が格納されている。   In addition, the storage unit 14 includes, for example, an application program for the spreadsheet software 16 and a program for realizing the information processing system 10 of the present embodiment constructed by using the spreadsheet software (information processing program 20). Is stored.

なお、情報処理システム10は、通信インターフェイスを備えた情報処理端末19と、不図示のサーバ、および情報処理端末19とサーバを相互に通信可能に接続するネットワークを含んで構成されてもよい。この場合、サーバは例えば会計データを含む種々のデータや表計算ソフトウェアを含む種々のアプリケーションプログラムが格納され、情報処理端末19は、ネットワークを介してこれらのデータやアプリケーションプログラムを取得し、記憶手段14に格納して各種処理を実行可能に構成されていてもよい。   The information processing system 10 may include an information processing terminal 19 having a communication interface, a server (not shown), and a network that connects the information processing terminal 19 and the server so that they can communicate with each other. In this case, the server stores, for example, various data including accounting data and various application programs including spreadsheet software, and the information processing terminal 19 acquires these data and application programs via the network, and stores the storage means 14. It may be configured to be able to execute various processes by storing in the storage.

また、情報処理端末19は、パーソナルコンピュータに限らず、PDA(Personal Digital Assistants)、スマートフォン、タブレット型端末などの携帯型情報処理装置であってもよい。   The information processing terminal 19 is not limited to a personal computer, and may be a portable information processing device such as a PDA (Personal Digital Assistant), a smartphone, or a tablet terminal.

同図(B)を参照して、本実施形態の情報処理システム(情報処理装置)10は、上記のハードウェアと、OSや表計算ソフトウェア16のプログラム、本実施形態の情報処理プログラム20を含むソフトウェアとが協働し、所定の定型処理を実行するための基本処理機能と状態更新機能を含む情報処理機能を実現するものである。   Referring to FIG. 1B, an information processing system (information processing apparatus) 10 according to the present embodiment includes the hardware described above, an OS and a spreadsheet software 16 program, and an information processing program 20 according to the present embodiment. In cooperation with software, an information processing function including a basic processing function and a state update function for executing a predetermined routine process is realized.

すなわち、情報処理システム(情報処理装置)10は、その機能として、表計算ソフトウェア16を用いて所定の定型処理を実行可能に構成され、入力手段11と、出力手段12と、基本処理機能を実現する基本処理手段15と、状態更新機能を実現する状態更新処理手段17とを備える。   That is, the information processing system (information processing apparatus) 10 is configured to be able to execute predetermined routine processing using the spreadsheet software 16 as its function, and realizes input means 11, output means 12, and basic processing functions. Basic processing means 15 for performing the state update processing, and state update processing means 17 for realizing the state update function.

ここで、以下の例では、所定の定型処理が会計処理であり、情報処理システム10が会計処理システムである場合について説明する。   Here, in the following example, a case where the predetermined fixed process is an accounting process and the information processing system 10 is an accounting process system will be described.

また、第2実施形態の情報処理システム10には、第1実施形態の会計システム1が含まれてもよいし、含まれなくても良い。第2実施形態の情報処理システム10に第1実施形態の会計システム1が含まれる場合、第2実施形態の基本処理手段15には、例えば第1実施形態の会計処理部3aが含まれ、第2実施形態の状態更新処理手段17には、例えば第1実施形態の自動化処理部3bが含まれていてもよい。   In addition, the information processing system 10 of the second embodiment may or may not include the accounting system 1 of the first embodiment. When the accounting system 1 of the first embodiment is included in the information processing system 10 of the second embodiment, the basic processing means 15 of the second embodiment includes, for example, the accounting processing unit 3a of the first embodiment. The state update processing unit 17 of the second embodiment may include, for example, the automation processing unit 3b of the first embodiment.

本実施形態の情報処理システム10を構成する情報処理プログラム20(会計処理システム10を構成する会計処理プログラム20)は、表計算ソフトウェア16を用いて会計処理システム10の提供者によって設計されたプログラムである。表計算ソフトウェア16はスプレッドシートとも呼ばれ、行方向及び列方向に配列した複数のセルにある情報を定義することによって、様々な演算を含む処理を実行可能とするものである。   An information processing program 20 constituting the information processing system 10 of this embodiment (an accounting processing program 20 constituting the accounting processing system 10) is a program designed by the provider of the accounting processing system 10 using the spreadsheet software 16. is there. The spreadsheet software 16 is also called a spreadsheet. By defining information in a plurality of cells arranged in a row direction and a column direction, processing including various operations can be executed.

大量のデータを扱うシステムとしては、一般的に関係データベース(RDB:relational database)が利用される場合も多い。しかしながら、RDBを用いたシステムでは小規模なユーザの場合に、機能が複雑すぎたり、カスタマイズが困難であるなど、扱いにくい問題がある。これに対し、表計算ソフトウェア16は、そもそもユーザが表形式で仕組みを作りながら(必要な演算等をセルに書き込みながら)運用するように構成されている。このため、従来の手書き帳簿のようにユーザにとってなじみのある環境を再現しつつ運用することも可能となる。本実施形態では、表計算ソフトウェアの一例としてマイクロソフト社のエクセル(登録商標)を用いる場合について説明する。   As a system that handles a large amount of data, a relational database (RDB) is generally used in many cases. However, a system using RDB has problems that are difficult to handle for a small user, such as a function that is too complex or difficult to customize. On the other hand, the spreadsheet software 16 is configured so that the user operates in the first place while creating a mechanism in a table format (writing necessary calculations and the like in the cells). For this reason, it becomes possible to operate while reproducing an environment familiar to the user like a conventional handwritten book. In this embodiment, a case where Excel (registered trademark) of Microsoft Corporation is used as an example of spreadsheet software will be described.

表計算ソフトウェア16は、上記のとおり既知のものであり、当該表計算ソフトウェア16のメーカが提供する様々な機能を含んでいる。以下、これらの表計算ソフトウェア16に本来備わる各種機能を「基本機能」と総称する。基本機能には、様々な演算を行うための演算子、関数、マクロの記録手段、行・列の追加/削除、シートの追加/削除などが含まれる。また、GUI(Graphical User Interface)による対話形式の操作で行・列の追加や削除が可能に構成されており、あるセルに行または列を跨ぐ演算式(数式、文字列式を言う。以下同じ)が設定されていた場合において、GUIによる対話形式の操作で行・列の追加や削除があると、当該演算式が自動的に補正される機能(以下これを「自動修正機能」という。)も有している。この自動補正機能も基本機能に含まれる。   The spreadsheet software 16 is known as described above, and includes various functions provided by the manufacturer of the spreadsheet software 16. Hereinafter, various functions originally provided in the spreadsheet software 16 are collectively referred to as “basic functions”. Basic functions include operators, functions, macro recording means, addition / deletion of rows / columns, addition / deletion of sheets, and the like for performing various operations. In addition, it is configured such that rows and columns can be added or deleted by interactive operation using a GUI (Graphical User Interface), and arithmetic expressions (formulas and character string formulas that span rows or columns in a certain cell. The same applies hereinafter). ) Is set, a function that automatically corrects the arithmetic expression (hereinafter referred to as an “automatic correction function”) when a row or column is added or deleted by interactive operation using the GUI. Also have. This automatic correction function is also included in the basic function.

同図(B)に示すように、会計処理プログラム20は、会計基本処理プログラム21と、状態更新処理プログラム23とを有する。会計基本処理プログラム21は、表計算ソフトウェア16の基本機能を用いて、所定の定型処理(会計処理)が実行可能となるように、すなわち、会計処理の本来的機能を実現するために、各セルに対する関数等の定義やマクロなどを用いて設計されたプログラムであり、当該プログラムの実行により通常の損益計算や残高計算、仕訳などの会計処理が行える。   As shown in FIG. 5B, the accounting processing program 20 has an accounting basic processing program 21 and a state update processing program 23. The accounting basic processing program 21 uses each basic function of the spreadsheet software 16 so that predetermined routine processing (accounting processing) can be executed, that is, in order to realize the original function of accounting processing, Is a program designed using definitions of functions and macros for macros, etc., and by executing the program, accounting processing such as ordinary profit and loss calculation, balance calculation and journal entry can be performed.

また、状態更新処理プログラム23は、会計処理システム10の起動時、あるいは会計基本処理プログラム21の何らかの処理が実行された時、あるいは、エンドユーザによって、操作可能対象(セル、行、シート)の操作があり、具体的にはセルの操作(入力、削除等)、行・列の操作(挿入、削除、移動)、シートの操作(追加、削除、差換え)などがあり、会計基本処理プログラム21の本来の構成(設計者が意図した構成)が変更された場合などに、会計基本処理プログラム21の本来の構成が実行可能となるように、あるいは本来の構成に戻すように、操作可能対象の状態を更新する(自動で修復する)プログラムである。この状態更新処理プログラム23は、表計算ソフトウェア16の基本機能(関数、演算子、マクロなど)を用いて設計され、後に詳述するが、表計算ソフトウェア16の基本機能では不足する機能や、基本機能の一部(例えば、自動修正機能)を無効にする機能なども含まれる。   The state update processing program 23 operates the operation target (cell, row, sheet) when the accounting processing system 10 is started, when some processing of the accounting basic processing program 21 is executed, or by an end user. Specifically, there are cell operations (input, deletion, etc.), row / column operations (insertion, deletion, movement), sheet operations (addition, deletion, replacement), etc. When the original configuration (the configuration intended by the designer) is changed, the state of the operation target object so that the original configuration of the accounting basic processing program 21 can be executed or returned to the original configuration. Is a program that updates (automatically repairs). The state update processing program 23 is designed using basic functions (functions, operators, macros, etc.) of the spreadsheet software 16, and will be described in detail later. A function for invalidating a part of the function (for example, an automatic correction function) is also included.

同図(C)〜同図(E)を参照して、基本処理手段15は、会計基本処理プログラム21を含んで構成され、定型処理(ここでは、会計処理(会計処理において目的の結果を得るための計算処理)、以下同様)を実行するために、会計基本処理プログラム21として表計算ソフトウェア16の少なくとも1つのセルに関連して定義された定義情報Sを実行可能である。   Referring to FIG. 5C to FIG. 8E, the basic processing means 15 includes an accounting basic processing program 21 and includes a standard processing (in this case, accounting processing (obtaining the desired result in accounting processing). In order to execute the calculation processing for the calculation processing), the same applies hereinafter, the definition information S defined in relation to at least one cell of the spreadsheet software 16 can be executed as the accounting basic processing program 21.

本実施形態における定義情報Sとは、会計基本処理プログラム21の一部を構成する情報であり、表計算ソフトウェア16の基本機能を利用して、セルに予め定義(設定)された、関数、演算式(数式、文字列式)、文字列、数値など、セルに入力可能な全ての値である。また、定義情報Sは、表計算ソフトウェア16のシート上においてユーザの操作(数値の入力等)の対象として予定する領域(以下、「操作予定領域22」という。)のセルに対して定義される情報(値)をいう。この場合、操作予定領域22に直接定義(記載)される情報と、マクロの実行によって対象となるセルに(マクロで指定されたセルに)定義(記載)される情報とを含む。   The definition information S in this embodiment is information that constitutes a part of the basic accounting processing program 21, and functions and calculations that are defined (set) in the cell in advance using the basic function of the spreadsheet software 16. All values that can be entered in a cell, such as formulas (formulas, character string formulas), character strings, and numerical values. Further, the definition information S is defined for a cell in an area (hereinafter referred to as “operation scheduled area 22”) that is scheduled for a user operation (numerical value input or the like) on the sheet of the spreadsheet software 16. Information (value). In this case, information that is directly defined (described) in the scheduled operation area 22 and information that is defined (described) in the target cell (in the cell specified by the macro) by executing the macro are included.

また、基本処理手段15は、表計算ソフトウェア16の基本機能(自動修正機能、会計基本処理プログラム21に含まれるマクロの実行なども含む)を実行する手段である。   The basic processing means 15 is a means for executing basic functions of the spreadsheet software 16 (including an automatic correction function and execution of a macro included in the accounting basic processing program 21).

基本処理手段15は、ユーザが操作予定領域22のセルに入力した数値等に基づき、会計基本処理プログラム21を実行し、定義情報Sやマクロを用いて所望の会計処理を実行する。   The basic processing means 15 executes the basic accounting processing program 21 based on the numerical value or the like input by the user to the cell of the scheduled operation area 22, and executes the desired accounting processing using the definition information S and the macro.

状態更新処理手段17は、状態更新処理プログラム23を含んで構成され、再定義情報Rを用いて操作可能対象についての状態を更新可能な手段である。状態更新処理手段17が状態を更新するタイミングは、会計処理システム10の起動時、会計基本処理プログラム21によって何らかの処理が実行された時、あるいは、定義情報Sが関連するセル、行、列、シートの少なくともいずれかの操作可能対象について、ユーザ(会計処理システム10のエンドユーザ、以下同様)の操作がされた時である。   The state update processing unit 17 includes the state update processing program 23 and is a unit that can update the state of the operable object using the redefinition information R. The timing at which the status update processing means 17 updates the status is when the accounting processing system 10 is started, when some processing is executed by the accounting basic processing program 21, or the cell, row, column, sheet to which the definition information S is related. This is a time when a user (end user of the accounting processing system 10, the same applies hereinafter) is operated on at least one of the operable targets.

具体的には、状態更新処理手段17は、状態更新処理プログラム23の実行により、再定義情報Rおよびこれを用いるマクロを実行可能であり、これにより操作可能対象についての状態を更新する。なお、以下の説明において、会計基本処理プログラム21を構成するマクロを「会計基本マクロ」といい、状態更新処理プログラム23を構成するマクロを「再定義マクロ」という。   Specifically, the state update processing unit 17 can execute the redefinition information R and a macro using the same by executing the state update processing program 23, and thereby update the state of the operable target. In the following description, the macro constituting the accounting basic processing program 21 is referred to as “accounting basic macro”, and the macro constituting the state update processing program 23 is referred to as “redefinition macro”.

ここで、本実施形態における「マクロ」とは、アプリケーションの内側で実行することができる命令のセットをいい、この例では、表計算ソフトウェア16において一連の処理手続きを自動化する命令のセットをいう。より詳細に本実施形態の「マクロ」は、キー操作をそのまま記録・再現するキーボードマクロによって複数の手順を記憶して自動的に実行させるマクロ、マクロ言語(マクロを記述するコンピュータ言語)を用いたプログラミングによって記述された処理手順を呼び出して実行するマクロ、VisualBasicなどのプログラミング言語で表計算ソフトウェア16に既存の機能を制御するもの、表計算ソフトウェア16の既存の機能(演算式などの基本機能)を組み合わせて一つの纏まりのある機能を構成するもの(言語による制御は必須でない)の全部又は一部をいう。   Here, the “macro” in the present embodiment refers to a set of instructions that can be executed inside the application, and in this example, refers to a set of instructions that automate a series of processing procedures in the spreadsheet software 16. In more detail, the “macro” of the present embodiment uses a macro or macro language (computer language describing a macro) that automatically stores and executes a plurality of procedures using a keyboard macro that records and reproduces key operations as they are. Macros that call and execute processing procedures described by programming, those that control the existing functions of the spreadsheet software 16 in programming languages such as VisualBasic, and the existing functions (basic functions such as arithmetic expressions) of the spreadsheet software 16 This refers to all or part of the functions that are combined to form a single function (control by language is not essential).

例えば、会計基本マクロは、表計算ソフトウェア16の基本機能を組み合わせて一つの纏まりのある機能を自動で実行させる命令のセットであってもよいし、再定義マクロは、表計算ソフトウェア16の基本機能を組み合わせて一つの纏まりのある機能を自動で実行させるほか、マクロ言語やプログラミング言語を用いて所定の機能を自動で実行させる命令のセットであってもよい。   For example, the accounting basic macro may be a set of instructions that automatically execute a single function by combining the basic functions of the spreadsheet software 16, and the redefinition macro is a basic function of the spreadsheet software 16. May be a set of instructions that automatically execute a predetermined function using a macro language or a programming language.

状態更新処理手段17は、会計処理システム10の起動時や会計基本処理プログラム21実行時のあるタイミング、あるいは定義情報Sが関連する行または列の操作(追加、挿入、削除、複写)がされた場合、および、定義情報Sが定義されているセルに任意の値が上書きまたは該セルの内容が削除された場合に、再定義情報Rと再定義マクロを用いて、少なくとも一つのセルに定義情報Sを再定義する。   The status update processing means 17 has been operated (addition, insertion, deletion, copying) at a certain timing when the accounting processing system 10 is started or when the accounting basic processing program 21 is executed, or a row or column related to the definition information S. And when any value is overwritten in the cell in which the definition information S is defined or the contents of the cell are deleted, the definition information is assigned to at least one cell by using the redefinition information R and the redefinition macro. Redefine S.

再定義情報Rは、状態更新処理プログラム23の一部として、定義情報Sと同様に表計算ソフトウェア16の少なくとも1つのセルに予め定義(設定)された、関数、演算式(数式、文字列式)、文字列、数値など、セルに入力可能な全ての値である。ただし、定義情報Sが操作予定領域22のセルに対して定義されるのに対し、再定義情報Rは、シート上ではあるが、操作予定領域22以外の再定義情報設定領域25に設定される。この再定義情報設定領域25は、通常、ユーザには視認不可とされており、ユーザの操作対象とはならない(ユーザによる操作を予定しない)領域となっている。   The redefinition information R is a function, arithmetic expression (formula, character string expression) that is defined (set) in advance in at least one cell of the spreadsheet software 16 as part of the state update processing program 23 in the same manner as the definition information S. ), All values that can be entered in the cell, such as character strings and numerical values. However, while the definition information S is defined for the cell in the scheduled operation area 22, the redefinition information R is set in the redefinition information setting area 25 other than the scheduled operation area 22 on the sheet. . The redefinition information setting area 25 is normally an area that is not visually recognized by the user and is not a user operation target (an operation by the user is not scheduled).

再定義情報Rは、定義情報Sが定義されていたセルが、ユーザの操作によって定義情報S以外の値に変更(削除、上書き等)された場合に、当初定義されていた定義情報Sを再定義するための情報である。より詳細には、同図(C)、同図(D)に示すように、定義情報生成欄27に含まれるある定義情報Sがユーザの操作によって変更された場合に、同図(E)に示すように定義情報生成欄27に再定義情報Rを複写することによって、当初定義されていた定義情報Sを復元するための情報である。再定義情報Rの内容(値)は、定義情報生成欄27の定義情報Sの内容(値)と同一の場合もあるし、再定義情報Rの値を定義情報生成欄27のセルに複写した結果、表計算ソフトウェア16の自動修正機能により定義情報Sの内容と同一になる値の場合もある。   The redefinition information R re-defines the definition information S originally defined when the cell in which the definition information S is defined is changed (deleted, overwritten, etc.) to a value other than the definition information S by a user operation. Information for defining. More specifically, as shown in (C) and (D) of the figure, when certain definition information S included in the definition information generation field 27 is changed by a user operation, the (E) of FIG. As shown, the definition information S is information for restoring the definition information S that was originally defined by copying the redefinition information R in the definition information generation field 27. The content (value) of the redefinition information R may be the same as the content (value) of the definition information S in the definition information generation column 27, or the value of the redefinition information R is copied to a cell in the definition information generation column 27 As a result, the value may be the same as the content of the definition information S by the automatic correction function of the spreadsheet software 16.

また、基本処理手段15は、会計基本処理プログラム21の実行により例えば複数のシートに亘る処理(例えば、一のシート中のセルに定義されている定義情報Sから他のシート中のセルに定義されている定義情報Sを参照したり、複数のシートにおいて同じ領域(アドレス)に存在するセルの定義情報Sを串刺しで演算するなどの処理)を実行する場合がある。状態更新処理手段17は、シートの追加または差換えの操作があった場合において、基本処理手段15によって複数のシートに亘る処理を実行する際に、追加又は差換えのあったシートを参照の対象とするように、操作可能対象の状態を更新する。   In addition, the basic processing unit 15 executes processing for a plurality of sheets by executing the accounting basic processing program 21 (for example, the definition information S defined in the cells in one sheet is defined in the cells in other sheets. In some cases, the definition information S is referred to, or the definition information S of the cells existing in the same area (address) in a plurality of sheets is calculated by skewing. The state update processing unit 17 refers to a sheet that has been added or replaced when the basic processing unit 15 executes processing for a plurality of sheets when a sheet is added or replaced. Thus, the state of the operable target is updated.

本実施形態の会計処理システム10は、表計算ソフトウェア16を利用することで、従来の手書き帳簿のようにユーザにとってなじみのある環境を再現しつつ、更にはユーザの軽微なカスタマイズを許容しつつ利便性の高い運用を可能としている。   The accounting processing system 10 according to the present embodiment uses the spreadsheet software 16 to reproduce an environment familiar to the user like a conventional handwritten book and to allow the user to make slight customizations. It is possible to operate highly.

つまり、ユーザの操作の利便性や汎用性を高めるため、ユーザの入力制限や操作の制限は可能な限り少なくしている。このため、基本機能は可能な限り活用し、ユーザによる軽微なカスタマイズ(行の挿入・削除やシートの追加・削除・複製など)を認め、また操作予定領域22も可能な限り広く(非表示領域をなるべく少なく)する(シートやセルの操作を許容する)とともに、操作予定領域22においては任意の入力を許容するに構成されている。   That is, in order to improve the convenience and versatility of the user's operation, the user's input restriction and operation restriction are reduced as much as possible. For this reason, the basic functions are utilized as much as possible, and slight customization (insertion / deletion of rows, addition / deletion / duplication of sheets, etc.) by the user is allowed, and the operation scheduled area 22 is as wide as possible (non-display area) (As much as possible) (allows operation of sheets and cells), and allows arbitrary input in the scheduled operation area 22.

しかしながら、表計算ソフトウェア16の場合、ユーザによる情報(値など)の入力、定義情報Sの定義(設定)および例えば出力形式(帳票などの形式)を全てシート内のセルで共用する。このため、入力画面のみとして、あるいは出力帳票のみとしての単独でのカスタマイズが非常に困難となる。具体的には、入力画面の或るセルに対して、会計基本処理プログラム21として定義情報Sが定義されている場合に、所望の入力画面にするためにユーザが不用意に当該セルについて削除や上書きを行うと、定義情報Sが削除され、所望の計算結果が得られないこととなる。このように、ユーザによるカスタマイズがあると、会計処理システム10としての安定性が保証できない。   However, in the case of the spreadsheet software 16, the input of information (such as values) by the user, the definition (setting) of the definition information S, and the output format (such as a form) are all shared by cells in the sheet. For this reason, it is very difficult to customize the input screen alone or the output form alone. Specifically, when the definition information S is defined as the accounting basic processing program 21 for a certain cell on the input screen, the user inadvertently deletes the cell to make a desired input screen. If overwriting is performed, the definition information S is deleted, and a desired calculation result cannot be obtained. Thus, if there is customization by the user, stability as the accounting processing system 10 cannot be guaranteed.

また、表計算ソフトウェア16は一般的に、自動修正機能を有しているが、当該自動修正機能が有効となるのは或る操作の範囲に限られ、当該範囲を超えたカスタマイズ(行の修正、削除等)があると、あるいは、ユーザが想定していない範囲で機械的に自動修正機能によって修正がなされてしまうと、計算結果の整合性が保たれなくなる問題もある。   The spreadsheet software 16 generally has an automatic correction function. However, the automatic correction function is effective only within a certain operation range, and customization (line correction) exceeding the range is possible. , Deletion, etc.), or if the correction is made mechanically by an automatic correction function within a range that is not assumed by the user, there is a problem that consistency of calculation results cannot be maintained.

そこで、本実施形態では、必要に応じて、操作予定領域22外にある再定義情報R及び再定義マクロを用いて、変更された定義情報Sの更新(再定義)を行うこととした。   Therefore, in the present embodiment, the changed definition information S is updated (redefined) using the redefinition information R and the redefinition macro outside the scheduled operation area 22 as necessary.

これにより例えば、ユーザが、定義情報Sが定義(設定)されているセルに関連する行、列、セル、シートの少なくともいずれかの操作可能対象について操作(追加、削除等)することによって、会計処理システム10に本来想定されている処理が行えない(想定される適切な結果が得られない)状態となった場合であっても、状態更新処理手段17が再定義情報R及び再定義マクロを用いて少なくとも一つのセルに定義情報Sを再定義することによって、操作可能対象を、本来想定されている処理が行える(想定される適切な結果が得られる)状態に戻すことができる。   Thus, for example, when the user operates (adds, deletes, etc.) an operation target of at least one of a row, a column, a cell, and a sheet related to a cell in which the definition information S is defined (set), Even when the processing system 10 is in a state in which the processing originally assumed cannot be performed (the expected appropriate result cannot be obtained), the state update processing unit 17 displays the redefinition information R and the redefinition macro. By using and redefining the definition information S in at least one cell, it is possible to return the operable target to a state where the originally assumed processing can be performed (a proper expected result can be obtained).

以下、会計処理システム10の具体例を示しながら更に説明する。なお、会計基本処理プログラム21が実行する会計処理(その計算)の処理内容や構成については、既知の会計処理と同様であるので、以下では主に本実施形態の状態更新処理手段17について、具体例を挙げて説明する。   Hereinafter, further explanation will be given while showing a specific example of the accounting processing system 10. The processing contents and configuration of the accounting processing (calculation) executed by the accounting basic processing program 21 are the same as those of the known accounting processing, so the following mainly describes the state update processing means 17 of the present embodiment. An example will be described.

<会計処理システムのシート>
図12は、本実施形態の会計処理システム10(会計処理プログラム20)で使用する各種シートの一例を示す図である。会計処理システム10では、例えば、経費シート、売上・仕入シート、普通仕訳シート、追加シートと、帳票形式のシートを有している。これらのシートやプログラムは、単一のファイル(ワークブック)内に構成されるとは限らない。これらの全部又は一部を、単一の情報処理端末19内はもちろん、ネットワーク上のコンピュータやストレージ内に格納する構成であってもよい。
<Accounting system sheet>
FIG. 12 is a diagram illustrating an example of various sheets used in the accounting processing system 10 (accounting processing program 20) according to the present embodiment. The accounting processing system 10 has, for example, an expense sheet, a sales / purchase sheet, a regular journal sheet, an additional sheet, and a form sheet. These sheets and programs are not necessarily configured in a single file (workbook). All or a part of these may be stored in a computer or storage on a network as well as in a single information processing terminal 19.

経費シート、売上・仕入シート、普通仕訳シートは例えば、少なくとも行挿入が可能(行方向にデータ件数を追加可能)であり縦スクロールバーによって出力手段(ディスプレイ)12上の表示範囲を遷移させることができるリスト形式のシートである。帳票形式のシートは、行挿入が不可能(行方向にデータ件数を追加不可能)で、縦スクロールバーを有さない形式のシートである。帳票形式のシートは、1つの追加シートに対して複数準備され(随時追加も可能)、複数の帳票形式のシートの所定の領域が、串刺し演算によって纏め上げられて追加シートに集約される。   Expense sheets, sales / purchase sheets, and regular journal sheets can be inserted at least (the number of data items can be added in the line direction), for example, and the display range on the output means (display) 12 is changed by a vertical scroll bar. This is a list format sheet. A sheet in a form format is a sheet that cannot be inserted into a row (the number of data items cannot be added in the row direction) and does not have a vertical scroll bar. A plurality of form sheets are prepared for one additional sheet (can be added at any time), and predetermined areas of the plurality of form sheets are gathered together by a skewer operation and collected into the additional sheet.

このそれぞれのシートについて、所定の会計処理が実行可能となるように、会計基本処理プログラム21が設定されている。具体的には、各シートのセルに適宜、所定の定義情報Sが定義され、また、会計基本マクロが定義(設定)されている。   An accounting basic processing program 21 is set so that predetermined accounting processing can be executed for each of the sheets. Specifically, predetermined definition information S is appropriately defined in each sheet cell, and an accounting basic macro is defined (set).

さらに、一部または全部のシートにおいて、状態更新処理プログラム23が設定されている。すなわち、再定義情報設定領域25に再定義情報Rが定義され、再定義マクロが定義(設定)されている。   Further, a state update processing program 23 is set for some or all sheets. That is, the redefinition information R is defined in the redefinition information setting area 25, and a redefinition macro is defined (set).

本実施形態では、これらのシートを用いて、従来の手書き帳簿のようにユーザ毎に帳簿組織のカスタマイズ(ユーザ毎の機能追加や変更)を行うことができる。なお、会計処理システム10のシートは、図12に示す例に限らない。   In the present embodiment, these sheets can be used to customize the book organization (addition or change of functions for each user) for each user as in a conventional handwritten book. In addition, the sheet | seat of the accounting processing system 10 is not restricted to the example shown in FIG.

<状態更新処理手段>
図13は、状態更新処理手段17の概要を示す図である。同図(A)に示すように、状態更新処理手段17は、例えば、会計処理システム10の起動時や会計基本処理プログラム21の実行時など任意のタイミングでセルの定義情報Sを更新する第1状態更新処理を行う第1状態更新処理手段171と、あるセルに定義されている定義情報Sが変更された場合にこれを修復する第2状態更新処理を行う第2状態更新処理手段172と、定義情報Sが定義されているセルに対する変更の状態(変更された値)に応じて第3状態更新処理を行う第3状態更新処理手段173と、複数のシートに亘る処理においてシートの操作がされた場合の第4状態更新処理を行う第4状態更新処理手段174を有する。
<State update processing means>
FIG. 13 is a diagram showing an overview of the state update processing means 17. As shown in FIG. 2A, the state update processing means 17 updates the cell definition information S at an arbitrary timing such as when the accounting processing system 10 is started or when the accounting basic processing program 21 is executed. A first state update processing unit 171 that performs a state update process, a second state update processing unit 172 that performs a second state update process that repairs the definition information S defined in a certain cell, and A third state update processing unit 173 that performs a third state update process according to a change state (changed value) with respect to a cell in which the definition information S is defined, and a sheet is operated in a process across a plurality of sheets. And fourth state update processing means 174 for performing the fourth state update processing in the case of

<状態更新処理手段/第1状態更新処理手段(第1状態更新処理)>
同図(B)、同図(C)を参照して、第1状態更新処理手段171について説明する。
<Status update processing means / first status update processing means (first status update processing)>
The first state update processing means 171 will be described with reference to FIGS.

第1状態更新処理手段171は、基本機能としての自動修正機能はそのままに、行・列等の操作がされた後であっても、セルの内容が変更された場合に任意のタイミングでセルの定義情報Sを更新することにより、会計基本マクロが実行する会計処理の整合性を維持する手段であり、例えば、会計基本マクロ内で状態更新処理を実行する。これにより、会計処理システム10の起動時や、会計基本処理プログラム21の処理中、ユーザの操作があった場合など任意のタイミングにおいて、会計基本マクロが参照するセルに所定の定義情報S(例えば、デフォルトの演算式など)を再定義(再設定)するように構成されている。   The first state update processing unit 171 maintains the automatic correction function as a basic function as it is, and even after a row / column operation has been performed, if the cell content is changed, the cell can be By updating the definition information S, it is a means for maintaining the consistency of the accounting process executed by the accounting basic macro. For example, the state updating process is executed in the accounting basic macro. As a result, predetermined definition information S (for example, in a cell referred to by the accounting basic macro at any timing such as when the accounting processing system 10 is started up or when a user operation is performed during the processing of the accounting basic processing program 21). It is configured to redefine (reset) default arithmetic expressions.

これにより、ユーザが行・列の操作を行った場合において会計基本マクロが参照するあるセルの定義情報Sが変更された場合であっても、ユーザによる操作がない場合と同様に、整合性のとれた定義情報Sが参照されるように構成されている。   As a result, even when the definition information S of a certain cell referred to by the accounting basic macro is changed when the user performs a row / column operation, the consistency is the same as when the user does not perform the operation. The defined definition information S is referred to.

[列毎の状態更新処理]
まず、同図(B)、同図(C)を参照して列毎の状態更新処理を説明する。これらは列毎にセルの定義情報Sを更新することにより、会計基本マクロの処理の整合性を維持する方法を説明する例であり、ユーザが列を操作したことによって自動修正機能が働き、セルの内容が列方向にずれる場合の一例を示している。
[Status update processing for each column]
First, the state update processing for each column will be described with reference to FIGS. These are examples for explaining the method of maintaining the consistency of accounting basic macro processing by updating the cell definition information S for each column. When the user operates the column, the automatic correction function works and the cell An example in which the content of is shifted in the column direction is shown.

同図(B)上段に示すように、会計基本マクロの処理の一部として、例えば「タイトル3」列の2017/10/2行(「D4」アドレスのセル)に対して例えば「タイトル1」列の2017/10/2行の値と、「タイトル2」列の2017/10/2行の値の和を求める(アドレスB4の情報とアドレスC4の和を求める」という目的で、「=B4+C4」という定義情報S(演算式)が文字列で定義(設定)されているとする。   As shown in the upper part of FIG. 5B, as a part of the basic accounting macro processing, for example, “Title 1” is assigned to, for example, the 2017/10/2 row (“D4” address cell) in the “Title 3” column. For the purpose of calculating the sum of the value of the column 2017/10/2 in the column and the value of the column 2017/10/2 in the “title 2” column (determining the sum of the information of the address B4 and the address C4), “= B4 + C4 ”Is defined (set) as a character string.

この場合、ユーザがC列に列の挿入を行うと、同図(B)下段に示すようにC列以降の列が右に一列移動する。このとき、表計算ソフトウェア16の自動修正機能によって、C列以降の列のセルの内容(定義情報S)も修正され、例えば、「E4」のアドレスのセルの内容が「=B4+D4」に変更される(以下、セルのアドレスについては行・列の記載のみとし「アドレス」との記載を省略する)。つまり、列の挿入があっても、自動修正機能によって、「E4」セルの内容は、「タイトル1」列の2017/10/2行の値と、「タイトル2」列の2017/10/2行の値とが合算されるように修正され、列挿入前の値が維持される。   In this case, when the user inserts a column into the C column, as shown in the lower part of FIG. At this time, the contents of the cells in the columns C and subsequent columns (definition information S) are also corrected by the automatic correction function of the spreadsheet software 16, for example, the content of the cell at the address “E4” is changed to “= B4 + D4”. (Hereafter, the cell address is described only in the row and column, and the description of “address” is omitted). That is, even if a column is inserted, the content of the “E4” cell is changed to the value of 2017/10/2 row in the “title 1” column and 2017/10/2 in the “title 2” column by the automatic correction function. The row value is modified to be added up, and the value before the column insertion is maintained.

ここで、同図(B)上段において各セルの保護がされておらず、ユーザによる任意の入力が可能となっている場合、「D4」セルの内容がユーザによって意図せず他の値に上書きまたは削除されることがある。そのような場合に「D4」セルを自動で元の状態に戻す手段として、同図に示すように「「D4」セルに「=B4+C4」を書き込む」という命令を少なくとも含む修復マクロ(再定義マクロ)を準備することが考えられる。   Here, if each cell is not protected in the upper part of the figure (B) and any input by the user is possible, the contents of the “D4” cell are overwritten by other values unintentionally by the user. Or it may be deleted. In such a case, as a means for automatically returning the “D4” cell to the original state, as shown in FIG. 6, a repair macro (redefinition macro including at least an instruction “write“ = B4 + C4 ”in the“ D4 ”cell” ”. ).

しかしながら、この修復マクロでは同図(B)下段に示すように列挿入がされた後においては、本来修復すべき「E4」セルではなく「D4」セルの書き込みを行ってしまう。つまり、修復対象のセルに直接再定義を行うような修復マクロでは、行や列の操作がされた後の修復には対応することができない(列挿入があった場合には、修復マクロの定義を挿入後の状態で書き換える必要がある)。   However, in this repair macro, after the column is inserted as shown in the lower part of FIG. 5B, the “D4” cell is written instead of the “E4” cell to be originally repaired. In other words, repair macros that directly redefine cells to be repaired cannot handle repairs after row or column operations have been performed. Need to be rewritten after insertion).

そこで、本実施形態では、第1状態更新処理手段171によって、ユーザによる行・列等の操作がされた後にセルの修復をする場合であっても、本来修復すべきセルの状態を更新し、予定通りの結果(所定の結果)が得られるように修復することとした。   Therefore, in the present embodiment, even when the first state update processing unit 171 repairs the cell after the user performs an operation such as row / column, the state of the cell that should be repaired is updated, The restoration was made so that the expected result (predetermined result) was obtained.

具体的には、同図(C),同図(D)に示すように、第1状態更新処理手段171は、列方向の定義情報生成欄27に含まれるセルを再定義する再定義情報Rと再定義マクロを有している。この再定義情報Rは、操作予定領域22以外の再定義情報設定領域25に設定される。再定義情報設定領域25は、ここではタイトルが定義される行(この例では2行目)より上の行(この例では1行目)に設けられる。タイトルが定義される行よりも上の行(外側の領域)に再定義情報設定領域25を設けることで、ユーザが不用意に再定義情報Rを操作(変更)することを防止できる。なお、タイトルが設定される行および再定義情報設定領域25が設けられる行はこの例に限らず、例えば、タイトルを5行目に設定し、再定義情報設定領域25を2行目に設定してもよい。   Specifically, as shown in FIGS. 10C and 10D, the first state update processing means 171 redefines the redefinition information R for redefining the cells included in the definition information generation column 27 in the column direction. And have a redefinition macro. This redefinition information R is set in a redefinition information setting area 25 other than the scheduled operation area 22. Here, the redefinition information setting area 25 is provided in a line (in this example, the first line) above the line in which the title is defined (in this example, the second line). By providing the redefinition information setting area 25 in a line above the line where the title is defined (outside area), it is possible to prevent the user from inadvertently operating (changing) the redefinition information R. Note that the line where the title is set and the line where the redefinition information setting area 25 is provided are not limited to this example. For example, the title is set as the fifth line and the redefinition information setting area 25 is set as the second line. May be.

再定義情報Rの値は、定義情報生成欄27のセル(すなわち修復対象となるセル)に複写(コピー)された結果、当初定義されていた定義情報Sの値と同一になるような値である。また、再定義マクロは、「修復対象のセルが存在する列の再定義情報設定領域25に設定されている再定義情報Rを、同じ列の定義情報生成欄27のセル(すなわち修復対象のセル)に複写する」という命令を少なくとも含み、これを実行するマクロである。   The value of the redefinition information R is a value that is the same as the value of the definition information S that was originally defined as a result of being copied (copied) to the cell in the definition information generation field 27 (that is, the cell to be repaired). is there. Further, the redefinition macro “redefines the redefinition information R set in the redefinition information setting area 25 of the column in which the repair target cell exists, the cell of the definition information generation column 27 in the same column (that is, the repair target cell). A macro that executes at least an instruction of “copy to”).

例えば、同図(C)に示す「D4」セルの内容(値)が同図(B)上段と同様に「=B4+C4」と定義されている場合、D列の再定義情報Rは「=B1+C1」とする。そして、ユーザの操作によって「D4」セルの内容が削除され、その後に「D4」セルを元の状態に戻したい場合は、再定義マクロによって再定義情報Rと同列の定義情報生成欄27のセル(この例では「D4」セル)に複写する。そうすると表計算ソフトウェア16の自動修正機能が働いて、「D4」セルの内容(値)が「=B4+C4」に定義(再定義)される。   For example, when the content (value) of the “D4” cell shown in FIG. 6C is defined as “= B4 + C4” as in the upper part of FIG. 5B, the redefinition information R in the D column is “= B1 + C1”. " Then, if the contents of the “D4” cell are deleted by the user's operation and then the “D4” cell is to be returned to the original state, the cell in the definition information generation column 27 in the same row as the redefinition information R by the redefinition macro (In this example, “D4” cell). Then, the automatic correction function of the spreadsheet software 16 works, and the content (value) of the “D4” cell is defined (redefined) as “= B4 + C4”.

また、同図(C)の状態からユーザがC列に列の挿入を行うと、同図(D)に示すように、C列以降の列が右に一列移動する。このとき、表計算ソフトウェア16の自動修正機能によって、再定義情報Rおよび定義情報生成欄27もE列に移動し、再定義情報Rの内容(値)も「=B1+D1」に修正される。   When the user inserts a column into the C column from the state shown in FIG. 8C, the columns after the C column move one column to the right as shown in FIG. At this time, by the automatic correction function of the spreadsheet software 16, the redefinition information R and the definition information generation column 27 are also moved to the E column, and the content (value) of the redefinition information R is also corrected to “= B1 + D1”.

その後に、ユーザの操作によって「E4」セルの内容が削除され、その後に「E4」セルを元の状態に戻したい場合は、再定義マクロによって「E1」セルの再定義情報Rを、同列の定義情報生成欄27のセル(この例では「E4」セル)に複写する。そうすると表計算ソフトウェア16の自動修正機能が働いて、「E4」セルの内容(値)が「=B4+D4」に定義(再定義)される。エクセル(登録商標)でのセルの表記は、R1C1形式、A1形式の二種類がある。ここでは、セルの表記を「A1形式」で表記している。R1C1形式でも同じことは表記できるが、省略する。   After that, the contents of the “E4” cell are deleted by the user's operation, and when it is desired to return the “E4” cell to the original state thereafter, the redefinition macro R1 sets the redefinition information R of the “E1” cell in the same column. Copy to the cell of the definition information generation column 27 (in this example, “E4” cell). Then, the automatic correction function of the spreadsheet software 16 works, and the content (value) of the “E4” cell is defined (redefined) as “= B4 + D4”. There are two types of cell notation in Excel (registered trademark): R1C1 format and A1 format. Here, the notation of the cell is expressed in “A1 format”. The same can be expressed in the R1C1 format, but is omitted.

このように、第1状態更新手段171は、ユーザによる列方向の操作がされた後に会計基本処理プログラムによって定義された定義情報Sがユーザによって変更された場合であっても、当該変更されたセルに対して、会計基本処理プログラム21が想定する予定通りの結果が得られるように)当該変更があったセルに定義情報Sを再定義することができる。   Thus, even if the definition information S defined by the accounting basic processing program is changed by the user after the column direction operation by the user is performed, the first state updating unit 171 does not change the changed cell. On the other hand, the definition information S can be redefined in the cell in which the change has been made (so that a result as expected can be obtained by the accounting basic processing program 21).

このように、本実施形態の状態更新処理手段17は、表計算ソフトウェア16の自動修正機能も活用しつつ、会計基本マクロ内でセルを参照する場合の、計算結果の整合性を保つように構成されている。   As described above, the state update processing unit 17 of the present embodiment is configured to maintain the consistency of the calculation result when the cell is referred to in the accounting basic macro while utilizing the automatic correction function of the spreadsheet software 16. Has been.

また、この例では列方向の再定義情報設定領域25を2行目(同図(C)では「D2」セル)に設定しているが、再定義情報設定領域25は操作予定領域22の外側領域であって、ユーザが不用意に操作しない領域に設定すればよく、2行目に限らない。また、再定義情報設定領域25は、定義情報生成欄27と異なる列に設ける構成でもよい。   In this example, the redefinition information setting area 25 in the column direction is set in the second row ("D2" cell in the same figure (C)), but the redefinition information setting area 25 is outside the scheduled operation area 22. The area may be set to an area that the user does not carelessly operate, and is not limited to the second line. The redefinition information setting area 25 may be provided in a different column from the definition information generation field 27.

また、会計基本マクロと状態更新処理マクロとは完全に別体に構成されているものに限らず、会計基本マクロにおいてセルを参照する際に、再定義情報Rや再定義マクロを含めて(再定義した状態で)対象となるセルを参照する場合もある。つまり会計基本マクロ内に再定義マクロの少なくとも一部が記述される場合もある。なお、再定義情報Rおよび再定義情報設定領域25は、列方向に複数設けられても良い。   In addition, the accounting basic macro and the state update processing macro are not limited to being completely separated, and when the cell is referenced in the accounting basic macro, the redefinition information R and the redefinition macro are included (re- In some cases, the target cell may be referred to (in the defined state). In other words, at least a part of the redefinition macro may be described in the basic accounting macro. A plurality of redefinition information R and redefinition information setting area 25 may be provided in the column direction.

このように、列方向の再定義情報Rは、再定義情報設定領域25が設けられたそれぞれの列の所定の定義情報生成欄27(行方向に1又は複数並ぶ)に適用される定義情報Sを再定義(初期設定の場合もある)するための情報(例えば、演算式など)である。   As described above, the redefinition information R in the column direction is the definition information S applied to the predetermined definition information generation column 27 (one or a plurality in the row direction) of each column in which the redefinition information setting area 25 is provided. Is information (for example, an arithmetic expression) for redefining (in some cases, initial setting).

以上、列の挿入の場合について説明したが、列の削除がされた場合も同様である。また、再定義情報Rとしてセルのアドレスを含む演算式を定義する場合、セルの参照は処理内容に応じて、相対参照であっても絶対参照であってもよい。さらに、再定義情報Rは、関数や固定値、文字列等であってもよい。   The case of inserting a column has been described above, but the same applies when a column is deleted. Further, when an arithmetic expression including a cell address is defined as the redefinition information R, the cell reference may be a relative reference or an absolute reference depending on the processing content. Furthermore, the redefinition information R may be a function, a fixed value, a character string, or the like.

[行毎の状態更新処理]
図示は省略するが、第1状態更新手段171は、行毎にセルの定義情報Sを更新することにより、会計基本マクロの処理の整合性を維持することもできる。
[State update process for each row]
Although not shown, the first state updating unit 171 can maintain the consistency of the accounting basic macro process by updating the cell definition information S for each row.

この場合、操作予定領域22の外側領域(例えば2列目など)に、行方向の再定義情報設定領域25を設定し、行方向の再定義情報Rを定義する。行方向の再定義情報Rは、再定義情報設定領域25が設けられたそれぞれの行の所定の定義情報生成欄27(列方向に1又は複数並ぶ)に適用される定義情報Sを再定義(初期設定の場合もある)するための情報(例えば、演算式など)である。   In this case, the redefinition information setting area 25 in the row direction is set in the outer area (for example, the second column) of the scheduled operation area 22, and the redefinition information R in the row direction is defined. The redefinition information R in the row direction redefines the definition information S applied to a predetermined definition information generation column 27 (one or more arranged in the column direction) of each row in which the redefinition information setting area 25 is provided ( Information (for example, an arithmetic expression).

第1状態更新処理手段171は、行方向の再定義情報Rと再定義マクロによって、参照対象セルの状態を更新する。すなわち、例えば会計基本マクロによって、あるセルを参照する場合には、この参照の前に(会計基本マクロ内で)行方向の再定義情報Rを用いる再定義マクロを実行する。この場合の再定義マクロは、「修復対象のセルが存在する行の再定義情報設定領域25に設定されている再定義情報Rを、同じ行の定義情報生成欄27のセル(すなわち修復対象のセル)に複写する」という命令を少なくとも含み、これを実行するマクロである   The first state update processing unit 171 updates the state of the reference target cell with the redefinition information R in the row direction and the redefinition macro. That is, for example, when a certain cell is referred to by the accounting basic macro, the redefinition macro using the redefinition information R in the row direction is executed (within the accounting basic macro) before the reference. The redefinition macro in this case is “the redefinition information R set in the redefinition information setting area 25 of the row where the cell to be repaired exists is changed to the cell of the definition information generation column 27 in the same row (that is, the target of repair This is a macro that executes and executes at least the instruction "copy to cell)"

なお、あるセル(基準となるセル)において、行方向および/または列方向に隣接するセルを参照する場合には、基準となるセルと、当該基準となるセルからの移動位置(行、列)を指定する関数(エクセル(登録商標)の場合は、OFFSET関数))を用いて再定義情報Rを定義するとよい。OFFSET関数によれば、ユーザによる行・列の操作がされた場合であっても、その影響を受けずに隣接するセルを参照することができる。   When a cell adjacent in the row direction and / or column direction is referred to in a certain cell (reference cell), the reference cell and the movement position (row, column) from the reference cell It is advisable to define the redefinition information R using a function that designates (OFFSET function in the case of Excel (registered trademark)). According to the OFFSET function, it is possible to refer to adjacent cells without being affected by the operation of the row / column by the user.

第1状態更新処理手段171は、会計処理システム10のいずれのシートにおいても状態の更新が可能である。すなわち、第1状態更新処理手段171による第1状態更新処理は、本実施形態における状態更新処理の基本的な概念であり、第2状態更新処理手段172〜第4状態更新処理手段174では、セルやシートの修復の状況に応じて、上述した第1状態更新処理を利用した処理を行う。また、本実施形態の会計処理システム10では、以下に説明する第2状態更新処理手段172〜第4状態更新処理手段174における状態更新処理以外に限らず、セルの修復において第1状態更新処理手段171による(これを利用した)状態更新処理を行う場合もある。   The first status update processing unit 171 can update the status of any sheet of the accounting processing system 10. That is, the first state update processing by the first state update processing unit 171 is a basic concept of the state update processing in the present embodiment. In the second state update processing unit 172 to the fourth state update processing unit 174, the cell The process using the first state update process described above is performed in accordance with the sheet repair status. Further, in the accounting processing system 10 of the present embodiment, the first state update processing unit is not limited to the state update processing in the second state update processing unit 172 to the fourth state update processing unit 174 described below, but also in the cell repair. In some cases, state update processing (utilizing this) 171 is performed.

また、状態更新処理手段17による状態更新処理を行うためのシート(セル)の各種設定も、状態更新処理手段17の一部である(以下同様)。   Various settings of sheets (cells) for performing state update processing by the state update processing unit 17 are also a part of the state update processing unit 17 (the same applies hereinafter).

<状態更新処理手段/第2状態更新処理手段(第2状態更新処理)>
図14から図16を参照して、第2状態更新処理手段172について説明する。第2状態更新処理手段172は、あるセルに定義されている定義情報Sが変更された場合に、当該セルの変更内容によらずこれを修復する第2状態更新処理を行う手段である。第2状態更新処理の対象となるシートは、例えば、経費シート、売上・仕入シート、普通仕訳シート、追加シート(図12参照)の少なくともいずれかである。なお、本実施形態で説明するシートは一例であり、これ以外のシートがあってもよい。
<State update processing means / second state update processing means (second state update processing)>
The second state update processing unit 172 will be described with reference to FIGS. The second state update processing means 172 is a means for performing second state update processing for repairing, when the definition information S defined in a certain cell is changed, regardless of the change contents of the cell. The sheet to be subjected to the second state update process is, for example, at least one of an expense sheet, a sales / purchase sheet, a regular journal sheet, and an additional sheet (see FIG. 12). In addition, the sheet | seat demonstrated by this embodiment is an example, and there may exist other sheets.

第2状態更新処理手段172は、例えば、セルの値が変更された場合のイベント(例えば、エクセル(登録商標)ではChangeイベント)、又は他のシートへ移動する(それまでアクティブだったシートを非アクティブにする。)時に発生するイベント(例えば、エクセル(登録商標)ではDeActivateイベント)を契機として、定義情報Sが定義されているセルの一部又は全部を再定義する第2状態更新処理を行う。   The second state update processing unit 172 moves, for example, an event when the value of a cell is changed (for example, a change event in Excel (registered trademark)), or moves to another sheet (a sheet that has been active until then is not displayed). The second state update process for redefining part or all of the cells in which the definition information S is defined is triggered by an event that occurs at the time of activation (for example, DeActivate event in Excel (registered trademark)). .

また、第2状態更新処理手段172は、操作予定領域22内のある範囲の特定のセルについて、その状態を更新する。詳細には、予め状態更新の対象となる或るセルの範囲に所定の名前(エクセル(登録商標)では「セル範囲名」)を付しておき、セル範囲名が付された範囲のセルについてセル入力、情報の貼り付け、クリア、切り取りなどをした場合(このような場合に、Changeイベントが発生する。以下「Changeイベント発生時」と呼ぶ)、または他のシートへ移動する場合(このような場合に、DeActivateイベントが発生する。以下「DeActivateイベント発生時」と呼ぶ)に、当該セル範囲名のセルについて状態更新処理を行う。   Further, the second state update processing unit 172 updates the state of a certain range of specific cells in the scheduled operation area 22. In detail, a predetermined name (“cell range name” in Excel (registered trademark)) is given in advance to a range of a cell subject to state update, and the cells in the range to which the cell range name is attached When cell input, information pasting, clearing, cutting, etc. are performed (in such a case, a Change event occurs, hereinafter referred to as “when a Change event occurs”), or when moving to another sheet (such as this In such a case, a DeActivate event occurs (hereinafter referred to as “when the DeActivate event occurs”), and the state update process is performed for the cells in the cell range name.

図14、図15を参照して具体的に説明する。両図はいずれも一例として経費シートを示している。この例では、予め、図14(A)に示すように、2行目の、4、5,6,7,10列に「nソート列」というセル範囲名を付し、これらを再定義情報設定領域25としてそれぞれに所定の再定義情報Rを定義する。また、セル範囲名を付した列以外の列(例えば8列目)の33行〜4999行に「n年月」というセル範囲名を付している。なお、この例では、セル範囲名「n年月」のセル範囲はこの例に限らず、行挿入や行削除により変動する。   This will be specifically described with reference to FIGS. Both figures show an expense sheet as an example. In this example, as shown in FIG. 14A, the cell range name “n sort column” is assigned to the 4, 5, 6, 7, and 10 columns of the second row in advance, and these are redefined information. Predetermined redefinition information R is defined for each setting area 25. In addition, the cell range name “n year and month” is assigned to the 33rd to 4999th rows in columns other than the column to which the cell range name is assigned (for example, the eighth column). In this example, the cell range of the cell range name “n year and month” is not limited to this example, and varies depending on the row insertion or row deletion.

そしてセル範囲名「nソート列」の列と「n年月」の行で特定される同図(B)の破線で示す範囲(例えば、4、5,6,7、10列の33行〜4999行)が、第2状態更新処理の対象範囲となる。なお、同図の例ではシート中の2行〜31行および、3列、4列、7列の範囲は会計処理システム10の管理用エリアとして、ユーザにおける運用時には非表示となるエリアである。   Then, the range indicated by the broken line in FIG. 5B specified by the column of the cell range name “n sort column” and the row of “n year and month” (for example, 33 rows of 4, 5, 6, 7, and 10 columns) 4999 line) is the target range of the second state update process. In the example shown in the figure, the ranges of the 2nd to 31st rows and the 3rd, 4th, and 7th columns in the sheet are areas that are not displayed during operation by the user as management areas of the accounting system 10.

第2状態更新処理は、再定義マクロによって以下の手順で行う。   The second state update process is performed by the following procedure using a redefinition macro.

[Changeイベント発生時]
まず、再定義マクロは、Changeイベントの発生の契機となった操作がされた1または複数のセルが含まれるセルを取得し、変更されたセルが第2状態更新処理の対象範囲に含まれるか否かを判断する。
[When a change event occurs]
First, the redefinition macro acquires a cell including one or more cells that have been operated as the trigger of the occurrence of the Change event, and whether the changed cell is included in the target range of the second state update process. Judge whether or not.

例えば、図15(A)を参照して、第2状態更新処理の対象範囲のうち、太線で示すセルの内容を削除(クリア)したとする。太線で示す領域の6列、7列、10列は全て第2状態更新処理の対象範囲に含まれるため、この太線で示す領域の6列、7列、10列のセルが、第2状態更新処理の対象となるセル(修正対象セル)となる。再定義マクロは、当該修正対象セルを取得し、状態の更新(セルの定義情報Sの再定義)を行う。第2状態更新処理では、修正対象セルが1つ以上あれば状態の更新を行い、修正対象セルがない場合には、この処理を終了する。   For example, with reference to FIG. 15 (A), it is assumed that the contents of cells indicated by bold lines in the target range of the second state update process are deleted (cleared). Since the 6th, 7th, and 10th columns of the area indicated by the bold line are all included in the target range of the second state update process, the 6th, 7th, and 10th cells of the area indicated by the bold line are the second status update. A cell to be processed (a correction target cell). The redefinition macro acquires the correction target cell and updates the state (redefinition of the cell definition information S). In the second status update process, if there is one or more correction target cells, the status is updated. If there is no correction target cell, this process is terminated.

再定義マクロは、修正対象セルを列ごとに分割し、一列ずつ、当該列の再定義情報設定領域25(この例では6列の2行目、7列の2行目、および10列の2行目)に設定されている再定義情報R(例えば、正常な関数や演算式など)を、当該列の修正対象セルに順次上書きし、修正対象セルの状態を更新(定義情報Sに書きかえ)する。再定義マクロは、一列の状態更新が終了したら次の列の状態更新を行う。   The redefinition macro divides the cell to be corrected into columns, and redefines information setting area 25 for each column (in this example, the second row of six columns, the second row of seven columns, and the second row of ten columns). The redefinition information R (for example, a normal function or an arithmetic expression) set in the (line)) is sequentially overwritten on the correction target cell of the column, and the state of the correction target cell is updated (rewritten in the definition information S). ) The redefinition macro updates the status of the next column when the status update of one column is completed.

第1状態更新処理において説明したように、操作予定領域22の外側にあり、ユーザが操作する際に通常は非表示となっている再定義情報設定領域25に定義されてる再定義情報Rを修正対象セルに上書きすることによって、修正対象セルの内容を会計基本マクロで想定されていた内容(定義情報S)に修復することができる。また、修正対象セルが関連する行操作(行挿入や行削除)があった場合でも、会計基本マクロ内でその修正対象セルを参照する場合の、計算結果の整合性を保つことができる(以下の状態更新処理においても同様である)。   As described in the first state update processing, the redefinition information R defined in the redefinition information setting area 25 that is outside the scheduled operation area 22 and is normally hidden when the user operates is corrected. By overwriting the target cell, the content of the correction target cell can be restored to the content (definition information S) assumed in the accounting basic macro. In addition, even if there is a row operation (row insertion or row deletion) related to the correction target cell, it is possible to maintain the consistency of the calculation results when referring to the correction target cell in the accounting basic macro (below) The same applies to the state update process in FIG.

このような処理により、例えば同図(B)に示すように、修正対象セルの内容が削除(値のクリア)された場合であっても、同図(C)に示すように、再定義情報Rによって、正常な定義情報S(例えば、正常な関数や演算式など)が修正対象セルのそれぞれに再定義される。   Even if the contents of the correction target cell are deleted (values are cleared) by such processing, for example, as shown in FIG. 5B, as shown in FIG. With R, normal definition information S (for example, a normal function or an arithmetic expression) is redefined for each cell to be corrected.

なお、同図(C)の状態では、6列および7列は定義情報Sが再定義され表示されているが、10列は空白となっている。これは、再定義情報Rによって、正常な定義情報Sが再定義された結果によるものである。   In the state shown in FIG. 6C, the definition information S is redefined and displayed in the 6th and 7th columns, but the 10th column is blank. This is because the normal definition information S is redefined by the redefinition information R.

例えば、10列の2行目に定義されている再定義情報Rは、以下の演算式である。   For example, the redefinition information R defined in the second row of the tenth column is the following arithmetic expression.

「=IFERROR(TEXT(DATEVALUE(INT($H2/100)+1988 &"/"& MOD($H2,100)&"/"&$I2),"aaa"),"")」       "= IFERROR (TEXT (DATEVALUE (INT ($ H2 / 100) +1988 &" / "& MOD ($ H2,100) &" / "& $ I2)," aaa ")," ")"

この演算式の意味は、「年月日と解釈できる値が与えられたときは、その年月日の曜日を表示し、そうでなければ、空白を表示する」というものである。つまり、同図(C)における10列は、再定義情報Rによって、正常な定義情報Sが再定義されたが、年月日と解釈できる値が与えられなかったために、空白が表示されている。   The meaning of this arithmetic expression is “when a value that can be interpreted as a date is given, the day of the week is displayed, otherwise a blank is displayed”. That is, blank 10 is displayed in column 10 in FIG. 10C because normal definition information S is redefined by redefinition information R, but a value that can be interpreted as a date is not given. .

図16は、行の挿入があった場合の第2状態更新処理の一例を示す概要図である。この場合、第2状態更新処理の対象範囲は、図示のようにセル範囲名「nソート列」のC列からF列と、セル範囲名「n年月」の33行〜4999行で特定される範囲とする。   FIG. 16 is a schematic diagram illustrating an example of the second state update process when a row is inserted. In this case, the target range of the second state update process is specified from the C column to the F column of the cell range name “n sort column” and the 33rd to 4999 rows of the cell range name “n year and month” as illustrated. Range.

この状態で、ユーザの操作によって101行と102行の間に1行の挿入があった場合、Changeイベントが発生し、102行〜4999行が一行ずつ繰り下がり、同図右側に示すように103行〜5000行となる。つまり修正対象セルは、新たな102行のC列からF列のセルとなる。   In this state, when one line is inserted between the 101st line and the 102nd line by the user's operation, a Change event occurs, and the 102th to 4999th lines are moved down one line at a time, as shown on the right side of FIG. Lines to 5000 lines. That is, the correction target cell is a new cell from the C column to the F column of 102 rows.

第2状態更新処理では、ある列(挿入行の列)の中に一つでも修正対象セルがあれば、列全体の演算式を更新する。換言すると、Changeイベントを発生の契機となった操作がされた1または複数のセルの演算式を更新する。   In the second state update process, if even one correction target cell exists in a certain column (column of the inserted row), the arithmetic expression of the entire column is updated. In other words, the arithmetic expression of one or a plurality of cells in which an operation that triggered the occurrence of the Change event is updated.

そして、Changeイベントの発生により、再定義マクロは、修正対象セルを列ごとに分割し、一列ずつ(C列、D列、E列、F列の順に)当該列の再定義情報設定領域25(この例では2行目)に設定されている再定義情報R(例えば、正常な関数や演算式など)を、当該列の修正対象セルに順次上書きし、修正対象セルの状態を更新(定義情報Sに書きかえる)。再定義マクロは、一列の状態更新が終了したら次の列の状態更新を行う。   When the change event occurs, the redefinition macro divides the correction target cell for each column, and redefines information setting area 25 (in the order of C column, D column, E column, and F column) for each column. In this example, the redefinition information R (for example, a normal function or an arithmetic expression) set in the second row is sequentially overwritten on the correction target cell in the column, and the state of the correction target cell is updated (definition information) Rewrite to S). The redefinition macro updates the status of the next column when the status update of one column is completed.

[DeActivateイベント発生時]
DeActivateイベント発生時は、第2状態更新処理の対象範囲(例えば、図15(A)の破線の範囲)を列ごとに分割して、一列ずつセルの全数について、各セルの内容を判定する。この判定は、各セルの内容と当該列の再定義情報設定領域25(この例では2行目)に設定されている再定義情報R(例えば、正常な関数や演算式など)とを比較することにより行う。各セルの内容と再定義情報Rの内容が一致している場合は、そのまま次の(下の)セルに移動して順次判定し、当該列の中で1つでもセルの内容と再定義情報Rの内容が不一致のセルが存在した場合は、当該列の再定義情報設定領域25(この例では2行目)に設定されている再定義情報R(例えば、正常な関数や演算式など)を、当該列の第2状態更新処理の対象範囲のセルに順次上書きし、当該列の第2状態更新処理の対象範囲のセルの全てについて状態を更新する(定義情報Sに書きかえる)。再定義マクロは、一列の状態更新が終了したら次の列の状態更新を行う。
[When DeActivate event occurs]
When the DeActivate event occurs, the target range of the second state update process (for example, the range of the broken line in FIG. 15A) is divided for each column, and the contents of each cell are determined for the total number of cells one column at a time. This determination compares the contents of each cell with the redefinition information R (for example, a normal function or an arithmetic expression) set in the redefinition information setting area 25 (second row in this example) of the column. By doing. If the contents of each cell and the contents of the redefinition information R match, it moves to the next (lower) cell as it is and sequentially determines, and even the contents of the cell and the redefinition information in one of the columns If there is a cell whose contents of R do not match, the redefinition information R (for example, a normal function or an arithmetic expression) set in the redefinition information setting area 25 (second row in this example) of the column Are sequentially overwritten on the cells in the target range of the second state update process of the column, and the states of all the cells in the target range of the second state update process of the column are updated (rewritten in the definition information S). The redefinition macro updates the status of the next column when the status update of one column is completed.

なお、ここでは、第2状態更新処理の対象範囲のセルの全数について、その内容を判定する例を説明したが、以下の簡易判定を行っても良い。   In addition, although the example which determines the content about the total number of the cells of the target range of the second state update process has been described here, the following simple determination may be performed.

簡易判定ではまず、第2状態更新処理の対象範囲のセルの列毎の個数(N1)を把握する。この個数の把握は、例えばエクセル(登録商標)の場合には、「Range.cells.count」プロパティの参照で把握することができる。   In the simple determination, first, the number (N1) of cells in the target range of the second state update process for each column is grasped. For example, in the case of Excel (registered trademark), this number can be grasped by referring to the “Range.cells.count” property.

次に、数を把握したセルのうち、内容が演算式であるセルの個数(N2)を把握する。これは例えばエクセル(登録商標)の場合には、「Range.SpecialCells(xlCellTypeFormulas).cells.count」プロパティの参照で把握することができる。   Next, the number (N2) of cells whose contents are arithmetic expressions among the cells whose number is known is grasped. For example, in the case of Excel (registered trademark), this can be grasped by referring to the property “Range.SpecialCells (xlCellTypeFormulas) .cells.count”.

そして、列毎に上記(N1)と(N2)の値を比較し、一致していれば正常と判定し、次の列を処理する。一方上記(N1)と(N2)の値を比較し、不一致の場合は、異常と判定し、当該列の第2状態更新処理の対象範囲のセルの全てについて状態を更新(定義情報Sに書き換える)。   Then, the values of (N1) and (N2) are compared for each column, and if they match, it is determined as normal and the next column is processed. On the other hand, the values of (N1) and (N2) are compared, and if they do not match, it is determined as abnormal, and the state is updated (rewritten to definition information S) for all cells in the target range of the second state update process in the column. ).

第2状態更新処理手段172の更新処理は、特に、対象となるシート・列の数が多く、データ件数も多い一方で、列毎に同じ演算式が定義されているような場合(ユーザの入力を想定していないような場合)の状態更新(セル内容の修復)に有効である。   The update processing of the second state update processing means 172 is particularly the case where the number of target sheets and columns is large and the number of data items is large, but the same arithmetic expression is defined for each column (user input This is effective for state update (repair of cell contents).

また、対象となるセルの内容が変更された場合、通常は、Changeイベントのみを契機として、第2状態更新処理を実行すればよい。しかしながら、Changeイベントの発生に代えて、あるいは、Changeイベントの発生に加えて、DeActivateイベントの発生を契機とした第2状態更新処理を行うことにより、セルの状態更新(セルの内容の修復)をより確実に行うことができる。   In addition, when the contents of the target cell are changed, the second state update process is usually executed only with the Change event as a trigger. However, instead of the occurrence of the Change event or in addition to the occurrence of the Change event, by performing the second state update process triggered by the occurrence of the DeActivate event, the cell state can be updated (restoring the cell contents). This can be done more reliably.

例えば、会計基本マクロでは、必要に応じて指定されたオブジェクトに対しするイベントの発生の有無を切り替える(フラグを切り替える)場合があり、仮にイベントの発生が無いとされている場合(エクセル(登録商標)では「Application.EnableEvents=False」の状態の場合)に、ユーザがセルを操作(書き換えなど)すると、Changeイベントの発生が判断されない。また、会計処理マクロによるイベントの発生の有無の切り変えが必ず成功しているとは限らない場合もある。   For example, in the accounting basic macro, there is a case where the occurrence of an event for a specified object is switched as necessary (switching a flag), and a case where there is no occurrence of an event (Excel (registered trademark) ) In the case of “Application.EnableEvents = False”), when the user operates the cell (such as rewriting), the occurrence of the Change event is not determined. In some cases, the switching of the occurrence of an event by the accounting macro does not always succeed.

このような場合に、DeActivateイベントの発生を契機として第2状態更新処理を行うことで、セルに対する状態更新(セルの内容の修復)を確実にすることができる。   In such a case, by performing the second state update process triggered by the occurrence of the DeActivate event, it is possible to reliably update the state of the cell (restoration of the cell contents).

このように、第2状態更新処理手段172では、対話形式の操作によってユーザにより所定のセルに設定されている定義情報S(例えば関数や演算式など)が意図せず変更(意図しない文字列の上書き、貼付け、切り取り、削除など)がされた場合、再定義情報Rと再定義マクロによって、自動的に変更されたセルに定義されていた(所定の)定義情報Sを上書きするものである。   As described above, the second state update processing unit 172 unintentionally changes the definition information S (for example, a function or an arithmetic expression) set in a predetermined cell by the user by an interactive operation. When overwriting, pasting, cutting, deleting, etc.) are performed, the (predetermined) definition information S defined in the automatically changed cell is overwritten by the redefinition information R and the redefinition macro.

なお、上記の例では、経費シートを例に説明したが、売上・仕入シート、普通仕訳シート、追加シートについても、それぞれ例えば、nソート列の範囲(例えば、売上・仕入シートでは2行目の第3列〜第6列など)や、n年月の範囲(例えば、、売上・仕入シートでは第4行〜第252行など)などがそれぞれに応じて異なる以外は、同様の方法で状態更新処理を行うことができる。   In the above example, the expense sheet has been described as an example. However, the sales / purchase sheet, the ordinary journal sheet, and the additional sheet also have, for example, n sort column ranges (for example, 2 rows for the sales / purchase sheet). The third column to the sixth column of the eye), and the range of n years (for example, the fourth row to the 252nd row in the sales / purchase sheet) differ according to each other. The state update process can be performed.

<状態更新処理手段/第3状態更新処理手段(第3状態更新処理)>
次に、図17を参照して第3状態更新処理手段173について説明する。第3状態更新処理手段173は、定義情報Sが定義されているセルに変更があった場合に、変更後のセルの状態(値)に応じて第3状態更新処理を行う手段である。
<State update processing means / third state update processing means (third state update processing)>
Next, the third state update processing unit 173 will be described with reference to FIG. The third state update processing unit 173 is a unit that performs the third state update process according to the state (value) of the cell after the change when the cell in which the definition information S is defined is changed.

第3状態更新処理の対象となるシートは、主に、売上・仕入シート(図12参照)であり、同図(A)〜同図(D)は売上・仕入シートを示しているが他のシートであってもよい。   The sheets subject to the third state update process are mainly sales / purchase sheets (see FIG. 12), and FIGS. (A) to (D) show sales / purchase sheets. Other sheets may be used.

第3状態更新処理手段173は、例えば、Changeイベントの発生や、DeActivateイベントの発生を契機として、定義情報Sが定義されているセルの一部又は全部を再定義する第3状態更新処理を行う。   The third state update processing unit 173 performs, for example, a third state update process for redefining a part or all of the cells in which the definition information S is defined in response to the occurrence of the Change event or the occurrence of the DeActivate event. .

この場合も、予め状態更新の対象となる或るセル(例えば、定義情報Sとして演算式や関数が定義されているセル)の範囲に所定のセル範囲名を付しておき、セル範囲名が付された範囲のセルについてセル入力、情報の貼り付け、クリア、切り取りなどが行われ(Changeイベントが発生し)た場合、または対象シートから他のシートに移動する(DeActivateイベントが発生した)場合に、当該セル範囲名のセルについて状態更新処理を行う。   Also in this case, a predetermined cell range name is attached to a range of a certain cell (for example, a cell in which an arithmetic expression or function is defined as the definition information S) in advance, and the cell range name is When cell input, information pasting, clearing, cutting, etc. have been performed on the attached range of cells (Change event occurs), or when moving from the target sheet to another sheet (DeActivate event has occurred) Then, the state update process is performed for the cell having the cell range name.

つまり、まず第2状態更新処理の場合と同様に、列方向のセル範囲名が付された列と行方向のセル範囲名が付された行とで特定される第3状態更新処理の対象範囲を決定し、Changeイベントを発生の契機となった操作がされた1または複数のセルが含まれるセル範囲を取得して変更されたセルのうち、第3状態更新処理の対象範囲に含まれるセルを、修正対象セルとして特定する。第3状態更新処理では、修正対象セルが1つ以上あれば状態の更新を行い、修正対象セルがない場合には、この処理を終了する。   That is, first, as in the case of the second state update process, the target range of the third state update process specified by the column with the cell range name in the column direction and the row with the cell range name in the row direction Among the cells that have been changed by obtaining a cell range that includes one or more cells that have been operated to trigger the Change event, and that are included in the target range of the third state update process Is specified as a correction target cell. In the third state update process, if there is one or more correction target cells, the state is updated. If there is no correction target cell, this process is terminated.

再定義マクロは、修正対象セルを列ごとに分割し、一列ずつ、セルの内容を判断し、セルの内容に応じて当該列の再定義情報設定領域25(例えば、2行目)に設定されている再定義情報R(例えば、正常な関数や演算式など)を、当該列の修正対象セルに順次上書きし、修正対象セルの状態を更新する(定義情報Sに書きかえる)。再定義マクロは、一列の状態更新が終了したら次の列の状態更新を行う。   The redefinition macro divides the correction target cell for each column, determines the cell contents one column at a time, and is set in the redefinition information setting area 25 (for example, the second row) of the column according to the cell contents. The redefinition information R (for example, a normal function or an arithmetic expression) is overwritten sequentially on the correction target cell in the column, and the state of the correction target cell is updated (rewritten to the definition information S). The redefinition macro updates the status of the next column when the status update of one column is completed.

ここで、第3状態更新処理では、以下の判定基準(ケース1〜5)により操作がされたセルの内容を判断し、その内容が「異常」と判断された場合に、当該セルの内容を再定義情報Rで再定義する。   Here, in the third state update process, the content of the cell operated according to the following criteria (cases 1 to 5) is determined, and when the content is determined to be “abnormal”, the content of the cell is determined. Redefine with redefinition information R.

[ケース1]操作がされたセルの内容が「空白」の場合(ユーザによってスペースキーが押された場合など)→判定は「異常」   [Case 1] When the content of the operated cell is “blank” (when the user presses the space key, etc.) → Judgment is “abnormal”

[ケース2]操作がされたセルの内容が無い場合(ユーザによって削除(Delete)キーが押される、あるいはセルが切り取られるもしくは行挿入が行われた場合など)→判定は「異常」   [Case 2] When there is no content of the operated cell (such as when the user presses the Delete key, or the cell is cut or inserted) → The judgment is “abnormal”

[ケース3]操作がされたセルに空白以外の固定値(定数)が入力されている場合(ユーザによるキーボード操作による入力があった場合あるいは、値の貼り付けがあった場合など)→判定は「正常」   [Case 3] When a fixed value (constant) other than a blank is entered in the operated cell (when there is an input by keyboard operation by the user or when a value is pasted) → Judgment "normal"

[ケース4]操作がされたセルに演算式が入力されていて、その演算式が再定義情報設定領域25に設定されている再定義情報Rと一致する場合→判定は「正常」   [Case 4] When an arithmetic expression is input to the operated cell and the arithmetic expression matches the redefinition information R set in the redefinition information setting area 25 → the determination is “normal”

[ケース5]操作がされたセルに演算式が入力されていて、その演算式が再定義情報設定領域25に設定されている再定義情報Rと不一致の場合→判定は「異常」   [Case 5] When an arithmetic expression is input to the operated cell and the arithmetic expression does not match the redefinition information R set in the redefinition information setting area 25 → Judgment is “abnormal”

すなわち、第3状態更新処理では、定義情報Sが設定されているセルにユーザによって空白以外の定数が入力され、その入力によって予め定義された定義情報Sが失われた場合であっても、ユーザの入力した定数を許容する(正常なものとして扱い、再定義を行わない)。一方で、それ以外の入力については、予め定義された定義情報Sと一致する場合を除き、異常な値の入力と判定して定義情報Sの再定義を行う。   That is, in the third state update process, even when a constant other than a blank is input by the user to the cell in which the definition information S is set, and the definition information S previously defined by the input is lost, the user Allow the constant entered in (handle as normal, do not redefine). On the other hand, with respect to other inputs, the definition information S is redefined by determining that the input is an abnormal value unless the input matches the definition information S defined in advance.

また、DeActivateイベント発生時も、第2状態更新処理手段172の場合と同様に、第3状態更新処理の対象範囲を列ごとに分割して、一列ずつセルの全数について、各セルの内容と当該列の再定義情報設定領域25に設定された再定義情報Rとを比較し、不一致のセルに再定義情報Rで再定義(正しい演算式等を上書き)する。   In addition, when the DeActivate event occurs, as in the case of the second state update processing unit 172, the target range of the third state update process is divided for each column, and the contents of each cell and the relevant number are related to the total number of cells one column at a time. The redefinition information R set in the column redefinition information setting area 25 is compared, and the redefined information R is redefined (overwrites a correct arithmetic expression or the like) in a mismatched cell.

なお、この場合、取得するセルの種類を指定し、指定された条件を満たしているすべてのセルのセル範囲を簡便に取得する方法(例えば、エクセル(登録商標)の場合は、Rangeオブジェクトを返す「Range.SpecialCells」等のプロパティ・メソッド・関数、マクロ等)を利用してもよい。このような方法を利用することで全数の判定ではなく、指定された条件を満たすセル(例えば、この場合定数が入力されているセル)のセル範囲が戻されるため、処理を高速にすることができる。   In this case, the method of acquiring the cell range of all cells that satisfy the specified condition by specifying the type of cell to be acquired (for example, in the case of Excel (registered trademark), a Range object is returned). Properties, methods, functions such as “Range.SpecialCells”, macros, etc.) may be used. By using such a method, the cell range of the cells that satisfy the specified conditions (for example, cells in which constants are input in this case) is returned instead of determining the total number, so that the processing can be speeded up. it can.

図17を参照して具体的に説明する。ここでは、例えば、18列と20列の132行目以降が修正対象セルであり、初期状態で定義情報Sに基づく値が設定されるほか、ユーザによる固定値の入力は受け付けるものとする。つまり、図示は省略しているが、18列と20列の再定義情報設定領域25(例えば、2行目など)に所定の再定義情報Sが定義されている。   This will be specifically described with reference to FIG. Here, for example, the cells after the 132nd row of the 18th column and the 20th column are correction target cells, and a value based on the definition information S is set in an initial state, and a fixed value input by the user is accepted. That is, although not shown, predetermined redefinition information S is defined in the redefinition information setting area 25 (for example, the second row) of the 18th and 20th columns.

同図(A)に示す初期状態では、140行目において20列(「入金」の項目)のセルの値は、定義情報Sによって「23,717」となり、18列目は空白となっている。   In the initial state shown in FIG. 6A, the cell values in the 20th column (“Deposit” item) in the 140th row are “23,717” according to the definition information S, and the 18th column is blank. .

この場合、同図(B)に示すように、140行目20列のセルの値をユーザが、「23,217」に修正し、18列のセルの値を「500」に修正すると、上述の判定基準「ケース3」によって、この値の入力を受け付ける(許容する)。   In this case, as shown in FIG. 5B, when the user corrects the cell value in the 140th row and the 20th column to “23, 217” and the cell value in the 18th column to “500”, The input of this value is accepted (allowed) according to the determination criterion “Case 3”.

一方、同図(C)に示すように、140行目20列のセルの値をユーザが、例えば削除する(Deleteキーが押される)と、上述の判定基準「ケース2」によって、「異常」と判定され、再定義情報設定領域25(ここでは不図示の20列目の例えば2行目など)に設定されている再定義情報Sが再定義マクロによって140行目20列のセルに複写され、同図(D)に示すように初期状態の値が再定義される(セルの内容を表示する表示欄CN参照)。   On the other hand, as shown in FIG. 5C, when the user deletes the value of the cell in the 140th row and the 20th column (for example, when the Delete key is pressed), the above-mentioned determination criterion “Case 2” indicates “abnormal”. And the redefinition information S set in the redefinition information setting area 25 (here, for example, the second row in the 20th column not shown) is copied to the cell in the 140th row and the 20th column by the redefinition macro. As shown in FIG. 4D, the initial state value is redefined (see display column CN for displaying the cell contents).

このような処理により、例えば、同図(A)に示す初期状態から、例えばユーザによって、同図(B)に示すように、第3状態更新処理の対象範囲に含まれるセル(例えば、18列140行と20列140行のセル)に数値(金額などを示す数値)が入力された場合には、当該値を正常なものとして処理し、同図(C)に示すように削除または空白等が入力された場合には、同図(D)に示すように所定の演算式や関数などに修正することができる。   By such a process, for example, from the initial state shown in FIG. 5A, the cell (for example, 18 columns) included in the target range of the third state update process as shown in FIG. When a numerical value (numerical value indicating a monetary amount) is input in the 140th row and 20th column and 140th row (cell), the value is processed as normal, and is deleted or blanked as shown in FIG. Can be corrected to a predetermined arithmetic expression or function as shown in FIG.

特に会計処理システムにおいては、或る項目(セル)についてユーザによる数値(金額等)の入力を認めることで、シートの内容が分かり易く(明確)になる場合も多くある。このような場合入力された数値を正常として認めることで、ユーザが意図的に固定値を入力したい場合にはそれを維持し、あるいは演算式を維持したい(当初の演算式に戻したい)場合には、所定の演算式を再定義するなどの運用が可能となり、ユーザの利便性を格段に高めることができる。   In particular, in an accounting system, the content of a sheet is often easy to understand (clear) by allowing a user to input a numerical value (amount of money, etc.) for a certain item (cell). In such a case, if the user wants to input a fixed value intentionally, or keeps it or wants to maintain the arithmetic expression (return to the original arithmetic expression), by accepting the input numerical value as normal The operation such as redefining a predetermined arithmetic expression becomes possible, and the convenience of the user can be greatly improved.

なお、第2状態更新処理と、第3状態更新処理は類似する処理であるが、以下の点において異なる。   The second state update process and the third state update process are similar processes, but differ in the following points.

まず、第2状態更新処理は、再定義の対象となる全てのセルに再定義情報Rをコピーする。これに対し、第3状態更新処理では、ユーザによって固定値(定数)が入力された場合には、再定義情報Rのコピーは行わない。   First, in the second state update process, the redefinition information R is copied to all cells to be redefined. On the other hand, in the third state update process, when a fixed value (constant) is input by the user, the redefinition information R is not copied.

また、会計処理システム10の場合、第2状態更新処理は、処理対象として好適なシートは経費シート、売上・仕入シート、普通仕訳シート、追加シートであり、それぞれに異なる第2状態更新処理の対象範囲(行方向のセル範囲名と列方向のセル範囲名で特定される対象範囲)が設定される。これに対し、第3状態更新処理の処理対象として好適なシートは主に売上・仕入シートである。そして、例えば同じ売上・仕入シートであっても、第2状態更新処理の対象範囲と第3状態更新処理の対象範囲は異なる範囲である。   In the case of the accounting system 10, the second state update process is a cost sheet, a sales / purchase sheet, a regular journal sheet, and an additional sheet that are suitable for processing. A target range (a target range specified by a cell range name in the row direction and a cell range name in the column direction) is set. On the other hand, sheets suitable for the third state update process are mainly sales / purchase sheets. For example, even for the same sales / purchase sheet, the target range of the second state update process is different from the target range of the third state update process.

また、第2状態更新処理の対象範囲と第3状態更新処理の対象範囲のセルの数で比較すると、第2状態更新処理の対象範囲の方が大幅に多い。   Further, when compared with the number of cells in the target range of the second state update process and the target range of the third state update process, the target range of the second state update process is significantly larger.

また、第2状態更新処理では、再定義をする場合(全数処理の場合)には、列単位で全数を再定義(上書き)するが、第3状態更新処理では、固定値の入力を許容するため、列単位でセルを個別に判定し、選択的に再定義(上書きする)を行う。   Further, in the second state update process, when redefinition is performed (in the case of total number process), the total number is redefined (overwritten) in units of columns, but in the third state update process, input of a fixed value is permitted. Therefore, cells are individually determined in units of columns and selectively redefined (overwritten).

なお、ユーザの入力がされない列(例えば、ソートキー列)にも、演算式は入っているが、そのような列はソートキー等としての管理目的に用いる。ユーザの入力には、金額のほか、勘定コード、勘定科目、得意先名、摘要などの文字情報や日付・時刻、その他のコード、フラグなどもあり、これらを編集・表示する演算式も、本実施形態の状態更新処理(セルの定義情報Sを修復する処理)の対象となる。   It should be noted that arithmetic columns are also included in columns that are not input by the user (for example, sort key columns), but such columns are used for management purposes as sort keys and the like. In addition to the amount of money, user input includes text information such as account code, account item, customer name, description, date / time, other codes, flags, etc. It becomes a target of the state update process (process for repairing the cell definition information S) of the embodiment.

<状態更新処理手段/第4状態更新処理手段(第4状態更新処理)>
次に、図18〜図26を参照して第4状態更新処理手段174について説明する。第4状態更新処理手段174は、複数のシートに亘る処理においてシートの操作がされた場合の第4状態更新処理を行う手段である。
<State update processing means / fourth state update processing means (fourth state update processing)>
Next, the fourth state update processing unit 174 will be described with reference to FIGS. The fourth state update processing unit 174 is a unit that performs a fourth state update process when a sheet is operated in a process over a plurality of sheets.

会計基本処理プログラム21には、複数のシートに亘る処理が含まれる。複数のシートに亘る処理とは例えば、一のシート中のセルに定義されている定義情報Sから他のシート中のセルに定義されている定義情報Sを参照したり、複数のシートにおいて同じ領域(アドレス)に存在するセルの定義情報Sを串刺しで演算するなどの処理である。表計算ソフトウェア16の基本機能では、このような複数のシートに亘る処理を行う際に、シートの追加や差換えがあると、当該シートを参照できない場合があり、会計処理システム10としての信頼性に欠ける場合がある。第4状態更新処理手段174は、会計基本処理プログラム21において複数シートに亘る処理を行う際にシートの追加または差換えの操作があった場合において、当該追加又は差換えのあったシート(特に参照の対象とすべきシート)をもれなく参照の対象とするように、第1状態更新処理手段171による第1状態更新処理も一部に利用しつつ、操作可能対象の状態を更新する。   The accounting basic processing program 21 includes processing over a plurality of sheets. For example, the processing over a plurality of sheets refers to the definition information S defined in the cells in one sheet from the definition information S defined in the cells in one sheet, or the same area in the plurality of sheets. For example, the cell definition information S existing at (address) is calculated by skew. In the basic function of the spreadsheet software 16, when performing processing for a plurality of sheets, if the sheet is added or replaced, the sheet may not be referred to. It may be missing. The fourth state update processing unit 174, when performing processing for a plurality of sheets in the accounting basic processing program 21, performs an operation for adding or replacing a sheet (especially a reference target). The state of the operable target is updated while partially using the first state update processing by the first state update processing unit 171 so that all the sheets to be referred to can be referred to.

まず、追加・差換えのシートを参照するためには、シート名の指定によって指定されたシートを参照の対象となるように特定し、当該シートの名称を取得し、ワークシート上(参照する側のシート上)に定義された演算式(会計基本マクロや再定義マクロに既述された演算式)等から参照可能な形式で保存する必要がある。第4状態更新処理手段174では、これらの処理を連続して自動的に行うように構成されている。   First, in order to refer to an additional / replacement sheet, the sheet specified by specifying the sheet name is specified to be a reference target, the name of the sheet is obtained, and the sheet name (on the reference side) is acquired. It is necessary to save it in a format that can be referred to from the arithmetic expressions defined on the sheet (the arithmetic expressions already described in the accounting basic macro and the redefinition macro). The fourth state update processing means 174 is configured to automatically perform these processes continuously.

シート上のセルを、演算式から参照・特定するための記述方法には、シート名やアドレスを「文字列」として記述する方法とシート名やアドレスを「文字列式」として記述する方法がある。   There are two methods for describing and referencing cells on a sheet from an arithmetic expression: a method for describing a sheet name or address as a “character string” and a method for describing a sheet name or address as a “character string expression”. .

前者は、参照するシートのセルに参照されるセルのシート名やアドレスを記載するにあたり、演算式に直接記述する方法であり、シート名やアドレス参照は「文字列」として記述しなければならない。このため、参照される対象のシートを別のシートに変更したい場合、参照するシートにある演算式を手作業で書き直す必要がある。そのため、シートの追加や差し換えが必要な場合には、多大な労力を必要とする。また、マクロを用いて当該作業を自動化することも可能であるが、マクロが複雑となり実用性が低い。   The former is a method in which the sheet name or address of the cell to be referred to is referred to directly in the arithmetic expression when describing the sheet name or address of the cell to be referred to, and the sheet name or address reference must be described as a “character string”. For this reason, when it is desired to change the sheet to be referenced to another sheet, it is necessary to manually rewrite the arithmetic expression in the sheet to be referenced. Therefore, a great deal of labor is required when it is necessary to add or replace sheets. It is also possible to automate the work using a macro, but the macro becomes complicated and its practicality is low.

一方後者は、演算式内に参照すべきセルを間接的に指定するための関数を用いる。例えばエクセル(登録商標)の場合は、Indirect関数を記述し、関数の引数としてシート名とアドレスを記述する方法である。この場合のシート名やアドレスは、セル参照や関数を含む文字列式によることができる。一例を挙げると、「=Indirect(A1&"!C3")」のような演算式を定義し、「A1」セルに参照されるシートのシート名を書き込めば、任意のシートの「C3」セルの値を参照できる。この場合、「A1&"!C3"」の部分が文字列式となっており、「A1」セルに参照される側のシート名を書き込むマクロを設定すれば、当該マクロを含む一連の流れの中で動的に参照される側のシートを変更できる。   On the other hand, the latter uses a function for indirectly specifying a cell to be referred to in the arithmetic expression. For example, in the case of Excel (registered trademark), an Indirect function is described, and a sheet name and an address are described as function arguments. In this case, the sheet name or address can be a character string expression including a cell reference or a function. For example, if you define an arithmetic expression such as "= Indirect (A1 &"! C3 ") and write the sheet name of the sheet referenced in the" A1 "cell, the" C3 "cell of any sheet Can refer to the value. In this case, the part of “A1 &“! C3 ”” is a character string expression, and if you set a macro to write the sheet name on the side referenced in the “A1” cell, The sheet on the side that is dynamically referenced can be changed.

参照される側のシートのシート名は、セルに文字として入力する方法の他、GUIを活用して画面上に表示された選択肢から選ぶような簡便な指定方法でもよい。例えば表計算ソフトウェア16の選択肢を表示する機能としてドロップダウンリスト等のツールを用いてもよい。   The sheet name of the sheet to be referred to may be a simple designation method such as selecting from the options displayed on the screen using the GUI, in addition to the method of inputting characters in the cells. For example, a tool such as a drop-down list may be used as a function for displaying the options of the spreadsheet software 16.

また、オウン・コードによりGUI画面を定義し、参照される側のシートを一括で差換えたり、戻したりの管理ができる機能を持たせてもよい。その場合、図示は省略するが、例えば、参照する側のシート(損益計算シート、日別残高シートのいずれか)で、ユーザが「A1」セルをダブルクリックすると、GUI画面が現れる。GUI画面にはドロップダウンリストが2つ定義されており、それぞれ、経費、売上・仕入(これらが主に、差換え機能の対象となる)の二つのシートの参照すべき版(例えば、最新版)を選ぶ機能を担っている。ユーザがドロップダウンリスト(例えば「経費」)をクリックすると、ブックレベル範囲名「g経費」を持つシートのシート名が先頭に、シートレベル範囲名「g経費」を持つシートのシート名が、それに続いて一覧で表示される。ユーザが参照したい版のシート名を選ぶと、GUI画面から起動されるマクロが損益計算シート、日別残高シートの両方のシートの参照先シート名欄30に、選択したシートのシート名を複写する。   In addition, a GUI screen may be defined by an own code, and a function may be provided that can manage the replacement or return of the referenced sheet at once. In that case, although illustration is omitted, for example, when the user double-clicks the “A1” cell in the sheet on the reference side (either the profit and loss calculation sheet or the daily balance sheet), the GUI screen appears. Two drop-down lists are defined in the GUI screen, and the versions to be referred to (for example, the latest version) of the two sheets of expense, sales and purchase (these are mainly the targets of the replacement function), respectively. ) Is selected. When the user clicks on a drop-down list (for example, “expense”), the sheet name of the sheet having the book level range name “g expense” comes first, and the sheet name of the sheet having the sheet level range name “g expense” It is then displayed in a list. When the user selects a sheet name of a version to be referred to, a macro activated from the GUI screen copies the sheet name of the selected sheet to the reference sheet name column 30 of both the profit and loss calculation sheet and the daily balance sheet. .

この方法によれば、ユーザによってシート名が変更された場合や、新規にシートが追加された場合、あるいは他のファイル等から移植したシートを参照したい場合も、それらを一連の手順として可能となる。   According to this method, even when the sheet name is changed by the user, when a new sheet is added, or when it is desired to refer to a transplanted sheet from another file or the like, it becomes possible as a series of procedures. .

そこで、本実施形態ではシート名の指定によって指定されたシートを参照・特定する方法として、シート名を「文字列式」として記述し、参照されるシートを再定義マクロで動的に指定する方法を採用した。   Therefore, in this embodiment, as a method for referring to and specifying a sheet specified by specifying a sheet name, a method in which the sheet name is described as a “character string expression” and the referenced sheet is dynamically specified by a redefinition macro. It was adopted.

次に、シートを特定する方法について説明する。表計算ソフトウェア16の基本機能として、シートを特定する方法は例えば、参照するシート名の指定による方法、参照するシートのシート・タブが左から数えて何番目に位置するかを指定する方法、CodeNameによって指定する方法、シート中に特定のオブジェクト(目印)を設けることによって指定する方法などがある。   Next, a method for specifying a sheet will be described. As a basic function of the spreadsheet software 16, for example, a method for specifying a sheet is, for example, a method for specifying a sheet name to be referred to, a method for specifying the position of a sheet tab of a sheet to be referenced from the left, CodeName There are a method of designating by a method, a method of designating by providing a specific object (mark) in the sheet, and the like.

本実施形態では、マクロ内で動的にシート名を指定するために、シート中に特定のオブジェクト(目印)を設けることによって指定する方法を採用する。この方法によれば、シートの追加時および差し換え時に、特段の操作をしなくても、追加・差し換えされたシートを参照でき、また、ユーザがシート名を変更した場合であっても、同じシートを参照し続けることができる。   In the present embodiment, in order to dynamically specify a sheet name within a macro, a method of specifying a specific object (mark) in the sheet is adopted. According to this method, when a sheet is added or replaced, the added / replaced sheet can be referred to without any special operation, and the same sheet can be used even when the user changes the sheet name. You can continue to see.

そして、シート中に特定のオブジェクトを設ける方法としては、セル範囲名やコメントを用いる方法、特定のセル(例えば、「A1」セルなど)に特定の文字を定義する方法、あるいは特定のセルの書式を特定の形(例えば、罫線の色指定)にする方法などが挙げられる。本実施形態では、ユーザの不用意な操作があっても影響が及びづらく、マクロの定義が比較的単純であるという理由から、オブジェクトとしてセル範囲名を採用することとした。   As a method of providing a specific object in a sheet, a method using a cell range name or a comment, a method of defining a specific character in a specific cell (for example, “A1” cell), or a format of a specific cell And a specific shape (for example, ruled line color designation). In the present embodiment, the cell range name is adopted as the object because the influence of the user's careless operation is hard to be affected and the definition of the macro is relatively simple.

すなわち、第4状態更新処理手段174では、参照される側のシートの特定とそのシート名の取得を、以下の方法により行う。   That is, the fourth state update processing unit 174 performs identification of the referenced sheet and acquisition of the sheet name by the following method.

参照される側のシートを特定するには、当該シートの1または複数のセルにセル範囲名を設定し、これを利用する。例えば、一のシートから他のシートを参照する際、参照される側のシートに差し換えがあった場合に参照される側のシートを特定するには、参照される側のシートに特定のセル範囲名を設定する。シートの新旧で差換える場合、一般的には当該シートを複写して名称を変更する。つまりこの場合、名称の異なる経費シートが複数存在することになる。このような新旧の経費シートから、目的となる一つを特定するために、本実施形態ではブックレベルでのセル範囲名を利用する。   In order to specify the sheet on the reference side, a cell range name is set for one or a plurality of cells of the sheet, and this is used. For example, when referring to another sheet from one sheet, if the referenced sheet is replaced, the specified cell range is specified in the referenced sheet. Set the name. When a sheet is replaced with a new one, the name is generally changed by copying the sheet. That is, in this case, there are a plurality of expense sheets with different names. In this embodiment, the cell range name at the book level is used in order to specify one target from the new and old expense sheets.

具体的には、例えば、経費シートを参照される側のシートとした場合、経費シート内の1または複数のセルに例えば、「g経費」という名称のセル範囲名を設定する。そしてセル範囲名「g経費」が設定されている経費シートが最新の経費シートであるとして参照の対象とする。シート差し換えは一のシートを特定するため、この場合にはブックレベルでのセル範囲名を利用する。   Specifically, for example, when an expense sheet is used as a sheet to be referred to, a cell range name of “g expense” is set in one or a plurality of cells in the expense sheet. Then, the expense sheet in which the cell range name “g expense” is set is referred to as the latest expense sheet. Since sheet replacement specifies one sheet, in this case, a cell range name at the book level is used.

また、例えば、串刺し演算(集計)の場合には、対象シート内の1または複数のセルに「n経費」という名称のセル範囲名を設定し、当該セル範囲名を用いて串刺し演算(集計)の対象シートを特定する。串刺し演算は複数のシートを対象にするため、この場合にはシートレベルでのセル範囲名を利用する。この範囲名はシートに属するオブジェクトと見ることができ、シートの複写時にはシートと同時に複写される。その性質を利用し、ブックレベル範囲名と合わせて、シートを特定する目印に使用している。     Further, for example, in the case of skewering calculation (aggregation), a cell range name named “n expense” is set in one or a plurality of cells in the target sheet, and skewering calculation (aggregation) is performed using the cell range name. Specify the target sheet. Since the skew calculation is performed on a plurality of sheets, the cell range name at the sheet level is used in this case. This range name can be regarded as an object belonging to the sheet, and is copied simultaneously with the sheet when the sheet is copied. Utilizing this property, it is used together with the book level range name as a mark for identifying the sheet.

ここで、「セル範囲名」について説明する。「セル範囲名」は既述のとおり、セル参照を素早くするために設定する名称(文字列)であり、1又は複数の範囲のセルと紐づけることができる。セル範囲名とセルを紐づけし、当該セルをアドレスではなくセル範囲名で参照することによって、列や行の追加・削除があっても、マクロや演算式の修正が不要となる。   Here, “cell range name” will be described. As described above, the “cell range name” is a name (character string) set for quick cell reference, and can be associated with one or more ranges of cells. By associating a cell range name with a cell and referring to the cell not by an address but by a cell range name, it is not necessary to modify a macro or an arithmetic expression even if a column or row is added or deleted.

また、エクセル(登録商標)の「セル範囲名」には参照可能な範囲(変数の適用範囲、スコープ、有効範囲)の広さの違いで、次の種類がある。
・マクロと、ブック(ファイル)内の全てのシート内の演算式から参照可能なもの(これを以下の説明では「ブックレベル範囲名」と称する)。
In addition, the “cell range name” of Excel (registered trademark) has the following types depending on the difference in the range of the referenceable range (variable application range, scope, effective range).
Macros and those that can be referred to from arithmetic expressions in all sheets in the book (file) (this is referred to as “book level range name” in the following description).

「ブックレベル範囲名」は、シート名の指定のみでシートを跨いだセル参照ができるため、本実施形態ではセルの指定のほか、シートを指定する場合にも応用している。
・マクロと、単一のシート内の演算式(参照元シートと参照先シートが同一の場合に限る)から参照可能なもの(これを以下の説明では「シートレベル範囲名」と称する)。
The “book level range name” can be used to refer to a cell across sheets only by specifying a sheet name. Therefore, in this embodiment, in addition to specifying a cell, the “book level range name” is also applied to specifying a sheet.
A macro and an arithmetic expression in a single sheet (only when the reference sheet and the reference sheet are the same) can be referred to (this will be referred to as “sheet level range name” in the following description).

「シートレベル範囲名」は、その範囲名の紐づけされたセルのあるシート内の、全ての演算式から参照できる。つまり、基本的にシート内での演算に活用すべきものだが、シート名の指定を付加してこれを指定すれば、シートを跨いだセル参照もできる。本実施形態ではこれを、シート内でのセル指定を簡便に行うために使用している。   The “sheet level range name” can be referred to from all the arithmetic expressions in the sheet having the cell associated with the range name. In other words, it should basically be used for calculations within a sheet, but if a sheet name is specified and this is specified, cells can be referenced across sheets. In the present embodiment, this is used in order to easily specify cells in the sheet.

なお、上記の「ブックレベル範囲名」および「シートレベル範囲名」の他に、マクロと、単一のシート内の演算式(参照元と参照先が異なる)から参照可能なものもあるが、これについては本実施形態では利用していないため、説明を略す。   In addition to the above-mentioned “book level range name” and “sheet level range name”, there are macros and expressions that can be referenced from a single sheet arithmetic expression (reference source and reference destination are different). Since this is not used in the present embodiment, the description is omitted.

なお、本実施形態における「シートレベル」は例えば、「モジュールレベル」、「局所レベル」、「ローカルレベル」等と捉えることもでき、「ブックレベル」は例えば、「パブリックレベル」、「大域レベル」、「グローバルレベル」等と捉えることもできる。   Note that the “sheet level” in the present embodiment can also be regarded as, for example, “module level”, “local level”, “local level”, and the “book level” is, for example, “public level”, “global level”. It can also be regarded as “global level”.

また、本実施形態では、「範囲名の定義」と記載しているが、これは「名前付きセル範囲の定義」ということもできる。   In this embodiment, “range name definition” is described, but this can also be referred to as “named cell range definition”.

具体的に、エクセル(登録商標)の機能として、シートを表示した状態で対話型UI(ウィンドウ表示)を利用してセル範囲名を定義すると、「Thisworkbook.Names」オブジェクト(「Thisworkbookオブジェクトの直下のNamesオブジェクト)にセル範囲名の一覧が保存される。セル範囲名の定義のためには、エクセル(登録商標)には名前ボックスNBなどのGUI画面が提供されているが、セル範囲名の定義や削除を一連の流れとして行うには、専用の画面を作る(オウン・コード)とよい。   Specifically, as a function of Excel (registered trademark), when a cell range name is defined using an interactive UI (window display) in a state where a sheet is displayed, a “Thisworkbook.Names” object (directly under the “Thisworkbook object”) A list of cell range names is stored in the “Names object.” In order to define cell range names, a GUI screen such as a name box NB is provided in Excel (registered trademark). To perform a series of deletion and deletion, it is recommended to create a dedicated screen (own code).

その場合、図示は省略するが、参照する側のシート(損益計算シート、日別残高シートのいずれか)の「A1」セルを、ユーザがダブルクリックすると、GUI画面が現れる。GUI画面には現在ファイル内に定義されている範囲名(参照先セルの属するシートのシート名と範囲名の併記)と、「ブックレベル・シートレベル」の区別をするチェックボタンが、一覧として表示されている。範囲名が多数の時は、縦スクロールバーも現れる。ユーザが範囲名を選択し、その範囲名の隣のチェックボックスをOFFからONに変更すると、GUI画面から起動するマクロがその範囲名をブックレベルに変更する。同名の範囲名があるときは、選択されていない同名の範囲名は皆シートレベルに変更する。ユーザが範囲名を選択し、その範囲名の隣のチェックボックスをONからOFFに変更すると、GUI画面から起動するマクロがその範囲名をシートレベルに変更する。   In that case, although illustration is omitted, when the user double-clicks the “A1” cell of the sheet on the reference side (either the profit and loss calculation sheet or the daily balance sheet), the GUI screen appears. The GUI screen displays a list of range names currently defined in the file (a combination of the sheet name and range name of the sheet to which the reference cell belongs) and “book level / sheet level” as a list. Has been. When there are many range names, a vertical scroll bar also appears. When the user selects a range name and changes the check box next to the range name from OFF to ON, the macro activated from the GUI screen changes the range name to the book level. When there is a range name with the same name, all the range names with the same name that are not selected are changed to the sheet level. When the user selects a range name and changes the check box next to the range name from ON to OFF, the macro activated from the GUI screen changes the range name to the sheet level.

ブックレベル範囲名を定義した場合、NamesオブジェクトのNameプロパティの値としてにはブックレベル範囲名のみが設定されるが、これにシート名は含まれない。参照先のセルは、同オブジェクト内のRefersToプロパティに、「シート名+アドレス」の形式で記述することにより紐づけされる。   When the book level range name is defined, only the book level range name is set as the value of the Name property of the Names object, but this does not include the sheet name. The cell of the reference destination is linked to the RefersTo property in the object by describing it in the form of “sheet name + address”.

一方、シートレベル範囲名を定義した場合、NamesオブジェクトのNameプロパティの値としてシート名が含まれる。参照先セルは、同オブジェクト内のRefersToプロパティに、「シート名+アドレス」の形式で記述することにより紐づけされる。   On the other hand, when the sheet level range name is defined, the sheet name is included as the value of the Name property of the Names object. The reference cell is linked to the RefersTo property in the object by describing it in the form of “sheet name + address”.

そして、ブックレベル範囲名は、1つのブックにつき1個のみ設定でき、別のシートにあってもそのセル範囲名で指定できるという、ブック全体に通用するセル範囲名となる。一方、シートレベル範囲名は、当該シートのみで有効なセル範囲名であり(シート内で一個ずつ同名のものを定義でき)、ブック内ではシートの数と同数、これを定義できる。また、異なるシートに同じセル範囲名を設定することができる。そしてブックレベル範囲名と、同名のシートレベル範囲名は、同一シート内では同時に定義することはできない。   Then, only one book level range name can be set for one book, and the cell range name can be specified by the cell range name even in another sheet. On the other hand, the sheet level range name is a valid cell range name only for the sheet (one with the same name can be defined in the sheet), and the same number as the number of sheets can be defined in the book. The same cell range name can be set for different sheets. The book level range name and the sheet level range name with the same name cannot be defined simultaneously in the same sheet.

このようにして第4状態更新処理では、シートを特定可能とし、表計算ソフトウェア16の基本機能によって特定したシートを取得する。   In this way, in the fourth state update process, the sheet can be specified, and the sheet specified by the basic function of the spreadsheet software 16 is acquired.

次に、特定したシート名を、演算式から参照可能な形で保存する方法(先に説明したIndirect関数に引数として、シート名を与える方法)ついては、シート名をセルに値として書き込む方法を採用する。また本実施形態では、特定したシート名の保存をする場合、参照される(データを保管している)側のシートのセルに保存する方法と、シート名を保存するための特別のシートを定義する方法を採用する。これらは、シートの操作内容によって選択される。すなわち、一のシートから他のシートを参照している環境において、参照される側のシートを(例えば、新旧で)差換える(そのために参照される側のシートが複数存在する)場合には、シート名を参照される側のシートにセルの値として保存する方法が選択される、また、複数シートの串刺し演算処理の場合にはシート名を保存するための特別のシートを定義する方法が選択される。   Next, for the method of saving the specified sheet name in a form that can be referenced from the arithmetic expression (the method of giving the sheet name as an argument to the Indirect function described earlier), the method of writing the sheet name as a value to the cell is adopted. To do. Also, in this embodiment, when saving the specified sheet name, a method of saving in the cell of the sheet on the side to which reference is made (data is stored) and a special sheet for saving the sheet name are defined. Adopt the method to do. These are selected depending on the operation content of the sheet. That is, in an environment in which one sheet is referred to another sheet, when the referred side sheet is replaced (for example, old and new) (for this reason, there are a plurality of referred side sheets), The method for saving the sheet name as a cell value in the referenced sheet is selected, and in the case of multi-sheet skewing calculation processing, the method for defining a special sheet for saving the sheet name is selected. Is done.

なお、シート名の保存方法は、これに限らず、例えば、参照する(データを活用する)側のシートにセルの値として保存する方法、や、セル範囲名のリスト(Namesオブジェクト)に書き込む方法、セル範囲を与えるとそのセルの属するシート名を返す仕組み(関数、プロパティ、ユーザ定義関数、マクロなど)を利用する方法などであってもよい。   Note that the method for saving sheet names is not limited to this, for example, a method for saving as a cell value in a sheet on the side of reference (utilizing data), or a method for writing to a list of cell range names (Names object) A method using a mechanism (function, property, user-defined function, macro, etc.) that returns a sheet name to which the cell belongs when a cell range is given may be used.

このように第4状態更新処理では、参照されるシートを、セル範囲名を利用して特定し、特定したシートのシート名を、演算式から参照可能な形で保存する。   As described above, in the fourth state update process, the sheet to be referred to is specified using the cell range name, and the sheet name of the specified sheet is stored in a form that can be referred to from the arithmetic expression.

次に、参照されるシートを特定する方法や、演算式でのシートの指定方法について具体的に説明する。第4状態更新処理では、以下に説明するシートの構成(設定)を含み、当該構成によって、少なくとも、シートの差し換えの操作がされた場合と、複数シートの串刺し演算の場合に、マクロ内から動的にシートを指定し、参照されるシートの更新をすることができる。以下、この2つの場合について説明する。   Next, a method for specifying a sheet to be referred to and a method for specifying a sheet in an arithmetic expression will be specifically described. The fourth state update process includes a sheet configuration (setting) described below, and at least when a sheet replacement operation is performed according to the configuration, and when a plurality of sheets are skewed, the operation is performed from within the macro. A sheet can be specified and the referenced sheet can be updated. Hereinafter, these two cases will be described.

[1.シートの差し換え操作がある場合のシートの指定]
シートの差し換え操作とは、一のシートから参照されるシートに例えば新旧の差し換えがあり、そのために類似したシートがファイル(ワークブック)内に複数存在している(新版、旧版の混在など)状態での操作である。
[1. Specifying a sheet when there is a sheet replacement operation]
The sheet replacement operation means that, for example, there is a replacement of the old and new sheets referenced from one sheet, and for this reason, there are multiple similar sheets in the file (workbook) (a mixture of new and old versions). Operation.

ここでは、参照する側のシート上の演算式から、意図したシートを一意に特定し、そのシートのセルの値を取得する方法を説明する。表計算ソフトウェア16にはシートを一意に特定する方法があるが、その方法では新旧差換えの操作が容易でない。その方法によると、参照する側のシートで全ての演算式を書き換える必要が生ずる。この方法は、新旧差換えを簡便に行うことができ、かつ、シートを一意に特定する手段であるが、この手段によるとユーザがシート名を変更した時には、不具合が生じる。表計算ソフトウェア16の自動修正機能には、ユーザがGUI経由で参照される側のシート名を変更した場合にも、参照されるシートを一意に保つ仕組み(以下「シート参照の維持機能」と呼ぶ)がある。しかし本実施形態における状態更新処理での処理を前提にすると、表計算ソフトウェア16に組み込まれたシート参照の維持機能の対象範囲から外れてしまう。   Here, a method of uniquely specifying an intended sheet from an arithmetic expression on a sheet on the reference side and acquiring a cell value of the sheet will be described. The spreadsheet software 16 has a method of uniquely specifying a sheet, but it is not easy to replace the old and new with this method. According to this method, it is necessary to rewrite all arithmetic expressions on the sheet on the reference side. This method is a means for easily replacing the old and new, and is a means for uniquely specifying the sheet, but this means causes a problem when the user changes the sheet name. The automatic correction function of the spreadsheet software 16 is a mechanism that keeps a referenced sheet unique even when the user changes the name of the sheet that is referred to via the GUI (hereinafter referred to as a “sheet reference maintenance function”). ) However, if the process in the state update process in the present embodiment is assumed, the sheet reference maintenance function incorporated in the spreadsheet software 16 falls outside the target range.

そのため、第4状態更新処理手段174では、新旧差換えを簡便に行うための機能とともに、それに合わせたシート参照の維持機能を実現している。   For this reason, the fourth state update processing unit 174 realizes a function for easily replacing the old and new, and a sheet reference maintaining function corresponding to the function.

図18を参照して、第4状態更新手段174で用いるシート構成、すなわち、参照する(データを活用する)側のシート(例えば、「損益計算シート」)において他のシート(参照されるシート、例えば「経費シート」)のデータを参照するための構成の一例を説明する。同図では、参照する側のシートとして損益計算シート(同図(A))を、参照される側のシートとして経費シート(同図(B)、同図(C))を示している。   Referring to FIG. 18, the sheet configuration used in the fourth state update unit 174, that is, the sheet on the side of reference (utilizing data) (for example, “profit / loss calculation sheet”), other sheets (referenced sheets, For example, an example of a configuration for referring to data of “expense sheet” will be described. In the figure, a profit and loss calculation sheet (FIG. (A)) is shown as a reference side sheet, and an expense sheet (FIGS. (B) and (C)) is shown as a reference side sheet.

同図(B)を参照して、参照される側のシート(例えば、「経費シート」)では以下の設定を行う。まず、参照される側のシート(例えば、「経費シート」)内の任意のセルに「ブックレベル範囲名」を定義しておく。これは、任意のセル(例えば「C2」セルなど)を選択し、名前ボックスNBに名前(例えば「g経費」など)を入力することにより、ブックレベル範囲名として登録される。   Referring to FIG. 5B, the following settings are made on the referenced sheet (for example, “expense sheet”). First, a “book level range name” is defined in an arbitrary cell in the referenced sheet (for example, “expense sheet”). This is registered as a book level range name by selecting an arbitrary cell (eg, “C2” cell) and entering a name (eg, “g expense”) in the name box NB.

ブックレベル範囲名は、ワークブック内のシートの中から、目的のシートを特定するための手段として使用できる。目的のシートを特定する手段としては、一般にはシート名によってシートを特定する方法が多用されているが、それよりも柔軟に目的のシートを特定することができる。   The book level range name can be used as a means for specifying the target sheet from the sheets in the workbook. As a means for specifying the target sheet, generally, a method of specifying the sheet by the sheet name is frequently used, but the target sheet can be specified more flexibly than that.

また、参照される側のシートのシート名(自身のシート名)を取得して、シート名のセル(ブックレベル範囲名と紐づけられた「C2」セル)にシート名を上書きするマクロを定義する。当該マクロは、再定義マクロに含まれ、参照される側のシートから他のシートに移動する際に実行される。   Also, a macro is defined that acquires the sheet name of the referenced sheet (its own sheet name) and overwrites the sheet name in the sheet name cell (cell “C2” linked to the book level range name). To do. The macro is included in the redefinition macro and is executed when moving from the referenced sheet to another sheet.

つまりブックレベル範囲名「g経費」と紐づけられた「C2」セルは、そのセルの属するシートのシート名が定義されたセル(シート名のセル)となる。   In other words, the “C2” cell associated with the book level range name “g expense” is a cell (sheet name cell) in which the sheet name of the sheet to which the cell belongs is defined.

例えば、同図(B)では、「C2」セルの内容は、そのセルの属する「経費シート」のシート名である文字列(シートタブの文字列)「経費」である。そして、同図(C)に示すように、ユーザがこの「経費シート」のシート名を「経費」から「経費2908」に変更し(複写ではなく、シートの名称変更)、他シートの移動をし、再度、経費シートに戻ると、「C2」セルにシート名を上書きする再定義マクロによって「C2」セルの内容が更新される。このシート名を上書きする再定義マクロについては、後に詳述する。   For example, in FIG. 5B, the content of the “C2” cell is a character string (character string of the sheet tab) “expense” which is the sheet name of the “expense sheet” to which the cell belongs. Then, as shown in FIG. 5C, the user changes the sheet name of this “expense sheet” from “expense” to “expense 2908” (name change of sheet, not copying), and moves other sheets. Then, when returning to the expense sheet again, the contents of the “C2” cell are updated by a redefinition macro that overwrites the sheet name in the “C2” cell. The redefinition macro for overwriting the sheet name will be described in detail later.

すなわち、再定義マクロは、DeActivateイベントを監視し、DeActivateイベントの発生を契機として、参照される側のシート(例えば、「経費シート」)のシート名(自身のシート名、変更後の「経費2908」)を取得して、シート名のセル(ブックレベル範囲名と紐づけられた「C2」セル)に、取得したシート名を上書きする。これにより経費2908シートの「C2」セルに、変更後のシート名(例えば、「経費2908」)が上書きされる(同図(C))。なお、この場合、「C2」セルは、例えば2行目の全体を非表示にするなどし、ユーザによる不用意な更新がされないようにしておく。   In other words, the redefinition macro monitors the DeActivate event, and triggered by the occurrence of the DeActivate event, the sheet name of the reference side sheet (for example, “expense sheet”) (its own sheet name, “expense 2908 after change”) ]) And the obtained sheet name is overwritten on the cell of the sheet name ("C2" cell linked to the book level range name). As a result, the sheet name after the change (for example, “expense 2908”) is overwritten in the “C2” cell of the expense 2908 sheet ((C) in the figure). In this case, the “C2” cell is hidden by, for example, the entire second row so that the user does not inadvertently update it.

同図(B),同図(C)に示すように「C2」セルを紐づけている範囲名は、ワークブック内で一意のブックレベル範囲名「g経費」である。ブックレベル範囲名が付されているシートは、シート名の変更時には、「g経費」と紐づけられた「C2」セルの内容(値)のみが変更される。すなわちここでは文字列「経費」が「経費2908」に変更される。   As shown in FIGS. 2B and 2C, the range name associated with the “C2” cell is a book level range name “g expense” unique in the workbook. For a sheet with a book level range name, only the contents (values) of the “C2” cell associated with “g expense” are changed when the sheet name is changed. That is, here, the character string “expense” is changed to “expense 2908”.

一方、参照する側のシート(例えば、「損益計算シート」)におけるデータの参照では、同図(A)に示すように、参照される側のシートのシート名を定義(入力、表示)する参照先シート名欄30を設ける。また参照するデータについては、参照先シートで参照すべきセルを間接的に指定するための関数を用いて特定する。   On the other hand, in the reference of data in the sheet on the reference side (for example, “Profit / Loss Calculation Sheet”), as shown in FIG. 5A, the reference that defines (inputs and displays) the sheet name of the reference side sheet A destination sheet name column 30 is provided. The data to be referred to is specified by using a function for indirectly specifying the cell to be referred to in the reference destination sheet.

例えば、同図(A)に示すように、参照する(データを活用する)側のシートの任意のセル(例えば、「K5」セル)などを、参照される側のシート名を定義する参照先シート名欄30とする。   For example, as shown in FIG. 3A, an arbitrary cell (for example, “K5” cell) of a reference side (utilizing data) sheet is referred to as a reference destination for defining a sheet name on the reference side. The sheet name column 30 is used.

そして、参照先シート名欄30には、参照されるシート(例えば、「経費シート」)のブックレベル範囲名を用いて、「=g経費」と定義(記載)する。これにより、ブックレベル範囲名として「g経費」が付されたシート、つまりこの例では、参照されるシートのシート名を取得できる。また、参照先シート名欄30は、ユーザによる入力も受け付ける。   The reference destination sheet name column 30 defines (describes) “= g expense” using the book level range name of the referenced sheet (for example, “expense sheet”). As a result, the sheet with “g expense” added as the book level range name, that is, in this example, the sheet name of the referenced sheet can be acquired. The reference destination sheet name field 30 also accepts input by the user.

なお、参照する側のシートは、参照先シート名欄30に定義されたシート名を参照するように構成されており、ユーザは参照先シート名欄30に任意のシート名を入力することで、参照する側のシートの参照先を変更することもできる。   The sheet on the reference side is configured to refer to the sheet name defined in the reference destination sheet name field 30, and the user inputs an arbitrary sheet name in the reference destination sheet name field 30, It is also possible to change the reference destination of the sheet on the reference side.

更に、参照先シート名欄30の値(定義情報S)は、ユーザによる固定値の入力を受付ける第3状態更新手段173によって、あるいはこれと同様の更新を第4状態更新手段174に備えることによって、再定義情報Rでの再定義も可能に構成する。   Further, the value (definition information S) in the reference destination sheet name field 30 is obtained by the third state updating unit 173 that accepts the input of a fixed value by the user, or by providing the fourth state updating unit 174 with the same update. The redefinition information R can be redefined.

すなわち、参照する側のシートに再定義情報設定領域25を設ける。再定義情報設定領域25は、例えば、参照先シート名欄30と同列の2行目(例えば「K2」セル)などとし、再定義情報Rとして参照されるシート(例えば「経費シート」)のブックレベル範囲名を活用した演算式(例えば「=g経費」)を定義する。   That is, the redefinition information setting area 25 is provided on the sheet on the reference side. The redefinition information setting area 25 is, for example, the second row (for example, “K2” cell) in the same row as the reference destination sheet name column 30 and the book of the sheet (for example, “expense sheet”) referred to as the redefinition information R. Define an expression that uses the level range name (for example, “= g expense”).

また、再定義マクロとして、参照先シート名欄30に同列の再定義情報設定領域25に定義されている再定義情報を参照先シート名欄30にコピーする命令を定義し、これを実行することによって、参照先シート名欄30には、再定義情報Rとして保存されている演算式が、所定のタイミングで再定義されるようになる。   Also, as a redefinition macro, a command for copying redefinition information defined in the redefinition information setting area 25 in the same row to the reference destination sheet name column 30 is defined and executed. Thus, the arithmetic expression stored as the redefinition information R is redefined in the reference destination sheet name column 30 at a predetermined timing.

また、参照する側のシートで、参照される側のシートのデータを参照する場合には、参照すべきセルを間接的に指定するための関数を用いる。例えばエクセル(登録商標)の場合は、「InDirect関数」によって参照先のセルアドレスを文字列又は文字列式として記載できる。これにより、あるシートから他のシートへの参照を定義するのに、参照先のアドレスの定義中にセル参照や関数を含めることができる。
文字列によるアドレス指定の例としては、「=InDirect("経費!F12")」により、経費シートの「F12」セルを参照する演算式などがある。文字列式による例としては、経費シートに定義したブックレベル範囲名を用いて「=InDirect(InDirect("g経費")&"!F12")」とする演算式などがある。これはInDirect関数に引数として、InDirect関数を使用し、関数の入れ子にした例である。この二つの例は結果的に同じ値を返す。
Further, when referring to the data on the referenced sheet on the referencing sheet, a function for indirectly specifying the cell to be referred to is used. For example, in the case of Excel (registered trademark), the cell address of the reference destination can be described as a character string or a character string expression by “InDirect function”. Thereby, in order to define a reference from one sheet to another sheet, a cell reference or a function can be included in the definition of the reference destination address.
As an example of addressing by a character string, there is an arithmetic expression that refers to the “F12” cell of the expense sheet by “= InDirect (“ expense! F12 ”)”. As an example of a character string expression, there is an arithmetic expression such as “= InDirect (InDirect (“ g expense ”) &“! F12 ”)” using a book level range name defined in the expense sheet. This is an example of using the InDirect function as an argument to the InDirect function and nesting the function. The two examples result in the same value.

また、参照されるシートのシート名をセルに定義することもできる。すなわち、この例では、参照先シート名欄30(「K5」セル)を用いて、参照する側の任意のセル(例えば、「N12」セルなど)において「=InDirect(K5&"!F12")」と定義することにより、損益計算シートの「N12」セルにおいて、損益計算シートの参照先シート名欄30(「K5」セル)に定義されたシート名を有するシート(経費シート)の「F12」セルが参照できる。この例においては、「K5」部分がセル参照である。   In addition, the sheet name of the referenced sheet can be defined in the cell. That is, in this example, “= InDirect (K5 &“! F12 ”)” is used in an arbitrary cell (for example, “N12” cell) on the reference side using the reference destination sheet name column 30 (“K5” cell). In the “N12” cell of the profit and loss calculation sheet, the “F12” cell of the sheet (expense sheet) having the sheet name defined in the reference sheet name column 30 (“K5” cell) of the profit and loss calculation sheet Can be referred to. In this example, the “K5” part is a cell reference.

第4状態更新手段174は、このように設定されたシートを用いて、複数のシート間に亘る操作を行う場合に必要に応じて第4状態更新処理を行う。以下これについて更に説明する。   The fourth state update unit 174 performs a fourth state update process as necessary when an operation is performed between a plurality of sheets using the sheet set in this way. This will be further described below.

[1−1.シートの一時的な差し換えの場合]
図19および図20は、参照される側のシートを一時的に差し換えて、これを参照する側のシートに反映させる場合の第4状態更新処理の例を示す図であり、参照される側のシートとして経費シート、参照する側のシートとして損益計算シートを用いる場合の例である。
[1-1. For temporary replacement of sheets]
19 and 20 are diagrams illustrating an example of the fourth state update process in the case where the sheet on the reference side is temporarily replaced and reflected on the sheet on the reference side. This is an example in which an expense sheet is used as a sheet and a profit and loss calculation sheet is used as a sheet on the reference side.

図19(A)を参照して、損益計算シートの例えば「K5」セルは、参照先シート名欄30であり、内容は経費シートのブックレベル範囲名を活用した演算式(例えば、「=g経費」)が定義されている。また、図18の場合と同様に、参照先シート名欄30は、ユーザによる入力も可能に構成されているとともに、再定義情報Rによる再定義も可能である。すなわち、参照先シート名欄30と同列の例えば2行目(「K2」セル)などに設けられた再定義情報設定領域25に保存されている再定義情報R(この例では演算式(例えば「=g経費」))を、ユーザの一定の操作(値削除など)により、「K5」セルに上書きするように構成されている。   Referring to FIG. 19A, for example, the “K5” cell of the profit and loss calculation sheet is the reference destination sheet name column 30, and the content is an arithmetic expression using the book level range name of the expense sheet (for example, “= g Expense ") is defined. Similarly to the case of FIG. 18, the reference destination sheet name column 30 is configured to be input by the user and can be redefined by the redefinition information R. In other words, the redefinition information R (in this example, an arithmetic expression (for example, “K”) is stored in the redefinition information setting area 25 provided in, for example, the second row (“K2” cell) in the same row as the reference destination sheet name field 30. = G expense ")) is overwritten in the" K5 "cell by a certain operation of the user (such as value deletion).

ここでは、参照される側のシート(経費シート)が複数ある場合を例に説明する。この例では、同図(B)、同図(C)に示すように、ユーザが経費シートを複写した結果、シート名が「経費111」であるシートとシート名が「経費222」であるシートが存在している。そしてシート名が「経費222」のシートについて、H29年11月の入金(破線で示す欄)の値を変更している。   Here, a case where there are a plurality of referenced sheets (expense sheets) will be described as an example. In this example, as shown in FIGS. 6B and 6C, as a result of the user copying the expense sheet, the sheet whose name is “expense 111” and the sheet whose name is “expense 222” are shown. Is present. Then, for the sheet whose sheet name is “expense 222”, the value of the deposit in November 2017 (the column indicated by the broken line) is changed.

ここで、エクセル(登録商標)の基本機能として、セル範囲名を有するシートを複写した場合は、当該セル範囲名も複写されるが、当該セル範囲名がブックレベル範囲名のときは、複写先ではシートレベル範囲名に置き換わるようになっている。つまり複写元のシート(経費111シート)で当該セル範囲名がブックレベル範囲名であったとしても、複写先のシート(経費222シート)では当該セル範囲名はシートレベル範囲名となる。これは、一つのファイル(ワークブック)内には、同名のブックレベル範囲名は一つしか定義できないという、エクセル(登録商標)の仕様によるものである。   Here, as a basic function of Excel (registered trademark), when a sheet having a cell range name is copied, the cell range name is also copied, but when the cell range name is a book level range name, the copy destination Now replaces the sheet level range name. That is, even if the cell range name is the book level range name in the copy source sheet (expense 111 sheet), the cell range name is the sheet level range name in the copy destination sheet (expense 222 sheet). This is due to the specification of Excel (registered trademark) that only one book level range name of the same name can be defined in one file (workbook).

つまりこの例では、ユーザが経費シートを複写した結果、「C2」セルに対してブックレベル範囲名として「g経費」が付されたシート名「経費111」のシートと、シートレベル範囲名として「g経費」が付されたシート名「経費222」のシートとが存在している。   That is, in this example, as a result of copying the expense sheet by the user, the sheet with the sheet name “expense 111” with “g expense” added as the book level range name to the “C2” cell, and the sheet level range name “ There is a sheet having the name “expense 222” with “g expense” attached.

そして上述のとおり、損益計算シートの「K5」セル(参照先シート名欄30)は、経費シートのブックレベル範囲名を活用した演算式(例えば、「=g経費」)が定義されており、これによりブックレベル範囲名として「g経費」が付されたシートが参照される。つまり、参照先シート名欄30に「=g経費」と定義することによって、ブックレベル範囲名として「g経費」が付されたシートが参照される。   As described above, the “K5” cell (reference sheet name column 30) of the profit and loss calculation sheet defines an arithmetic expression (for example, “= g expense”) using the book level range name of the expense sheet. As a result, the sheet with “g expense” attached as the book level range name is referred to. That is, by defining “= g expense” in the reference destination sheet name column 30, a sheet with “g expense” added as the book level range name is referred to.

従ってこの場合、損益計算シートでは同図(A)に示すように、ブックレベル範囲名として「g経費」が付された「経費111」のシートが参照されている。   Therefore, in this case, as shown in FIG. 5A, the profit and loss calculation sheet refers to the sheet of “expense 111” with “g expense” as the book level range name.

この状態で、損益計算シートにおいて、シート名が「経費111」のシート(ブックレベル範囲名「g経費」を持つシート)ではなく、シート名が「経費222」のシート(シート複写により新たに生成されたシート)を参照させる(参照される側のシートを一時的に差し換える)場合の状態更新処理について説明する。   In this state, in the profit and loss calculation sheet, the sheet with the sheet name “expense 111” (the sheet with the book level range name “g expense”) is not the sheet with the expense name “expense 111” (the sheet is newly generated by copying the sheet) The state update process in the case of referring to the sheet (the sheet on the reference side is temporarily replaced) will be described.

ブックレベル範囲名「g経費」を持つシート以外のシートを一時的に参照するには、図20(A)に示すように、ユーザが、損益計算シートの参照先シート名欄30(「K5」セル)に、固定値「経費222」を入力する。これにより、参照先のシートは「経費222」というシート名のシートに変更され、例えば、損益計算シートの任意のセル(例えば、「M8」セルなど)に定義された関数(例えば、「=InDirect($K$5 & "!$M$5")」など)により、「経費222」というシート名のシートのセルの値(前述の例では、「M5」セルの値)を参照できる。   In order to temporarily refer to a sheet other than the sheet having the book level range name “g expense”, as shown in FIG. 20A, the user can refer to the reference sheet name column 30 (“K5”) of the profit and loss calculation sheet. In cell, a fixed value “expense 222” is entered. As a result, the reference sheet is changed to a sheet having the sheet name “expense 222” and, for example, a function (for example, “= InDirect”) defined in an arbitrary cell (for example, “M8” cell) of the profit and loss calculation sheet. ($ K $ 5 & “! $ M $ 5”) ”), the value of the sheet cell of the sheet name“ expense 222 ”(in the above example, the value of the“ M5 ”cell) can be referred to.

また、参照される側のシートを、シート名「経費222」のシートからシート名「経費111」のシートに戻す場合は、同図(B)に示すように参照先シート名欄30の値をクリア(例えば、削除(Delete)Keyの押下)する。   Further, when the sheet on the reference side is returned from the sheet with the sheet name “expense 222” to the sheet with the sheet name “expense 111”, the value in the reference destination sheet name column 30 is changed as shown in FIG. Clear (for example, press the Delete Key).

これにより、同図(C)に示すように第3状態更新手段173によって、参照先シート名欄30のセルが再定義情報設定領域25の再定義情報Rの演算式(例えば、「=g経費」)に再定義される。この演算式の値(ブックレベル範囲名「g経費」と紐づいたセルの値(「経費111」シートのC2セルの値))は、「経費111」であり、参照先シート名欄30のセルの値は「経費111」となる。これにより参照される側のシートは、シート名が「経費111」のシートに戻る。   As a result, as shown in FIG. 5C, the third state update unit 173 causes the cell in the reference destination sheet name column 30 to be an arithmetic expression (for example, “= g expense” of the redefinition information R in the redefinition information setting area 25. )). The value of this arithmetic expression (the value of the cell linked to the book level range name “g expense” (the value of the C2 cell of the “expense 111” sheet)) is “expense 111”. The value of the cell is “expense 111”. As a result, the sheet referred to returns to the sheet whose sheet name is “expense 111”.

[1−2.シートの恒久的な差し換えの場合]
次に、参照される側のシートを恒久的に差し換えて、これを参照する側のシートに反映させる場合の第4状態更新処理について説明する。
[1-2. For permanent replacement of seats]
Next, a description will be given of a fourth state update process in the case where the referenced sheet is permanently replaced and reflected on the referenced sheet.

例えば、図19および図20の場合(「経費111」シート(ブックレベル範囲名「g経費」を持つシート)を複写して、「経費222」を作成した場合)を例に説明する。この例において参照される側のシートを恒久的に差し換える場合には、ユーザが参照される側のシートに付与されている範囲名をシートレベルからブックレベルに変更する。   For example, the case of FIGS. 19 and 20 (in the case where “expense 111” sheet (sheet having the book level range name “g expense”) is copied to create “expense 222”) will be described as an example. In this example, when the referenced sheet is permanently replaced, the range name given to the referenced sheet is changed from the sheet level to the book level.

表計算ソフトウェア16の基本機能として、ブックレベル範囲名をシートレベル範囲名に変更したり、その逆に変更することはできない。そのため、セル範囲名のレベルを変更する場合には、セル範囲名を一旦削除して改めて付与する必要がある。   As a basic function of the spreadsheet software 16, the book level range name cannot be changed to the sheet level range name, or vice versa. Therefore, when changing the level of the cell range name, it is necessary to delete the cell range name once and give it again.

具体的には、複写元の「経費111」というシート名のシート(複写元)に定義されているブックレベル範囲名「g経費」を削除し、「経費222」というシート名のシート上の任意のセル(例えば、「C2」セル)に新たにブックレベル範囲名「g経費」を定義する。   Specifically, the book level range name “g expense” defined in the sheet (copy source) with the sheet name “expense 111” of the copy source is deleted, and an arbitrary on the sheet with the sheet name “expense 222” The book level range name “g expense” is newly defined in the cell (for example, “C2” cell).

そして参照されるシート(「経費222」というシート名のシート)から、他のシートに移動すると、参照されるシートにおいて「DeActivateイベント」が発生する。これを契機として再定義マクロによって、ブックレベル範囲名「g経費」と紐づいたセル(例えば「経費222」というシート名前のシートの「C2」セル)には、そのシート名(「経費222」)が上書きされる。これ以降は、参照される側のシートはシート名「経費222」のシートとなる。   When the sheet being referred to (the sheet having the sheet name “expense 222”) is moved to another sheet, a “DeActivate event” is generated in the referenced sheet. With this as a trigger, the sheet name (“expense 222”) is assigned to the cell associated with the book level range name “g expense” (for example, the “C2” cell of the sheet with the sheet name “expense 222”) by the redefinition macro. ) Is overwritten. Thereafter, the sheet on the side to be referred to is the sheet with the sheet name “expense 222”.

[1−3.シート名と参照可能な形で保存されたシート名との整合性を保つ処理]
シート名はシート毎に一意に指定する文字列であり、表計算ソフトウェア16では「シートタブ」の領域に表示される。この文字列は、ユーザがGUIを経由した操作にて、変更可能である。
[1-3. Processing to maintain consistency between sheet name and sheet name saved in a referenceable form]
The sheet name is a character string uniquely specified for each sheet, and is displayed in the “sheet tab” area in the spreadsheet software 16. This character string can be changed by the user through an operation via the GUI.

表計算ソフトウェア16の演算式からは、「シートタブ」の文字列(以下「実シート名」と呼ぶ)を参照することはできないため、本実施形態では、他の場所(例えば、ブックレベル範囲名「g経費」と紐づけられている「C2」セル)にシートタブと同じ文字列を保存して(そのように再定義マクロを定義して)その文字列(以下「参照可能シート名」と呼ぶ)を参照している。   Since the calculation formula of the spreadsheet software 16 cannot refer to the character string of “sheet tab” (hereinafter referred to as “actual sheet name”), in the present embodiment, another place (for example, the book level range name “ Save the same character string as the sheet tab (by defining a redefinition macro in that way) in the “C2” cell associated with “g expense” (hereinafter referred to as “referenceable sheet name”). Refer to.

ところで、ユーザがこの実シート名を変更したままでは、実シート名と参照可能シート名との間に不一致が生じる。この不一致のために参照する側のシートから目的のシートを特定できず、目的のセルを参照することができなくなる。   By the way, if the user changes the actual sheet name, a mismatch occurs between the actual sheet name and the referable sheet name. Due to this mismatch, the target sheet cannot be identified from the reference side sheet, and the target cell cannot be referred to.

具体的に、ユーザが「経費111」という名称のシートを、GUI操作で、「経費AAA」という名称に変更した場合を例に説明する。この場合には、「経費111」という名称のシートを参照していたシート(例えば、損益シート)に定義されている演算式で、不都合が起こる。   Specifically, a case where the user changes a sheet named “expense 111” to a name “expense AAA” by a GUI operation will be described as an example. In this case, inconvenience occurs in the arithmetic expression defined in the sheet (for example, profit / loss sheet) that referred to the sheet named “expense 111”.

これは、シートタブに表示されているシート名は、例えばユーザがシートタブに入力した後の決定処理(例えば、Enterキーの押下など)により「経費AAA」と更新されるが、ブックレベル範囲名「g経費」と紐づけられているセル(「C2」セル)の値は、決定処理のみでは「経費111」のまま更新されないためである。   This is because the sheet name displayed on the sheet tab is updated to “expense AAA” by, for example, a determination process (for example, pressing the Enter key) after the user inputs to the sheet tab, but the book level range name “g” This is because the value of the cell (“C2” cell) linked to “expense” remains “expense 111” and is not updated only by the determination process.

この状態で損益シート内の演算式は、「g経費」と紐づけられているセルの値である「経費111」をシート名と見做して、「経費111」というシートを参照しようとする。しかし、「経費111」という名称だったシートは、名称変更されて「経費AAA」という名称になっている。   In this state, the calculation formula in the profit and loss sheet tries to refer to the sheet “expense 111” by regarding “expense 111”, which is the value of the cell linked to “g expense”, as the sheet name. . However, the sheet that was named “Expense 111” has been renamed to “Expense AAA”.

そうなると、損益シート内の演算式は、参照先のシートが消滅したと誤認し、「参照先不定」のエラーを発生させてしまう。ただし、この時点では、損益シートは非Activeの状態なので、この不都合はユーザからは見えない。ユーザが損益シートをActive(つまり画面に表示されている)の状態にした時に、初めてこの不具合が見えることになる。   In such a case, the arithmetic expression in the profit / loss sheet misunderstands that the reference destination sheet has disappeared, and an error of “reference destination indefinite” occurs. However, since the profit / loss sheet is in a non-active state at this point, this inconvenience is not visible to the user. This defect is visible for the first time when the user sets the profit / loss sheet to Active (that is, displayed on the screen).

そこで、第4状態更新処理手段174では、参照先のシート名を修復する状態更新処理を行う。   Therefore, the fourth state update processing unit 174 performs state update processing for repairing the reference destination sheet name.

ユーザがGUIを経由した操作にて、参照される側のシート名を変更する時においては必ず、参照される側のシート(例えば経費シート)がActiveで、参照する側のシート(一般に、損益シートなどの集計を目的としたシート)が非Activeである。逆にユーザが、参照する側のシートをActiveにする操作をすると、参照する側のシートがActiveになる前に、参照されるシートが非Activeとなる。   Whenever the user changes the name of the referenced sheet by an operation via the GUI, the referenced sheet (for example, expense sheet) is always active, and the referenced sheet (generally the profit / loss sheet) Sheet for the purpose of aggregation) is non-active. On the contrary, when the user performs an operation of making the reference sheet active, the referenced sheet becomes non-active before the reference sheet becomes active.

第4状態更新処理手段174では、変更されるシートが非Activeとなるタイミングで、シート名と参照可能な形で保存されたシート名との間に不整合を解消する。具体的には変更されるシートが非Activeとなるタイミングで再定義マクロが起動し、参照可能な形で保存されたシート名を上書きする。この再定義マクロは、「シートタブに表示されているシート名を、ブックレベル範囲名「g経費」と紐づけられているセルに複写する」という命令を少なくとも含み、図18を参照して説明した「シート名を上書きする再定義マクロ」である。   The fourth state update processing unit 174 resolves the mismatch between the sheet name and the sheet name stored in a referable form at the timing when the sheet to be changed becomes non-active. Specifically, the redefinition macro is activated at the timing when the sheet to be changed becomes non-active, and overwrites the sheet name saved in a referable form. This redefinition macro includes at least an instruction “copy the sheet name displayed in the sheet tab to a cell associated with the book level range name“ g expense ”” and has been described with reference to FIG. “Redefine macro to overwrite sheet name”.

具体的には、ユーザが「経費」という名称のシートを、GUI操作で、「経費AAA」という名称に変更し、その後に他のシートに移動した場合に、第4状態更新処理手段174による第4状態更新処理が実行される。そして、上述のシート名を上書きする再定義マクロによって、シートタブに表示されているシート名「経費AAA」(図18(C)では「経費2908」)を、ブックレベル範囲名「g経費」と紐づけられているセル(「C2」セル)に複写する。   Specifically, when the user changes the sheet named “expense” to the name “expense AAA” by the GUI operation, and then moves to another sheet, the fourth state update processing unit 174 A four-state update process is executed. Then, the redefinition macro for overwriting the sheet name described above links the sheet name “expense AAA” (“expense 2908” in FIG. 18C) displayed on the sheet tab with the book level range name “g expense”. Copy to the attached cell ("C2" cell).

これにより、損益シート内の演算式は、「経費」という名称のシートではなく、「経費AAA」という名称のシートを参照するようになる(図18参照、図18においては、このシート名を上書きする再定義マクロによって「経費2908」という名称のシートが参照されるようになっている)。よって、ユーザが損益シートをActive(つまり画面に表示されている)の状態にした時には、不具合の修正が完了しており、当該不具合は、ユーザの目に触れることはない。   As a result, the calculation formula in the profit and loss sheet refers to the sheet named “Expense AAA” instead of the sheet named “Expense” (see FIG. 18 and FIG. 18, this sheet name is overwritten). The sheet named “Expense 2908” is referred to by the redefining macro.) Therefore, when the user places the profit / loss sheet in an active state (that is, displayed on the screen), the correction of the defect is completed, and the defect is not touched by the user.

以上が、新旧差換えを簡便に行うための手段とともに、ユーザがGUI経由で参照される側のシート名を変更した場合にも、参照されるシートを一意に保つ仕組みである。   The above is the mechanism for keeping the referenced sheet unique even when the user changes the name of the sheet to be referred to via the GUI, together with the means for easily performing the new / old replacement.

[2.複数シートの串刺し演算の場合シートの指定]
次に、図21から図26を参照して、第4状態更新手段174によって、複数シートの串刺し演算の場合に、マクロ内から動的にシートを指定し、参照するシートの更新をする例について説明する。
[2. [Specify sheet for skewer calculation of multiple sheets]
Next, with reference to FIG. 21 to FIG. 26, an example in which the fourth state update unit 174 dynamically designates a sheet from within a macro and updates a sheet to be referred to in the case of skewing calculation of a plurality of sheets. explain.

まず、図21は、本実施形態の串刺し演算の概要を示す図である。本実施形態の串刺し演算では、同図(A)に示すように、一覧表シート、集計データシート、元データシートを有する。串刺し演算は、1枚の一覧表シート、1枚の集計データシートおよび複数(最大99枚まで)の元データシートの組合せを一組とするデータ単位(串刺し演算データ単位)で実行される。   First, FIG. 21 is a diagram illustrating an outline of skewering calculation according to the present embodiment. The skewering calculation of this embodiment has a list sheet, a total data sheet, and an original data sheet as shown in FIG. The skewering calculation is executed in a data unit (skewing calculation data unit) including a combination of one list sheet, one total data sheet, and a plurality (up to 99) of original data sheets.

一覧表シートは、元データシートのシート名を列挙していくシートである。シート名を列挙する列はある列に特定されている。   The list sheet is a sheet that lists the sheet names of the original data sheet. A column for enumerating sheet names is specified as a certain column.

集計データシートは、一覧表シートから元データシートのシート名を取得し、元データシートの共通項目についてその値を一覧させていくシートである。このシートには、一覧表シートから取得するシート名と、元データシートから取得する共通項目のデータを演算式により定義しておく。   The total data sheet is a sheet that acquires the sheet name of the original data sheet from the list sheet and lists the values of common items of the original data sheet. In this sheet, a sheet name acquired from the list sheet and common item data acquired from the original data sheet are defined by an arithmetic expression.

元データシートは、それぞれ、シート中の任意のセル範囲に、シートレベル範囲名を定義しておく。また、集計データシートに複写される共通項目のデータのレイアウトも定義しておく。元データシートは、例えば帳票形式でその一部が表示され、ユーザからの入力を受け付ける画面などになるが、共通項目は通常はユーザに非表示となっている。共通項目には、それ以外の(右下方の)各種入力欄から、会計基本処理プログラム21によってデータが集約(編集)される。なお、各種入力欄はユーザによるカスタマイズが許容されている。その際、共通項目の編集も可能である。   Each original data sheet defines a sheet level range name in an arbitrary cell range in the sheet. In addition, the layout of common item data to be copied to the aggregate data sheet is also defined. A part of the original data sheet is displayed in a form format, for example, and becomes a screen for accepting input from the user, but the common items are normally hidden from the user. In the common items, data is aggregated (edited) by the accounting basic processing program 21 from various other input fields (lower right). Various input fields can be customized by the user. At that time, common items can be edited.

串刺し演算データ単位(1枚の一覧表シート、1枚の集計データシートおよび複数(最大99枚まで)の元データシートの組合せを一組とするデータ単位)は会計処理システム10内で複数定義できる。串刺し演算データ単位の内部では、共通項目は同じレイアウトのセル範囲でなければならない。この場合複数の串刺し演算データ単位(例えば、単位A、単位B)の間で、共通項目は同じ項目で構成されていてもよいし、異なる項目で構成されていてもよい。   A plurality of skewer calculation data units (a data unit including a combination of one list sheet, one total data sheet, and plural (up to 99) original data sheets) can be defined in the accounting system 10. . Within a skew calculation data unit, the common item must be a cell range of the same layout. In this case, common items may be composed of the same items or different items among a plurality of skewering calculation data units (for example, unit A, unit B).

同図(B)は、集計データシートと出力帳票(損益計算や残高などの帳票)の関係の概要を示す図である。本実施形態の会計処理システム10では、データが入力されるシートとして、経費シート、売上・仕入シート、普通仕訳シート、追加シートを有している。そしてこれらとは別に独立して串刺し演算データ単位がワンセット定義されている。串刺し演算データ単位は、会計処理システム10内で複数定義できる。この場合複数の串刺し演算データ単位(例えば、単位A、単位B)の間で、共通項目は同じ項目で構成されていてもよいし、異なる項目で構成されていてもよい。そして例えば、損益計算シートや日別残高シートではこの串刺し演算データ単位でデータを収集し、損益計算や日別残高計算を行う。   FIG. 5B is a diagram showing an outline of the relationship between the aggregate data sheet and the output form (form such as profit and loss calculation and balance). The accounting processing system 10 of the present embodiment has an expense sheet, a sales / purchase sheet, an ordinary journal sheet, and an additional sheet as sheets into which data is input. Apart from these, one set of skewering calculation data units is defined independently. A plurality of skewering calculation data units can be defined in the accounting processing system 10. In this case, common items may be composed of the same items or different items among a plurality of skewering calculation data units (for example, unit A, unit B). For example, in the profit and loss calculation sheet and the daily balance sheet, data is collected in units of the skew calculation data, and the profit and loss calculation and the daily balance calculation are performed.

串刺し演算の場合に状態を更新するための再定義マクロは、ブック内でシートの移動があった(DeActivateイベントが発生する)時に、起動するように定義する。この再定義マクロの内容は、以下の通りである。
(1)対象シートかどうかを判定するステップ1
The redefinition macro for updating the state in the case of skewering calculation is defined to be activated when a sheet is moved in the book (DeActivate event occurs). The contents of this redefinition macro are as follows.
(1) Step 1 for determining whether the sheet is a target sheet

移動元のシート(以下TagetSheetと言う)に、目的のシートレベル範囲名が定義されているか否かを検索し、目的のシートレベル範囲名がない場合(例えば、単に空白のシートが追加された場合など)は処理を終了する。
(2)対象シートかどうかを判定するステップ2
Search for whether the target sheet level range name is defined in the source sheet (hereinafter referred to as TagetSheet), and if there is no target sheet level range name (for example, if a blank sheet is simply added) Etc.) ends the processing.
(2) Step 2 for determining whether the sheet is a target sheet

TagetSheetのシート名が、既に一覧表シートに列挙されているかを検索し、列挙されている場合は、新規追加された元データシートではない(既存の元データシートである)と判断し、処理を終了する。
(3)ファイル内の全シートを順読みし、目的のシートレベル範囲名が定義されているシートのシート名一覧を作成する。ユーザが串刺し演算処理の対象のシートにすることを目的として作成(複写等)した元データシートであれば、シートレベル範囲名が設定されているため、これに基づき一覧を作成する。
(4)上記(3)の一覧(元データシートのシート名の一覧)を、一覧表シートの所定の列に貼り付ける(一覧表シートを更新する)。
Search whether the sheet name of TagetSheet is already enumerated in the list sheet. If it is enumerated, it is determined that it is not a newly added original data sheet (existing original data sheet), and the process is performed. finish.
(3) All sheets in the file are read sequentially, and a sheet name list of sheets in which the target sheet level range name is defined is created. If the original data sheet is created (copied or the like) for the purpose of making it a target sheet for skewering calculation processing, a sheet level range name is set, and a list is created based on this.
(4) The list of (3) (list of sheet names of the original data sheet) is pasted to a predetermined column of the list sheet (update the list sheet).

また、貼り付ける前に、FLG欄(C列)のセルを値クリア(ユーザが前回設定した内容を全削除)しておく。この列の値は後述する「参照される側のシートを取捨選択」の画面(オウン・コードによるGUI画面)で設定され、集計データシート内の演算式から参照される。   Also, before pasting, the value of the cells in the FLG column (column C) is cleared (all contents set by the user last time are deleted). The value of this column is set on a “selection of sheet to be referred to” (GUI screen by own code), which will be described later, and is referred to from an arithmetic expression in the total data sheet.

なお、上記(2)の判定で、TagetSheetのシート名が既に一覧表シートに列挙されていないと判定されて(3)に進む状態としては、以下の態様がある。
・「既存のシートで、シート中に目的の「シートレベル範囲名」があるが、一覧表シートには名前がない」場合であり、ユーザがシート名を変更したことによって、一覧表シートに記載されたシート名と、実際のシート名との間に不一致が起きている場合である。
・「既存のシートで、シート中に目的の「シートレベル範囲名」があるが、一覧表シートには名前がない」場合であり、ユーザがそのシートを複写したことにより、一覧表シートにシート名を追加すべきであるが、未だリストに追加されていない場合である。
・「新規のシートに、ユーザが目的のシートレベル範囲名を付与した」場合であり、一覧表シートにシート名を追加すべきであるが、未だリストに追加されていない場合である。
Note that, in the determination of (2) above, it is determined that the sheet name of TagetSheet is not already listed in the list sheet, and the state of proceeding to (3) includes the following modes.
・ In the case of “existing sheet, there is a target“ sheet level range name ”in the sheet, but there is no name in the list sheet”, and it is described in the list sheet when the user changes the sheet name This is a case where there is a discrepancy between the registered sheet name and the actual sheet name.
-“In the case of an existing sheet, there is a target“ sheet level range name ”in the sheet, but there is no name in the list sheet”. When the user copies the sheet, the sheet is added to the list sheet. The name should be added, but not yet added to the list.
This is a case where the user has given a target sheet level range name to a new sheet, and the sheet name should be added to the list sheet, but has not yet been added to the list.

本実施形態の串刺し演算は、会計基本処理プログラム21によって実行されるが、本実施形態の第4状態更新手段174は、図21に示す各シートの構成(設定)と、上述の串刺し演算の場合に状態を更新するための再定義マクロによって、ユーザによりシートの操作(追加、削除、名称の変更)がされた場合に串刺し演算の処理対象を(予定されている全てのシートが参照できるようにその状態を)更新する。   The skewering calculation according to the present embodiment is executed by the accounting basic processing program 21, but the fourth state updating unit 174 according to the present embodiment uses the configuration (setting) of each sheet shown in FIG. 21 and the skewering calculation described above. The redefinition macro for updating the status of the sheet allows the processing target of skewering calculation to be referred to (all scheduled sheets can be referred to) when the sheet is operated (added, deleted, renamed) by the user. Update its state).

図22〜図25を参照して、具体例を挙げて説明する。   A specific example will be described with reference to FIGS.

図22は、元データシートの一例を示す図である。同図(A)はユーザの入力画面として表示される元データシートの例であり、同図(B)は同図(A)では非表示となっていた部分を含めた元データシートの全体構成の一例である。   FIG. 22 is a diagram illustrating an example of the original data sheet. FIG. 4A is an example of an original data sheet displayed as a user input screen, and FIG. 4B is an entire configuration of the original data sheet including a portion that is not displayed in FIG. It is an example.

同図は入金伝票の一例である。入力画面において、通常は同図(A)のように(例えば、2行〜44行、B列〜J列が非表示)で表示されており、必要に応じて例えばユーザがA1セルをダブルクリックすると、同図(B)のように全体が表示される。同図(B)の破線の領域が、同図(A)に表示されている。   The figure is an example of a deposit slip. On the input screen, it is usually displayed as shown in Fig. 2A (for example, 2nd to 44th rows, Bth to Jth columns are not displayed). For example, the user double-clicks cell A1 as necessary. Then, the whole is displayed as shown in FIG. A broken line region in FIG. 5B is displayed in FIG.

同図(A)の例では矢印の範囲(行方向の例えば15行分)が、共通項目として集計されるデータである。なお、行数は15行に限らず、適宜変更が可能である。   In the example of FIG. 9A, the range of arrows (for example, 15 rows in the row direction) is data that is tabulated as common items. The number of lines is not limited to 15 and can be changed as appropriate.

ここでは入金伝票のレイアウトで示しているが、これに限らず、例えば振替伝票や領収書などのレイアウトでもよいし、日報のように本来会計処理に使用される帳票以外のレイアウトであってもよい。   Here, the layout of the deposit slip is shown. However, the layout is not limited to this. For example, a layout such as a transfer slip or a receipt may be used, or a layout other than a form originally used for accounting processing such as a daily report may be used. .

同図(B)に示すように、同図(A)で表示されていた共通項目の各データは、同シート内の通常は非表示の左上領域(集約領域33という。)に集約される。そしてこの集約領域33には、シートレベル範囲名(例えば、「n追加sht」)が定義されている。この元データシートが、串刺し演算データ単位毎に最大99枚まで存在している。   As shown in FIG. 7B, the data of the common items displayed in FIG. 6A are collected in the normally non-displayed upper left area (referred to as an aggregation area 33) in the same sheet. A sheet level range name (for example, “n additional sht”) is defined in the aggregation area 33. There are up to 99 original data sheets for each skew calculation data unit.

再定義マクロは、このシートレベル範囲名(例えば、「n追加sht」)が定義されている場合には、集計の対象とする(上記(1)、(2))。   When the sheet level range name (for example, “n added sht”) is defined, the redefinition macro is a target of aggregation (the above (1) and (2)).

図23は、一覧表シートの一例である。例えば、C列には、「n追加sht」のシートレベル範囲名を有するシート(つまり「元データシート」)のシート名一覧が作成される。シート名は例えば99件まで登録可能であり、このC列(の99件分のセル範囲)には、セル範囲名(例えば、「g追加SHT名称」)が定義されている。セル範囲「g追加SHT名称」は、集計データシート(シート名は、「追加シート」)から参照されている。また、一覧表シートの任意のセル(例えば、「B2」セル)には、ブックレベル範囲名として「g追加sht」というセル範囲名が定義されている。   FIG. 23 is an example of a list sheet. For example, in the C column, a sheet name list of sheets having a sheet level range name of “n added sht” (that is, “original data sheet”) is created. Up to 99 sheet names can be registered, for example, and a cell range name (for example, “g-added SHT name”) is defined in column C (99 cell ranges). The cell range “g added SHT name” is referred to from the total data sheet (sheet name is “added sheet”). In addition, a cell range name “g addition sht” is defined as a book level range name in an arbitrary cell (for example, “B2” cell) of the list sheet.

図24は、集計データシートの一例を示す図である。この例で、A列は、ブックレベル範囲名「g追加sht名称」と紐づいているセル範囲(すなわち、図23のシートのC列)を参照し(表示欄CN参照)、当該シート名の一覧に含まれるシート名(文字列)を15行ずつ繰り返し記載している。繰り返し行数は本シートの「A3」セルで指定されている。   FIG. 24 is a diagram illustrating an example of a total data sheet. In this example, column A refers to the cell range (namely, column C of the sheet in FIG. 23) linked to the book level range name “g added sht name” (see display column CN), and The sheet name (character string) included in the list is repeatedly described 15 lines at a time. The number of repeated rows is specified in the “A3” cell of this sheet.

A列の演算式は、表示欄CNに示すように「=IFERROR(OFFSET(g追加SHT名称,INT((CELL("row",A9)-4)/n行数),0,1,1),"**")」であり、このうちセル範囲「g追加SHT名称」は一覧表シート(シート名は「追加sht」)に属するセル範囲を参照している。「n行数」は、集計データシートの「A3」セル(セルの値は15であり、このセルの値で繰返し行数を指定している)に与えられた範囲名である。演算式中の「INT((CELL("row",A9)-4)」の値は1であり、演算式全体では上記セル範囲の1行目の値を参照している。上記の演算式は、「A9」セルに記載された場合の例である。   The calculation formula for column A is “= IFERROR (OFFSET (gAdditional SHT name, INT ((CELL (" row ", A9) -4) / n number of rows), 0,1,1 ), “**”) ”, and the cell range“ g added SHT name ”refers to the cell range belonging to the list sheet (sheet name is“ added sht ”). “Number of n rows” is a range name given to the “A3” cell (the cell value is 15 and the number of repeated rows is specified by the value of this cell) of the total data sheet. The value of "INT ((CELL (" row ", A9) -4)" in the arithmetic expression is 1, and the entire arithmetic expression refers to the value in the first row of the cell range. Is an example when it is described in the “A9” cell.

第4状態更新処理手段174は、このように構成された各種シートと上述の串刺し演算の場合に状態を更新するための再定義マクロによって、シートの操作(追加、削除、名称の変更)がされた場合に串刺し演算の処理対象を(予定されている全てのシートが参照できるようにその状態を)更新する。   The fourth state update processing unit 174 performs sheet operations (addition, deletion, name change) by the various sheets configured as described above and the redefinition macro for updating the state in the case of the above-described skewering calculation. In the case of a cut, the processing target of skewering calculation is updated (so that all the scheduled sheets can be referred to).

第4状態更新処理手段174は、参照するシートから参照される側のシートへの参照手段を提供するものである。つまり、参照するシートにおいて参照される側のシートを取捨選択することができ、選択したシートのみを集計の対象とすることもできる。取捨選択の方法としては、参照される側のシート上のデータの内容によったり、参照されるシートに参照用とは別の印を付けたりする、別シートやGUI画面にシート名の一覧を表示してユーザに選択させるような方法がある。表計算ソフトウェア16にはユーザにシート選択をさせる場合に利用できる簡便な機能として、オートフィルタやチェックボックスのような手段が提供されている。   The fourth state update processing means 174 provides a means for referring to the sheet on the side to be referred from the sheet to be referred to. That is, it is possible to select a sheet on the side to be referred to in the sheet to be referred to, and it is also possible to set only the selected sheet as a target of aggregation. As a selection method, a list of sheet names can be displayed on another sheet or on the GUI screen depending on the content of data on the referenced sheet or by marking the referenced sheet different from the reference sheet. There is a method of displaying and allowing the user to select. The spreadsheet software 16 is provided with means such as an auto filter and a check box as simple functions that can be used when the user selects a sheet.

参照される側のシートを取捨選択するには、オウン・コードによるGUI画面(「参照される側のシートを取捨選択」の画面)を定義すると良い。その場合、GUI画面は、一覧表シート又は集計データシートの「A1」セルをユーザがダブルクリックすると起動する。この画面上には元データシートのシート名の一覧が表示されている。表示されているシート名が多数の時は、画面内に縦スクロールバーも現れる。シート名の横にはそれぞれ、チェックボックスが付されている。ユーザが、あるシートを集計対象外としたいときは、シートのシート名横のチェックを外す。その後ユーザがOKボタンを押すと、GUI画面からマクロが起動する。そのマクロは、集計対象外のシートがあるときは、一覧表シートの対象外とされたシートの「対象外フラグ」列のセルの値を1に、そうでないシートの「対象外フラグ」列のセルの値を空白にする。集計データシート内の演算式は、ある元データシートに対応する「対象外フラグ」が1の時は、(「If Then 分岐」の機能を活用して、)その元データシートからの値複写を行わない仕様になっている。一覧表シートの「対象外フラグ」列は、元データシートのリスト貼付時にクリアされ、この画面で編集される。   In order to select a sheet on the reference side, a GUI screen (“screen for selecting a sheet on the reference side”) by an own code may be defined. In this case, the GUI screen is activated when the user double-clicks the “A1” cell of the list sheet or the total data sheet. A list of sheet names of the original data sheets is displayed on this screen. When many sheet names are displayed, a vertical scroll bar also appears on the screen. A check box is added next to each sheet name. When the user wants to exclude a certain sheet from the aggregation target, the check next to the sheet name of the sheet is removed. Thereafter, when the user presses the OK button, the macro is activated from the GUI screen. When there is a sheet that is not subject to aggregation, the macro sets the cell value in the “non-target flag” column of the sheet that is excluded from the list sheet to 1, and the “non-target flag” column of the sheet that is not. Leave the cell value blank. When the “excluded flag” corresponding to a certain original data sheet is 1, the calculation formula in the aggregate data sheet is to copy the value from that original data sheet (using the “If Then branch” function). The specification is not made. The “non-target flag” column of the list sheet is cleared when the list of the original data sheet is pasted and edited on this screen.

なお、例えば元データシートにおいても、第3状態更新手段173による更新処理が可能となっている。図25は、図22に示す元データシートを示す図である。図22(B)および図25を参照して、例えば、入金伝票シートには、例えば「N51」セルに相手先コードを名称に変換する演算式(以下「名称変換算式」と呼ぶ。これは例えば、エクセル(登録商標)では「Vlookup」のような関数による簡便な手段が広く利用されている)が定義されている。また、入金伝票シートの通常は非表示となっている領域(名称変換算式参照領域35、図22(B)参照)には、相手先コードを名称に変換するための相手先リストが定義されている。名称変換の方法は、上記に限らず、自己作成関数による方法、イベント発生を捉えてマクロを実行する方法など、がある。コード変換は相手先のほか、地名、事業所名、商品名、勘定科目など、種々の変換が考えられる。   For example, also in the original data sheet, the update process by the third state update unit 173 is possible. FIG. 25 is a diagram showing the original data sheet shown in FIG. Referring to FIG. 22B and FIG. 25, for example, in a deposit slip sheet, for example, an arithmetic expression for converting a partner code into a name in “N51” cell (hereinafter referred to as “name conversion formula”. In Excel (registered trademark), a simple means using a function such as “Vlookup” is widely used). Further, in the area of the receipt slip sheet that is normally hidden (name conversion formula reference area 35, see FIG. 22B), a partner list for converting partner codes into names is defined. Yes. The name conversion method is not limited to the above, and includes a method using a self-created function, a method of executing a macro by capturing an event, and the like. In addition to the other party, the code conversion can be various conversions such as place name, establishment name, product name, and account item.

そして、同図(A)に示すように相手先コード欄(「N50」セル)に数値の入力があると、名称変換算式は名称変換算式参照領域35の相手先リストを参照し、入力された数値に一致する相手先名が有る場合は、相手先名欄(「N51」セル)に当該相手先名を表示する。相手先コード欄、名称変換算式参照領域35、相手先名欄は、単一のシート内にある必要はない。例えば、名称変換算式参照領域35を、別シート、別ファイル(ワークブック)に設けたり、ネットワーク上の他のコンピュータやストレージに置いて運用することも出来る。相手先コード欄と、相手先名欄の役割を単一のセルに付けることもできる。   Then, as shown in FIG. 6A, when a numerical value is input in the partner code column ("N50" cell), the name conversion formula is entered by referring to the partner list in the name conversion formula reference area 35. If there is a partner name that matches the numerical value, the partner name is displayed in the partner name column ("N51" cell). The partner code field, the name conversion formula reference area 35, and the partner name field need not be in a single sheet. For example, the name conversion formula reference area 35 can be provided in a separate sheet, a separate file (workbook), or placed on another computer or storage on the network. The roles of the destination code column and the destination name column can be assigned to a single cell.

また、名称変換算式が定義されている「N51」セルと同列の例えば2行目(「N2」セル)には、再定義情報設定領域25が設けられており(図22(B)参照)、再定義情報Rとして、相手先コードを名称に変換する名称変換算式(「N51」セルに定義されている演算式)が定義されている。   A redefinition information setting area 25 is provided in, for example, the second row (“N2” cell) in the same column as the “N51” cell in which the name conversion formula is defined (see FIG. 22B). As the redefinition information R, a name conversion formula (an arithmetic formula defined in the “N51” cell) for converting a partner code into a name is defined.

ユーザは名称変換算式による変換が不要な場合は、図25(B)に示すように相手先名欄に相手先名を直接入力する。そして名称変換算式による変換機能を復活させたい場合には、同図(C)に示すように相手先名欄(「N51」セル)において値削除(Deleteキーを押下)する。これにより第3状態更新手段173が「N2」セルに定義された再定義情報Rおよび再定義マクロを用いて、「N51」セルに名称変換算式を再定義する。   When conversion by the name conversion formula is unnecessary, the user directly inputs the partner name in the partner name column as shown in FIG. When it is desired to restore the conversion function based on the name conversion formula, the value is deleted (the Delete key is pressed) in the partner name column (cell “N51”) as shown in FIG. As a result, the third state updating unit 173 redefines the name conversion formula in the “N51” cell using the redefinition information R and the redefinition macro defined in the “N2” cell.

このように、本実施形態では、会計基本処理プログラム21で使用する定義情報S(主に演算式など)が定義されている場合には、状態更新手段17を設定し、セル、行、列、シートの操作があった場合には、定義情報Sを再定義することが可能となっている。   Thus, in this embodiment, when the definition information S (mainly arithmetic expression etc.) used by the accounting basic processing program 21 is defined, the state update means 17 is set, and the cell, row, column, When there is a sheet operation, the definition information S can be redefined.

図26は、「元データシート」のシート名一覧を保存する他の例を示す図である。同図は、一覧表シートの機能を集計データシートの中に集約させている。   FIG. 26 is a diagram illustrating another example of saving the sheet name list of “original data sheet”. In the figure, the functions of the list sheet are aggregated in the aggregate data sheet.

上記の例では、「元データシート」のシート名一覧を保存するシートとして、専用のシート、すなわち、一覧表シートにリストとして書き込む方法を説明した。   In the above example, the method of writing as a list on a dedicated sheet, that is, a list sheet, as a sheet for storing the sheet name list of the “original data sheet” has been described.

これに対し、図26の場合は、「元データシート」のシート名一覧を、参照する側のシートに保存する。すなわち同図に示すように、「元データシート」のシート名一覧を保存するための領域を、集計データシート内に定義している。これにより、串刺し演算データ単位を構成するシートを、元データシートと、同図に示す一覧表シートと集計データシートとの集約シートとの2種類にすることができ、シート構成を簡略化することができる。   On the other hand, in the case of FIG. 26, the sheet name list of “original data sheet” is stored in the sheet on the reference side. That is, as shown in the figure, an area for storing a list of sheet names of “original data sheet” is defined in the total data sheet. As a result, the sheets constituting the skew calculation data unit can be divided into two types, that is, the original data sheet, and the aggregate sheet of the list sheet and the aggregate data sheet shown in FIG. Can do.

<セルの表示態様変更手段>
本実施形態の会計処理システム10は、更に、所定の条件に応じてセルの表示態様を変更するセル表示態様変更手段を備える。
<Cell display mode changing means>
The accounting processing system 10 of the present embodiment further includes cell display mode changing means for changing the display mode of the cells according to a predetermined condition.

セル表示態様変更手段は、セルの内容(定義情報S)が所定の条件の場合に、当該セルを或る表示態様で表示させる手段である。ユーザは、入力した値に応じてセルの表示態様が変化する場合があるので、入力値等が適切であるか否かを判断でき、その意味では警告機能ということもできる。   The cell display mode changing means is a means for displaying the cell in a certain display mode when the content of the cell (definition information S) is a predetermined condition. Since the display mode of the cell may change depending on the input value, the user can determine whether or not the input value is appropriate, and in that sense, it can also be called a warning function.

具体的には、会計基本処理プログラム21では、セル表示態様変更手段として、警告処理を行うシートについて、予め対象範囲内のセルに「条件付き書式」として表示態様を設定しておく。ここで「条件付き書式」は、表計算ソフトウェア16の基本機能であり、指定した条件に合致した場合に適用される表示態様(文字の色やセルの色)に関する書式を指定する機能である。
例えば、演算式のセル(デフォルト)に対しては、セルの背景色を薄い赤、固定値の入っているセルにはセルの背景色を濃い赤などに設定する。
Specifically, in the accounting basic processing program 21, as a cell display mode changing means, a display mode is set as a “conditional format” in advance in a cell within the target range for a sheet to be subjected to warning processing. Here, the “conditional format” is a basic function of the spreadsheet software 16 and is a function for designating a format relating to a display mode (character color or cell color) applied when a designated condition is met.
For example, for an arithmetic cell (default), the cell background color is set to light red, and for cells containing a fixed value, the cell background color is set to dark red.

例えば、演算式が定義されているセルに対してユーザが定数(固定値)を入力する。この場合、上記の例では薄い赤の背景色のセルに定数(固定値)が入力され、演算式でなくなるため、セル表示態様変更手段によって背景色が濃い赤に変化する。このような表示態様の変化により、当該セルにデフォルトで設定されていた定義情報Sが演算式であるのか固定値であるのかをユーザが目視することができ、計算結果の検証に役立たせることができる。また、シート上で演算式が定義されているセルと固定値が定義されているセルの表示態様が異なるため、体裁を良好にすることもできる。   For example, the user inputs a constant (fixed value) for a cell in which an arithmetic expression is defined. In this case, in the above example, a constant (fixed value) is input to the cell of the light red background color and is no longer an arithmetic expression, so the background color is changed to dark red by the cell display mode changing means. By such a change in display mode, the user can visually check whether the definition information S set by default in the cell is an arithmetic expression or a fixed value, which can be useful for verification of calculation results. it can. Moreover, since the display mode of the cell in which the arithmetic expression is defined on the sheet and the cell in which the fixed value is defined are different, the appearance can be improved.

セル表示態様変更手段は、ユーザのシートヘの入力を契機として態様変更を行う。ユーザは、設定した「条件付き書式」により、セルのコンテンツが演算式か固定値かを、その表示態様によって目視で判断する。そして、例えば固定値であるべきセルについて、意図的に固定値が入力されている場合は正常とし、誤操作により固定値が入力されている場合には、当該値を消去(Deleteキーを押下)する。   The cell display mode changing means changes the mode triggered by the user's input on the sheet. The user visually determines whether the content of the cell is an arithmetic expression or a fixed value according to the display mode according to the set “conditional format”. For example, regarding a cell that should be a fixed value, if a fixed value is intentionally input, it is normal. If a fixed value is input by mistake, the value is deleted (the Delete key is pressed). .

そしてこのようにあるセルに対する「値消去」により発生したChangeイベントを契機として、第3状態更新手段173が状態更新処理を行い、操作されたセルに定義されていた再定義情報Rが再定義される。   Then, triggered by the change event generated by “value deletion” for a certain cell in this way, the third state update unit 173 performs state update processing, and the redefinition information R defined in the operated cell is redefined. The

表計算ソフトウェア16の自動修正機能の仕様として、行・列の挿入・削除をした場合には、セルの演算式(所定の定義情報S)は維持されない。そのため本実施形態では、第2状態更新手段172および第3状態更新手段173によって当該演算式(所定の定義情報S)を維持している。それに対し、セル表示態様変更手段で設定される「条件付き書式」は行・列の挿入・削除をした場合には、表計算ソフトウェア16の自動修正機能により維持される。   As a specification of the automatic correction function of the spreadsheet software 16, when a row / column is inserted / deleted, the cell arithmetic expression (predetermined definition information S) is not maintained. Therefore, in the present embodiment, the calculation formula (predetermined definition information S) is maintained by the second state update unit 172 and the third state update unit 173. On the other hand, the “conditional format” set by the cell display mode changing means is maintained by the automatic correction function of the spreadsheet software 16 when a row / column is inserted / deleted.

ただし表計算ソフトウェア16の自動修正機能では、シート上で、「セルの切り取り」をした場合には、切り取られたセルの「条件付き書式」は維持されない。そこで、本実施形態の状態更新処理手段17は、「条件付き書式」について、再定義を行う。具体的には、状態更新処理手段17は、シートのDeActivate時に状態更新処理を実行し、シート内の「条件付き書式」が正常であるか否かに関わらず、全てデフォルトの「条件付き書式」を再定義する。この処理は、例えば、第2状態更新処理手段172によって行うようにしてもよいし、別途の状態更新処理手段によって行うようにしてもよい。デフォルトの「条件付き書式」は、第2状態更新処理手段172と同様に、再定義情報Rとしてシート上に保存しても良いし、マクロのソースコード内に保存しても良い。また、シート上の正常なセルから、「条件付き書式」の複写をしても良い。   However, the automatic correction function of the spreadsheet software 16 does not maintain the “conditional format” of the cut cell when “cut the cell” is performed on the sheet. Therefore, the state update processing unit 17 of this embodiment redefines “conditional format”. Specifically, the state update processing means 17 executes the state update process when the sheet is deactivated, regardless of whether the “conditional format” in the sheet is normal or not, and the default “conditional format”. Is redefined. This process may be performed by, for example, the second state update processing unit 172 or may be performed by a separate state update processing unit. The default “conditional format” may be stored on the sheet as the redefinition information R as in the second state update processing unit 172, or may be stored in the macro source code. Further, “conditional format” may be copied from normal cells on the sheet.

なおこの表示態様は、背景色の他、セルの網掛け、下線、フォントスタイル変更などであってもよい。   In addition to the background color, this display mode may be cell shading, underlining, font style change, or the like.

また、セル表示態様変更手段は例えば、シートに入力された日付に注目し、日付の変わるごとに、行全体の表示態様(背景色など)を変更したり、取引種別の列に注目し、種別に応じて(例えば、売上の行は水色、仕入の行はピンクなど)に表示態様を変更する。このようにすることで、警告機能に加えて、シートの体裁を良好にすることができる。   In addition, the cell display mode changing means, for example, pays attention to the date input in the sheet, and changes the display mode (background color, etc.) of the entire row every time the date changes, or pays attention to the transaction type column. (For example, the sales line is light blue, the purchase line is pink, etc.). In this way, in addition to the warning function, the appearance of the sheet can be improved.

<付記>
以下、これまでに説明したことも含めて、本実施形態の別の観点からの説明を付記する。
<Appendix>
Hereinafter, descriptions from other viewpoints of the present embodiment will be added, including what has been described so far.

[状態更新処理手段]
本実施形態の状態更新処理手段17は、セル、行・列、シートに対して会計基本処理プログラム21での初期状態と異なる、あるいは想定していない操作(入力等)が行われた場合、セルに当初定義されていた定義情報Sを再定義し直す、すなわちセルの状態を修復するものである。ここで、「修復」には、次の(X)、(Y)のような、二種類の意味がある。
(X)表計算ソフトウェア16の基本機能としての修正機能
[State update processing means]
The state update processing unit 17 according to the present embodiment performs a cell operation when a cell, row / column, or sheet is subjected to an operation (input or the like) that is different from or not assumed to be in the initial state in the accounting basic processing program 21. The definition information S originally defined in (1) is redefined, that is, the cell state is restored. Here, “restoration” has two types of meanings such as the following (X) and (Y).
(X) Correction function as basic function of spreadsheet software 16

これは、ユーザがシートを編集した時に、表計算ソフトウェア16が演算式や表示の整合性を維持するために行うもの(基本機能としての「自動修正機能」)であり、具体的には、セル単位の機能として列追加・削除時の演算式の変化や、シート単位の機能として参照されるシートがユーザにより、名前変更されたときの演算式の修正等の機能である。
(Y)本実施形態の状態更新処理機能
This is what the spreadsheet software 16 performs to maintain the consistency of the arithmetic expression and display when the user edits the sheet (“automatic correction function” as a basic function). The unit functions include a change in arithmetic expression when adding / deleting a column, and a correction of the arithmetic expression when a user renames a sheet referred to as a sheet unit function.
(Y) State update processing function of this embodiment

会計基本処理プログラム21が想定する所定の結果を維持するため、状態更新処理手段17(上述の第1状態更新処理手段171〜第4状態更新処理手段174)によって修復をする機能である。一例を挙げるとセル単位の機能として、特定のセルの内容をユーザが空白にした場合に、セルごとに定義されている演算式等(定義情報S)を上書き(再定義情報Rにより再定義)する機能や、セルに定義されている書式(条件付書式)が削除された場合に自動で修復する機能である。   In order to maintain a predetermined result assumed by the accounting basic processing program 21, it is a function of repairing by the state update processing means 17 (the first state update processing means 171 to the fourth state update processing means 174 described above). For example, as a function of a cell unit, when the content of a specific cell is blank by the user, an arithmetic expression defined for each cell (definition information S) is overwritten (redefined by redefinition information R) And a function that automatically repairs when a format (conditional format) defined in a cell is deleted.

また、シート単位の機能として、シートの差換えがあった場合またはシートの串刺し演算があった場合に、追加、変更等されたシートを参照の主体に反映させる機能である。   In addition, as a sheet unit function, when a sheet is replaced or a sheet skewing operation is performed, the added or changed sheet is reflected on a reference subject.

すなわち本実施形態では、表計算ソフトウェア16の基本機能としての自動修正機能も一部活用しつつ、自動修正機能で不足する部分を、状態更新処理手段17(再定義マクロ及び再定義情報R、シートの各種設定)によって補い、ユーザにとって利便性の高い修復機能を提供している。   That is, in the present embodiment, the automatic correction function as a basic function of the spreadsheet software 16 is partially utilized, and the part that is insufficient in the automatic correction function is replaced with the state update processing means 17 (redefinition macro and redefinition information R, sheet Are provided with a repair function that is highly convenient for the user.

本実施形態の会計処理システム10は、以下の機能(手段)を有している。
(a)ユーザによって行又は列の操作があった後に、セルの内容が変更された場合に、会計基本処理プログラム21(会計基本マクロ)が参照するセルに不整合が生じないように、セルの内容を再定義する機能(第1状態更新処理手段171)
(b)ユーザによってセルに何らかの操作(入力等)がされた場合に、入力された値の種類(演算式、固定値など)によらず、初期のセルの定義情報Sに再定義する機能(第2状態更新処理手段172)
The accounting processing system 10 of the present embodiment has the following functions (means).
(A) When the contents of a cell are changed after the user has operated a row or column, the cell of the cell referred to by the accounting basic processing program 21 (accounting basic macro) is not inconsistent. Function for redefining contents (first state update processing means 171)
(B) A function of redefining the initial cell definition information S when the user performs any operation (input, etc.) on the cell, regardless of the type of input value (arithmetic expression, fixed value, etc.) ( Second state update processing means 172)

この場合、対象となるシートは、会計処理システム10の場合、例えば経費シート、売上・仕入シート、普通仕訳シート、追加シートである。なお、シートは一例であり、この例に限らない。   In this case, in the case of the accounting processing system 10, the target sheets are, for example, an expense sheet, a sales / purchase sheet, an ordinary journal sheet, and an additional sheet. In addition, a sheet | seat is an example and is not restricted to this example.

また、更新対象のセルは、ユーザによる操作があったセルと同じ列で、有効な行範囲内にある全てのセルであり、この場合は、修正対象のセル範囲は、縦方向に長いセルの一団となる。   In addition, the update target cells are all the cells in the valid row range in the same column as the cell operated by the user. In this case, the cell range to be corrected is a cell that is long in the vertical direction. Become a group.

また、更新対象のセルは、再定義情報設定領域25に定義されている再定義情報Rによって更新(修復)される。   In addition, the update target cell is updated (repaired) by the redefinition information R defined in the redefinition information setting area 25.

また、対象となるシートで行挿入があった場合は、シート内の、演算式の入るべき列で、有効な行範囲内にある全てのセルが再定義情報Rによって更新(修復)される。つまり、ある列の中に一つでも修正対象セルがあれば、(挿入した行の)列全体の演算式を更新する。なお、この場合、シート内の演算式の全てが更新される構成であってもよい。また、シートを移動した際に、挿入した行の列全体の演算式の更新(またはシート内の全ての演算式の更新)を行うようにしてもよいし、行わないようにしてもよい。
(c)ユーザによって或るセルに何らかの操作(入力等)がされた場合、入力された値の種類が固定値(定数)であればその入力は許容し、それ以外の場合は初期のセルの定義情報Sに再定義する機能(第3状態更新処理手段173)
In addition, when a row is inserted in the target sheet, all cells in the valid row range in the column in which the arithmetic expression is to be inserted are updated (repaired) by the redefinition information R. That is, if there is at least one cell to be corrected in a certain column, the arithmetic expression for the entire column (of the inserted row) is updated. In this case, all the arithmetic expressions in the sheet may be updated. Further, when the sheet is moved, the arithmetic expression of the entire column of the inserted row may be updated (or all the arithmetic expressions in the sheet may be updated) or may not be performed.
(C) When a certain operation (input, etc.) is performed on a certain cell by the user, the input is allowed if the type of the input value is a fixed value (constant), otherwise, the initial cell Function for redefining the definition information S (third state update processing means 173)

この場合、対象となるシートは例えば、売上シートである。また、更新の対象となる或るセルとは、リスト中の特定の列に属するセル(縦長の一団の単位となる)、または、帳票形式のシートで名称変換算式による表示を行うセル(セル一個の単位)である。ただし、そのセルが既述の第3状態更新処理の判定基準(ケース1〜ケース5)を満たさない場合は処理を終了する。判定は、入力があったセルを1個単位で全数判定する。   In this case, the target sheet is, for example, a sales sheet. Also, a certain cell to be updated is a cell belonging to a specific column in the list (a unit of a vertically long group), or a cell that displays a name conversion formula on a form sheet (one cell) Unit). However, if the cell does not satisfy the determination criterion (case 1 to case 5) of the third state update process described above, the process ends. In the determination, all the cells that have been input are determined in units of one.

また、名称変換算式による表示を行うセルの更新処理において、同じ列に名称変換算式が定義されているセルが複数ある場合、再定義情報Rの定義領域は、他の領域が適宜選択される。また、再定義情報Rは再定義マクロ内に直接記載してもよいが、その場合は適宜再定義マクロのメンテナンスが必要となる。   In addition, in the update process of a cell that performs display using a name conversion formula, when there are a plurality of cells in which the name conversion formula is defined in the same column, another area is appropriately selected as the definition area of the redefinition information R. Further, the redefinition information R may be directly described in the redefinition macro, but in that case, maintenance of the redefinition macro is necessary as appropriate.

また、対象となるシートで、行挿入があった場合は、シート内の、演算式の入るべき列で、有効な行範囲内にある全てのセルについて更新処理を行う。この場合は、修正対象のセル範囲は、横方向に長いセルの一団となる。行挿入時には、全てのセルが空白であるため、全てのセルが更新される。   Also, when there is a row insertion in the target sheet, update processing is performed for all cells in the effective row range in the column where the arithmetic expression is to be placed. In this case, the cell range to be corrected is a group of cells that are long in the horizontal direction. Since all cells are blank when inserting a row, all cells are updated.

また、対象となるシートから他のシートに移動する場合、演算式の入るべき列で、有効な行範囲内にある全てのセルについて、第3状態更新処理の判定基準(ケース1〜ケース5)でセル1個単位で判定し、異常のセルがある場合には更新される。
(d)会計基本処理プログラム21(会計基本マクロ)複数のシートに亘る処理を行うに際し、シートの追加や差し替えがあった場合に、それらを複数のシートに亘る処理に反映させる機能(第4状態更新処理手段174)
(d−1)シートの差し換え時の状態更新処理
In addition, when moving from the target sheet to another sheet, the determination criteria (case 1 to case 5) of the third state update processing are performed for all cells in the valid row range in the column in which the arithmetic expression is to be entered. The determination is made on a cell-by-cell basis, and if there is an abnormal cell, it is updated.
(D) Basic accounting processing program 21 (accounting basic macro) When performing processing for a plurality of sheets, when a sheet is added or replaced, a function for reflecting them in processing for a plurality of sheets (fourth state) Update processing means 174)
(D-1) State update processing at the time of sheet replacement

この場合、再定義マクロの起動契機は、参照されるシート(経費シート、売上・仕入シート、普通仕訳シートほか、以下「対象シート」という)から、他のシートに移動するときである。   In this case, the trigger for starting the redefinition macro is when the sheet is moved from a referenced sheet (expense sheet, sales / purchase sheet, ordinary journal sheet, etc., hereinafter referred to as “target sheet”) to another sheet.

移動元のシートが対象シートに属するかどうかは、目印となる対象シート情報で判断する。対象シート情報は例えば、ブックレベル範囲名(上記の例では、経費シートの「g経費」)である。この対象シート情報を最新の対象シートに設定する。   Whether the source sheet belongs to the target sheet is determined by target sheet information serving as a mark. The target sheet information is, for example, a book level range name (in the above example, “g expense” of the expense sheet). This target sheet information is set to the latest target sheet.

また、第4状態更新処理手段174では、対象となる(追加等された)シート名を参照する側のシート上に定義された演算式から参照可能な方法で保存する。   Further, the fourth state update processing unit 174 stores the target (added or the like) sheet name by a method that can be referred to from an arithmetic expression defined on the sheet on the side that refers to the sheet name.

ここで、(d−1)の機能は、あるシート(ここでは例として、経費シート)の世代管理をするための機能であるといえる。シートの差し替えをする時は、複数の「経費」シートがあることになる。つまり、「旧経費」シート、「新経費」シート、「二世代前の経費」シート・・・と同じレイアウトのシートが複数存在する。この場合、どのシートが原本であるか、最新であるか、どのシートから金額を集計するかを確定させる必要がある。この原本が確定すれば、状態更新処理手段17が自動で状態の更新を行うことができる。その原本を確定するための対象シート情報が例えば、ブックレベル範囲名(例えば、「g経費」)であり、当該対象シート情報を予めシート上のセルに設定しておく。   Here, it can be said that the function (d-1) is a function for performing generation management of a certain sheet (here, as an example, expense sheet). When replacing sheets, there will be multiple "expense" sheets. That is, there are a plurality of sheets having the same layout as the “old expense” sheet, the “new expense” sheet, the “second-generation expense” sheet, and so on. In this case, it is necessary to determine which sheet is the original, the latest, and from which sheet the amount is to be totaled. If this original is confirmed, the state update processing means 17 can automatically update the state. The target sheet information for determining the original is, for example, a book level range name (for example, “g expense”), and the target sheet information is set in a cell on the sheet in advance.

なお、再定義マクロの起動契機は、参照されるシートから他のシートに移動するときであってもよいし、他のシートから参照するシートに移動するときであってもよい。   The re-definition macro activation trigger may be when the sheet is moved from the referenced sheet to another sheet, or when the redefined macro is moved from another sheet to the referenced sheet.

また、対象シート情報は、範囲名の有無に限らず、コメントの有無・内容、特定のセル(「A1」セルなど)に特定の文字を入れる、特定のセルの書式を特定の形(例えば、罫線の色指定)にするなどであってもよい。   The target sheet information is not limited to the presence / absence of a range name, the presence / absence / content of a comment, a specific cell (such as the “A1” cell), a specific character format, and a specific cell format (for example, For example, the color of the ruled line may be specified).

また、シート名の保存場所は、表計算ソフトウェア16の演算式から読み出せる場所であれば良く、例えば、参照される側のシート、参照する側のシートのいずれのセルであってもよい。また、シート名を保存するための特別のシートを定義してもよいし、範囲名のリスト(Namesオブジェクト)に書き込む方法、シート名を返す関数を活用する方法もよい。   Further, the storage location of the sheet name may be a location that can be read from the arithmetic expression of the spreadsheet software 16, and may be, for example, any cell of the referenced sheet or the referenced sheet. Also, a special sheet for storing the sheet name may be defined, a method of writing in a list of range names (Names object), or a method of using a function that returns the sheet name.

また、再定義マクロが保存する項目としては、参照先のシート名でもよいし、参照先のシート名と参照先のアドレス、セル参照などでもよい。表計算ソフトウェア16の演算式で解釈できる形であればよく、範囲名でもよい。
(d−2)串刺し演算処理時の状態更新処理
The item stored by the redefinition macro may be a reference destination sheet name, a reference destination sheet name and a reference destination address, a cell reference, or the like. Any form that can be interpreted by the calculation formula of the spreadsheet software 16 may be used, and a range name may be used.
(D-2) State update processing during skewering calculation processing

串刺し演算処理時の状態を更新する再定義マクロは、元データシートから、他のシートに移動するときに実行される。   The redefinition macro for updating the state at the time of skewering calculation processing is executed when moving from the original data sheet to another sheet.

移動元のシートが元データシートであるかどうかは、上記(d−1)と同様に対象シート情報(例えば、シートレベル範囲名)がシートに設定されているか、否かで判断する。   Whether or not the movement source sheet is an original data sheet is determined by whether or not target sheet information (for example, a sheet level range name) is set for the sheet as in (d-1) above.

再定義マクロは、移動元のシートの名称が、一覧表シートに含まれているか否かを判定し、そのシート名が、一覧表シートに含まれていなければ処理を続行し、含まれていれば処理を終了する。   The redefinition macro determines whether or not the name of the source sheet is included in the list sheet. If the sheet name is not included in the list sheet, processing continues. If the process ends, the process ends.

再定義マクロは、一覧表シートの所定の領域に、元データシートのシート名を保存する。本実施形態では、シート名の一覧を確実に保持するために、独立したシート(一覧表シート)を定義している。この一覧表シートは、一の「串刺し演算データ単位」に対して、1件定義されている。再定義マクロは、元データシートから他のシートに移動する(DeActivateイベント発生)時に起動する。   The redefinition macro stores the sheet name of the original data sheet in a predetermined area of the list sheet. In the present embodiment, an independent sheet (list sheet) is defined in order to securely hold a list of sheet names. One list sheet is defined for one “skipping calculation data unit”. The redefinition macro is activated when moving from the original data sheet to another sheet (DeActivate event occurs).

また、対象シート情報は、範囲名の有無に限らず、名前付き範囲の有無、コメントの有無・内容、特定のセル(「A1」セルなど)に特定の文字を入れる、特定のセルの書式を特定の形(例えば、罫線の色指定)にするなどであってもよい。   The target sheet information is not limited to the presence / absence of a range name, the presence / absence of a named range, the presence / absence / content of a comment, and the format of a specific cell that puts a specific character in a specific cell (such as the “A1” cell). It may be in a specific shape (for example, ruled line color designation).

また、シート名の保存場所は、表計算ソフトウェア16の演算式から読み出せる場所であれば良く、シート名を保存するための特別のシートを定義(「串刺し演算データ単位」を構成する一覧表シートを定義)して書き込むしてもよいし、参照する側のシートに保存(シート名を保存するための「セル領域」を、集計データシート内に定義して保存(図26参照)してもよい。また、 範囲名のリスト(Namesオブジェクト)に書き込むようにしてもよい。   Further, the sheet name storage location may be any location that can be read from the calculation formula of the spreadsheet software 16, and a special sheet for storing the sheet name is defined (a list sheet that constitutes the "skew calculation data unit") Can be defined and written, or can be saved in the reference sheet ("cell region" for saving the sheet name can be defined and saved in the aggregate data sheet (see FIG. 26)) It may also be written in a list of range names (Names object).

また、再定義マクロが保存する項目としては、参照先のシート名でもよいし、参照先のシート名と参照先のアドレス、セル参照などでもよい。また、表計算ソフトウェア16の演算式で解釈できる形であればよく、範囲名でもよい。   The item stored by the redefinition macro may be a reference destination sheet name, a reference destination sheet name and a reference destination address, a cell reference, or the like. The range name may be used as long as it can be interpreted by an arithmetic expression of the spreadsheet software 16.

また、「串刺し演算データ単位」とは、例えば元データシート、集計データシート、一覧表シートの3種類で一つの構成とする単位であり、それぞれのシート枚数は、元データシートが1〜99枚、集計データシートが1枚、一覧表シートが1枚である。単一の「串刺し演算データ単位」に属する元データシートの枚数上限は、シート行数の上限(表計算ソフトウェアの仕様等による)やコンピュータのメモリ搭載量などに依存し、99枚を超える枚数の定義も可能である。また「串刺し演算データ単位」に属する元データシートは、ゼロ枚でもよい。   In addition, the “skeining calculation data unit” is a unit having one configuration, for example, three types of original data sheet, total data sheet, and list sheet, and the number of sheets is 1 to 99 for the original data sheet. , One total data sheet and one list sheet. The upper limit of the number of original data sheets belonging to a single “skew calculation data unit” depends on the upper limit of the number of sheet rows (according to the specifications of the spreadsheet software), the amount of memory installed in the computer, etc. Definition is also possible. Further, the original data sheet belonging to the “skewer calculation data unit” may be zero.

例えば、会計処理システム10では「串刺し演算データ単位」が実装されている。この単位内では、シートレベル範囲名「n追加」を利用して複数のシートのデータを束ねている。つまりこのシートレベル範囲名「n追加」は1つの「串刺し演算データ単位」に対応しており、シートレベル範囲名を変更すれば、ファイル(ワークブック)内に、複数の「串刺しデータ単位」を定義できる。この場合、「串刺しデータ単位」の構成は異なってもよい。   For example, in the accounting processing system 10, a “skipping calculation data unit” is implemented. Within this unit, the sheet level range name “add n” is used to bundle data of a plurality of sheets. In other words, this sheet level range name “add n” corresponds to one “skew calculation data unit”. If the sheet level range name is changed, a plurality of “skipping data units” can be defined in the file (workbook). it can. In this case, the configuration of the “sticker data unit” may be different.

また本実施形態の会計処理システム10は単一のファイル(ワークブック)内で構成されるものに限らない。一つ又は複数の「串刺し演算データ単位」を別のファイルに保存したり、「串刺し演算データ単位」の一部を他ファイルに保存、つまり一覧表シート、集計データシートや元データシートを別々のファイルに保存する等も可能である。これらの場合にはマクロの他、表計算ソフトウェア16の基本機能に含まれるファイル間のデータ参照機能を活用可能である。
(e)セルの入力内容に応じた警告機能(セルの表示態様変更手段)
Moreover, the accounting processing system 10 of this embodiment is not restricted to what is comprised in the single file (workbook). Save one or more “skewer calculation data units” to another file, or save a part of “skewer calculation data units” to another file, that is, list sheets, summary data sheets and original data sheets can be saved separately. Saving to a file is also possible. In these cases, in addition to the macro, a data reference function between files included in the basic function of the spreadsheet software 16 can be used.
(E) Warning function according to cell input content (cell display mode changing means)

セルの内容(定義情報S)が所定の条件の場合に、当該セルを或る表示態様で表示させる手段であり、入力した値に応じてセルの表示態様が変化するため、警告機能として利用できる。また、初期状態であっても部分的に表示態様が異なるセルが存在するようになるため、シートの装飾性や視認性を高めることもできる。この警告機能や装飾性・視認性を高める設定は、マクロにより再定義され、維持される。   When the cell content (definition information S) is a predetermined condition, it is a means for displaying the cell in a certain display mode, and the display mode of the cell changes according to the input value, so that it can be used as a warning function. . In addition, even in the initial state, cells having different display modes partially exist, so that the decorativeness and visibility of the sheet can be improved. This warning function and the setting that enhances the decoration and visibility are redefined and maintained by the macro.

これら(a)〜(e)の機能はいずれも、状態更新処理手段17のマクロ(再定義マクロ)が或るイベントを契機として起動し、セルの状態を更新する(再定義する)ものである。   Any of these functions (a) to (e) is triggered by a macro (redefinition macro) of the state update processing means 17 triggered by a certain event and updates (redefines) the cell state. .

[イベント]
本実施形態では、ChangeイベントとDeActivateイベントの発生を契機として、状態更新処理を実行する。ただし、上記(a)の第1状態更新処理手段171による状態更新処理は、イベントとは関係なく、各マクロ(会計基本マクロおよび/または再定義マクロ)の中で、必要に応じて利用される。
[Event]
In the present embodiment, the state update process is executed in response to the occurrence of the Change event and the DeActivate event. However, the state update processing by the first state update processing means 171 in (a) is used as necessary in each macro (accounting basic macro and / or redefinition macro) regardless of the event. .

上記(b)の機能は、ChangeイベントおよびDeActivateイベントの発生を契機とし、上記(c)の機能は、Changeイベントが、リスト形式のシートで発生した場合、あるいは、Changeイベントが、帳票形式のシートで発生した場合、あるいは、DeActivateイベントが発生した場合(リスト・帳票、形式不問)を契機とし、上記(d)の機能は、DeActivateイベントが、対象のシートで発生した場合を契機とし、上記(e)の機能は、DeActivateイベントが、対象のシートで発生した場合を契機としている。   The function (b) is triggered by the occurrence of a Change event and a DeActivate event, and the function (c) is a function when the Change event occurs in a list format sheet or when the Change event occurs in a form format sheet. Or when the DeActivate event occurs (list, form, format unquestioned), the function in (d) above is triggered when the DeActivate event occurs on the target sheet. The function e) is triggered when the DeActivate event occurs in the target sheet.

なおこれらは一例であり、例えばDeActivateイベント(シートの移動により、対象シートが非Activeになる場合に発生する)に変えて、Activateイベント(シートの移動により、対象シートがActiveになる場合に発生する)を契機としてもよいし、DeActivateイベントとActivateイベントの両方を契機としてもよい。   Note that these are only examples. For example, instead of the DeActivate event (occurs when the target sheet becomes non-active due to movement of the sheet), the Activate event (occurs when the target sheet becomes active due to movement of the sheet) ), Or both DeActivate and Activate events.

なお、上述した各イベントは、一例であり、同様の機能を有するイベントや、他のイベントであっても適用できる。また、各イベントを発生させる仕組みをオウン・コードして活用する方法もある。この場合、例えば、ファイル保存時やユーザのボタン押下時などのイベントが挙げられる。   Each event described above is an example, and an event having a similar function or another event can be applied. There is also a method of utilizing the mechanism that generates each event as an own code. In this case, for example, an event such as when a file is saved or when a user presses a button can be cited.

なお、本実施形態では、状態更新処理手段17は再定義情報Rと、これを参照対象セルにコピーする再定義マクロを用いて、状態を更新する例を説明したが、会計基本マクロに直接、文字列で参照対象セルのアドレスを記載し(例えばアドレスを含む演算式を文字列で記載)し、当該参照対象セルはユーザの操作を禁止する構成を含むようにしてもよい。この場合、行や列の挿入があり、セルのアドレスが移動した場合には、会計基本マクロ内に文字列で記載された参照対象セルのアドレス(例えばアドレスを含む演算式)を手動で書き換える。   In the present embodiment, the state update processing unit 17 has described the example of updating the state using the redefinition information R and the redefinition macro that copies this to the reference target cell. The address of the reference target cell may be described with a character string (for example, an arithmetic expression including the address is described with a character string), and the reference target cell may include a configuration that prohibits the user's operation. In this case, when a row or column is inserted and the cell address is moved, the address of the reference target cell (for example, an arithmetic expression including the address) described in the character string in the accounting basic macro is manually rewritten.

また、再定義情報Rは、任意のシート(定義情報Sと同一のファイル内のシートとは限らない)の任意のセルに記録し、再定義情報設定領域25には、再定義情報Rの記録されたセルへの参照(ファイル名、シート名、セルアドレス、範囲名など)を記録する構成にしても良い。この場合においても、定義情報Sの属するシート上で、行・列の追加・削除があった時は(一定の条件があるが)、表計算ソフトウェア16の自動修正機能によって、再定義情報Rの内容は修正される。   The redefinition information R is recorded in an arbitrary cell of an arbitrary sheet (not necessarily a sheet in the same file as the definition information S), and the redefinition information setting area 25 records the redefinition information R. References (file name, sheet name, cell address, range name, etc.) to the designated cell may be recorded. Even in this case, when a row / column is added / deleted on the sheet to which the definition information S belongs (although there are certain conditions), the automatic correction function of the spreadsheet software 16 allows the redefinition information R to be changed. The content is modified.

また、再定義情報Rを、定義情報生成欄27のセルに属するオブジェクトやプロパティに記録する方法でもよい。   Alternatively, the redefinition information R may be recorded in an object or property belonging to the cell of the definition information generation field 27.

例えば、第4状態更新手段174において、相手先名欄(元データシートのセル)に属するコメント(オブジェクト)の値(プロパティ)に、演算式などを(文字列の形式で)記録する構成にしてもよい。この場合、行や列の挿入があり、セルのアドレスが移動した場合には、コメントの値として文字列で記載された参照対象セルのアドレス(例えばアドレスを含む演算式)を手動で書き換える。   For example, the fourth state update unit 174 records an arithmetic expression (in the form of a character string) in the value (property) of a comment (object) belonging to the destination name field (cell of the original data sheet). Also good. In this case, when a row or column is inserted and the cell address is moved, the address of the reference target cell described in the character string as the comment value (for example, an arithmetic expression including the address) is manually rewritten.

また、相手先名欄に属するコメントの値に再定義情報Rの記録されたセルへの参照を記録する構成でもよい。   Moreover, the structure which records the reference to the cell by which the redefinition information R was recorded on the value of the comment which belongs to the other party name column may be sufficient.

また本実施形態の状態更新手段17による状態更新処理は、状態更新処理プログラム23中に演算式を保存したり、再定義情報R(例えばアドレスを含む演算式)を定義情報Sの領域中に保存して選択するなどの方法、によってもよい。具体的には例えば、行挿入時に独自のイベントを発生させた場合には、隣接する行から演算式を複写するなどしてもよい。   In the state update process by the state update unit 17 of the present embodiment, an arithmetic expression is stored in the state update processing program 23, or redefinition information R (for example, an arithmetic expression including an address) is stored in the definition information S area. Or a method such as selection. Specifically, for example, when a unique event is generated when a line is inserted, an arithmetic expression may be copied from an adjacent line.

また、上記の実施形態では、表計算ソフトウェア16としてエクセル(登録商標)を用いる例を説明したが、同様の機能を有する他の表計算ソフトウェアであっても同様に実施でき、同様の効果が得られる。   In the above embodiment, an example in which Excel (registered trademark) is used as the spreadsheet software 16 has been described. However, other spreadsheet software having the same function can be implemented in the same manner, and the same effect can be obtained. It is done.

本発明は、また、以上の実施形態で説明した情報処理システムに用いられる情報処理方法である。すなわち、表計算ソフトウェア16を用いて所定の定型処理を行う情報処理方法であって、定型処理を実行するために、表計算ソフトウェア16の少なくとも1つのセルに関連して定義された定義情報Sを用いた処理を実行するステップと、定義情報Sが関連するセル、行、列、シートの少なくともいずれかの操作可能対象について操作がされた場合に、操作予定領域22領域以外の領域(再定義情報設定領域25)に予め定義された再定義情報Rを用いて操作可能対象についての状態を更新するステップと、を有する情報処理方法である。   The present invention is also an information processing method used in the information processing system described in the above embodiment. That is, in the information processing method for performing a predetermined fixed process using the spreadsheet software 16, the definition information S defined in relation to at least one cell of the spreadsheet software 16 is used to execute the fixed process. When an operation is performed on at least one of a cell, a row, a column, and a sheet to which the definition information S is related and a step of executing the used processing, an area other than the scheduled operation area 22 (redefinition information) And updating the state of the operable object using the redefinition information R defined in advance in the setting area 25).

また、本発明は、上記の情報処理方法による処理をコンピュータに実行させる、表計算ソフトウェアを用いた情報処理プログラムである   The present invention is also an information processing program using spreadsheet software that causes a computer to execute processing according to the above information processing method.

また、本発明は、上述の入力手段と、出力手段と、計算処理手段と、状態更新処理手段とを備えて、表計算ソフトウェアを用いて所定の処理の計算を行う計算処理装置である。この計算処理装置は、例えば、上記の計算処理方法による処理をコンピュータに実行させるためのプログラムをコンピュータに実装することによって実現できる。   Further, the present invention is a calculation processing apparatus that includes the above-described input means, output means, calculation processing means, and state update processing means, and performs calculation of predetermined processing using spreadsheet software. This calculation processing apparatus can be realized by, for example, mounting a program for causing a computer to execute the processing according to the calculation processing method described above.

このように、本実施形態の会計処理システム10は、表計算ソフトウェア16を利用することで、従来の手書き帳簿のようにユーザにとってなじみのある環境を再現しつつ、更にはユーザの軽微なカスタマイズを許容しつつ利便性の高い運用を可能としている。   As described above, the accounting processing system 10 of the present embodiment uses the spreadsheet software 16 to reproduce an environment familiar to the user like a conventional handwritten book, and to further customize the user slightly. It allows for highly convenient operation while allowing.

つまり、ユーザの操作の利便性や汎用性を高めるため、ユーザの入力制限や操作の制限は可能な限り少なくしている。このため、基本機能は可能な限り活用し、ユーザによる軽微なカスタマイズ(行の挿入・削除やシートの追加・削除・複製など)を認め、また操作予定領域22も可能な限り広く(非表示領域をなるべく少なく)する(シートの追加や差換え、表組の変更などのセル操作を許容する)とともに、操作予定領域22においては任意の入力を許容するように構成されている。   That is, in order to improve the convenience and versatility of the user's operation, the user's input restriction and operation restriction are reduced as much as possible. For this reason, the basic functions are utilized as much as possible, and slight customization (insertion / deletion of rows, addition / deletion / duplication of sheets, etc.) by the user is allowed, and the operation scheduled area 22 is as wide as possible (non-display area) (As much as possible) (cell operation such as addition or replacement of sheets, change of a table set, etc. is allowed) and arbitrary input is allowed in the scheduled operation area 22.

さらに、ユーザが、定義情報Sが定義(設定)されているセルに関連する行、列、セル、シートの少なくともいずれかの操作可能対象について操作(追加、削除等)することによって、会計処理システム10に本来想定されている処理が行えない(想定される適切な結果が得られない)状態となった場合であっても、状態更新処理手段17が再定義情報R及び再定義マクロを用いて少なくとも一つのセルに定義情報Sを再定義することによって、操作可能対象を、本来想定されている処理が行える(想定される適切な結果が得られる)状態に戻すことができる。これにより、例えば、表計算ソフトウェア16における、「シート保護」、「ブック保護」の機能を利用せずに、安定的な運用が実現できる。   Furthermore, when the user operates (adds, deletes, etc.) an operation target of at least one of a row, a column, a cell, and a sheet related to a cell in which the definition information S is defined (set), an accounting processing system Even in the case where the process assumed in FIG. 10 cannot be performed (the expected appropriate result cannot be obtained), the state update processing unit 17 uses the redefinition information R and the redefinition macro. By redefining the definition information S in at least one cell, the manipulable target can be returned to a state in which the originally assumed processing can be performed (assumed appropriate result is obtained). Thereby, for example, stable operation can be realized without using the functions of “sheet protection” and “book protection” in the spreadsheet software 16.

なお、以上説明した状態更新手段17は、第1状態更新手段171〜第4状態更新手段174の全てが含まれる構成であってもよいし、一部が含まれる構成であってもよいし、一部を適宜組合わせて適用することもできる。   The state updating unit 17 described above may be configured to include all of the first state updating unit 171 to the fourth state updating unit 174, or may include a part thereof. A part of them can be applied in appropriate combination.

また、上記の実施形態では、情報処理システム10として会計処理を行う会計処理システムを例に説明したが、本発明は、表計算ソフトウェアを用いた情報処理システムであれば上記の例に限らない。例えば、売上、成績の管理、在庫や生産の管理など様々な業務で利用される表計算ソフトウェアを用いた情報処理システムにおいても上記の実施形態を同様に適用可能であり、同様の効果が得られる。   In the above embodiment, an accounting processing system that performs accounting processing as the information processing system 10 has been described as an example. However, the present invention is not limited to the above example as long as the information processing system uses spreadsheet software. For example, the above embodiment can be similarly applied to an information processing system using spreadsheet software used in various operations such as sales, results management, inventory and production management, and similar effects can be obtained. .

尚、本発明は、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that various modifications can be made without departing from the gist of the present invention.

1 会計システム(会計端末装置)
2 入力部
3 演算処理部
3a 会計処理部
3b 自動化処理部
4 出力部
10 情報処理システム(会計処理システム)
11 入力手段
12 出力手段
13 制御手段
14 記憶手段
15 基本処理手段
16 表計算ソフトウェア
17 状態更新処理手段
19 情報処理端末
20 情報処理プログラム(会計処理プログラム)
21 会計基本処理プログラム
22 操作予定領域
23 状態更新処理プログラム
25 再定義情報設定領域
27 定義情報生成欄
30 参照先シート名欄
33 集約領域
35 名称変換算式の参照領域
171 第1状態更新処理手段
172 第2状態更新処理手段
173 第3状態更新処理手段
174 第4状態更新処理手段
1 Accounting system (accounting terminal equipment)
2 Input unit 3 Arithmetic processing unit 3a Accounting processing unit 3b Automation processing unit 4 Output unit 10 Information processing system (accounting processing system)
DESCRIPTION OF SYMBOLS 11 Input means 12 Output means 13 Control means 14 Storage means 15 Basic processing means 16 Spreadsheet software 17 State update processing means 19 Information processing terminal 20 Information processing program (accounting processing program)
21 Accounting Basic Processing Program 22 Scheduled Operation Area 23 Status Update Processing Program 25 Redefinition Information Setting Area 27 Definition Information Generation Field 30 Reference Destination Sheet Name Field 33 Aggregation Area 35 Name Conversion Formula Reference Area 171 First State Update Processing Unit 172 2 state update processing means 173 3rd state update processing means 174 4th state update processing means

Claims (15)

表計算ソフトウェアを用いて所定の定型処理を行う情報処理システムであって、
入力手段と、出力手段と、基本処理手段と、状態更新手段とを備え、
前記基本処理手段は、
前記定型処理を実行するために、前記表計算ソフトウェアの少なくとも1つのセルに関連して定義された式又は値(以下、「定義情報」という。)を用いた処理を実行可能であり、
前記状態更新手段は、
ユーザが前記定型処理を行う際に操作が予定されている領域(以下、「操作予定領域」という。)以外の領域に予め定義された再定義情報を有し、
前記定義情報が関連するセル、行、列、シートの少なくともいずれかの操作可能対象について操作がされた場合、前記再定義情報を用いて前記操作可能対象についての状態を更新可能である、
ことを特徴とする情報処理システム。
An information processing system that performs predetermined routine processing using spreadsheet software,
An input unit, an output unit, a basic processing unit, and a state update unit;
The basic processing means is:
In order to execute the standard processing, it is possible to execute processing using an expression or value (hereinafter referred to as “definition information”) defined in association with at least one cell of the spreadsheet software,
The state update means includes
Redefinition information predefined in an area other than an area where an operation is scheduled when the user performs the routine processing (hereinafter referred to as “operation scheduled area”),
When an operation is performed on at least one of a cell, a row, a column, and a sheet that can be associated with the definition information, the state of the operable object can be updated using the redefinition information.
An information processing system characterized by this.
前記定義情報は、前記操作予定領域のセルに対して定義される式または値であり、
前記状態更新手段は、前記定義情報が関連する前記行または前記列の操作がされた場合、および、前記定義情報が定義されているセルに任意の値が上書きまたは該セルの内容が削除された場合の少なくともいずれかの場合において、前記再定義情報を用いて少なくとも一つのセルに前記定義情報を再定義可能である、
ことを特徴とする請求項1に記載の情報処理システム。
The definition information is an expression or value defined for a cell in the operation planned area,
The state update means is configured such that when the row or the column related to the definition information is operated, an arbitrary value is overwritten in the cell in which the definition information is defined, or the contents of the cell are deleted. In at least any of the cases, the definition information can be redefined in at least one cell using the redefinition information.
The information processing system according to claim 1.
前記状態更新手段は、シートの追加または差し換えの操作があった場合、前記基本処理手段による前記所定の処理のうち複数のシートに亘る処理を実行する場合に、追加または差し換えのあったシートが参照の対象となるように該シートを特定し、該シートの名称を、参照する側のシート上に定義された演算式から参照可能な形で保存する、
ことを特徴とする請求項1または請求項2に記載の情報処理システム。
The state update unit refers to a sheet that has been added or replaced when a process for adding or replacing a sheet is performed, or when processing for a plurality of sheets among the predetermined processes by the basic processing unit is executed. The sheet is specified so as to be an object of the sheet, and the name of the sheet is stored in a form that can be referred to from an arithmetic expression defined on the sheet on the reference side.
The information processing system according to claim 1, wherein the information processing system is an information processing system.
所定の条件に応じてセルの表示態様を変更する表示態様変更手段を備える、
ことを特徴とする請求項1から請求項3のいずれかに記載の情報処理システム。
Comprising a display mode changing means for changing the display mode of the cell according to a predetermined condition;
The information processing system according to any one of claims 1 to 3, wherein:
前記定型処理は、会計処理である、
ことを特徴とする請求項1から請求項4のいずれかに記載の情報処理システム。
The routine process is an accounting process.
The information processing system according to claim 1, wherein the information processing system is an information processing system.
表計算ソフトウェアを用いて所定の定型処理を行う情報処理方法であって、
前記定型処理を実行するために、前記表計算ソフトウェアの少なくとも1つのセルに関連して定義された式又は値(以下、「定義情報」という。)を用いた処理を実行するステップと、
前記定義情報が関連するセル、行、列、シートの少なくともいずれかの操作可能対象について操作がされた場合に、ユーザが前記所定の処理を行う際に操作が予定されている領域以外の領域に予め定義された再定義情報を用いて前記操作可能対象についての状態を更新するステップと、を有する、
ことを特徴とする情報処理方法。
An information processing method for performing predetermined routine processing using spreadsheet software,
Executing a process using an expression or a value (hereinafter referred to as “definition information”) defined in association with at least one cell of the spreadsheet software in order to execute the routine process;
When an operation is performed on at least one of the cells, rows, columns, and sheets to which the definition information is related, the region is not the region where the operation is scheduled when the user performs the predetermined process. Updating the state of the operable object using pre-defined redefinition information,
An information processing method characterized by the above.
前記定型処理は、会計処理である、
ことを特徴とする請求項6に記載の情報処理方法。
The routine process is an accounting process.
The information processing method according to claim 6.
請求項6または請求項7に記載の情報処理方法による処理をコンピュータに実行させる、表計算ソフトウェアを用いた情報処理プログラム。   An information processing program using spreadsheet software that causes a computer to execute processing according to the information processing method according to claim 6. 複数の会計処理シートを予め設定している表計算ソフトウェアが搭載されたコンピュータに搭載される会計プログラムであり、
前記複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部を、前記コンピュータに付与する、会計プログラム。
An accounting program installed in a computer equipped with spreadsheet software that pre-sets multiple accounting processing sheets.
An automatic processing unit that performs either one or both of automatic assignment and automatic repair is assigned to the computer with respect to a mathematical expression relating cells in one sheet of the plurality of accounting processing sheets and cells in the plurality of sheets. , Accounting program.
請求項9に記載の会計プログラムにおいて、複数の前記会計処理シートが、売上・仕入シート、日別残高シート、損益計算シート、及び、経費のシートの組である、会計プログラム。   10. The accounting program according to claim 9, wherein the plurality of accounting processing sheets are a set of a sales / purchase sheet, a daily balance sheet, a profit and loss calculation sheet, and an expense sheet. 請求項9又は10に記載の会計プログラムにおいて、前記自動化処理部は、自動付与及び自動修復は、複数の前記会計処理シートの間を遷移するとき、前記会計プログラムの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、の少なくとも一つ以上のときに行う、会計プログラム。   11. The accounting program according to claim 9, wherein the automation processing unit performs automatic granting and automatic repair when transitioning between the plurality of accounting processing sheets, or when the accounting program is started or ended. An accounting program that is performed at least one of the cells in any one of the accounting processing sheets when a mathematical expression other than a predetermined formula is input. 表計算ソフトウェアを格納したコンピュータと、請求項1乃至3の何れかの会計プログラムと、を備える、会計システム。   An accounting system, comprising: a computer storing spreadsheet software; and the accounting program according to claim 1. 複数の会計処理シートを予め設定している表計算ソフトウェアによる会計処理部と、
前記複数の会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部と、
入力部と、
出力部と、
を備える、会計装置。
An accounting processing unit using spreadsheet software that presets a plurality of accounting sheets,
An automatic processing unit that performs either one or both of automatic assignment, automatic repair, and a mathematical expression relating cells in one sheet of the plurality of accounting processing sheets and cells in the plurality of sheets,
An input section;
An output section;
An accounting apparatus.
表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の前記会計処理シートに対し、日々の取引を入力する会計方法であって、
複数の前記会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の前記会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う、会計方法。
It is an accounting method in which a plurality of accounting processing sheets are set in advance for spreadsheet software, and daily transactions are input to the plurality of accounting processing sheets,
When transitioning between a plurality of accounting processing sheets, at the time of starting or ending spreadsheet software, enter a formula other than the expected formula that is a cell in one of the plurality of accounting processing sheets An accounting method for performing either or both of automatic assignment and automatic repair on a mathematical expression relating cells in one sheet of the plurality of accounting processing sheets and cells in the plurality of sheets.
表計算ソフトウェアに対して複数の会計処理シートを予め設定しておき、複数の前記会計処理シートに対し、日々の取引を入力する会計端末装置であって、
複数の前記会計処理シートの間を遷移するとき、表計算ソフトウェアの起動、終了の何れかのとき、複数の前記会計処理シートの何れかのシート内のセルであって予定される数式以外を入力するとき、複数の前記会計処理シートの一シート内のセル間及び複数のシート内のセル間を関係付ける数式に関し、自動付与、自動修復の何れか一方又は双方を行う自動化処理部を備える、会計端末装置。
A plurality of accounting processing sheets are set in advance for spreadsheet software, and a plurality of the accounting processing sheets are accounting terminal devices for inputting daily transactions,
When transitioning between a plurality of accounting processing sheets, at the time of starting or ending spreadsheet software, enter a formula other than the expected formula that is a cell in one of the plurality of accounting processing sheets An automatic processing unit that performs either one of or both of automatic assignment and automatic repair with respect to a mathematical expression that relates cells in one sheet of the plurality of accounting processing sheets and between cells in the plurality of sheets. Terminal device.
JP2017211059A 2016-11-01 2017-10-31 Information processing system, information processing method, information processing program Active JP7245486B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023033446A JP7486240B2 (en) 2016-11-01 2023-03-06 Information processing system, information processing method, and information processing program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016213938 2016-11-01
JP2016213938 2016-11-01

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023033446A Division JP7486240B2 (en) 2016-11-01 2023-03-06 Information processing system, information processing method, and information processing program

Publications (2)

Publication Number Publication Date
JP2018077844A true JP2018077844A (en) 2018-05-17
JP7245486B2 JP7245486B2 (en) 2023-03-24

Family

ID=62150610

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2017211059A Active JP7245486B2 (en) 2016-11-01 2017-10-31 Information processing system, information processing method, information processing program
JP2023033446A Active JP7486240B2 (en) 2016-11-01 2023-03-06 Information processing system, information processing method, and information processing program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2023033446A Active JP7486240B2 (en) 2016-11-01 2023-03-06 Information processing system, information processing method, and information processing program

Country Status (1)

Country Link
JP (2) JP7245486B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950647A (en) * 2019-06-06 2022-01-18 欧姆龙株式会社 Control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08166948A (en) * 1994-12-12 1996-06-25 Casio Comput Co Ltd Table processor
JPH1125198A (en) * 1997-07-04 1999-01-29 Kokusai Electric Co Ltd Table calculation device
JPH11282925A (en) * 1998-03-31 1999-10-15 Bank Of Tokyo Mitsubishi Ltd Business scheme planning device, and computer readable storage medium recorded with business scheme planning program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08166948A (en) * 1994-12-12 1996-06-25 Casio Comput Co Ltd Table processor
JPH1125198A (en) * 1997-07-04 1999-01-29 Kokusai Electric Co Ltd Table calculation device
JPH11282925A (en) * 1998-03-31 1999-10-15 Bank Of Tokyo Mitsubishi Ltd Business scheme planning device, and computer readable storage medium recorded with business scheme planning program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950647A (en) * 2019-06-06 2022-01-18 欧姆龙株式会社 Control system

Also Published As

Publication number Publication date
JP7245486B2 (en) 2023-03-24
JP7486240B2 (en) 2024-05-17
JP2023065627A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US7302444B1 (en) System for designating grid-based database reports
US8818835B2 (en) Method and system for integrating calendar, budget and cash flow of a project
US8725604B2 (en) Method and system for collecting and processing electronic data
US6957191B1 (en) Automated financial scenario modeling and analysis tool having an intelligent graphical user interface
US7840562B2 (en) System and method of reconciling human resource database
US20070055596A1 (en) System for preparing financial disclosures by unifying financial close and financial control steps
Groh et al. Access 2007 Bible
Prague et al. Access 2003 bible
KR20170105869A (en) Method and apparatus for accounting process using integrated trial balance
JP7486240B2 (en) Information processing system, information processing method, and information processing program
JP2003030397A (en) Enterprise information managing device and program
US10229379B2 (en) Checklist function integrated with process flow model
JPH10171908A (en) Accounting processor, recording medium recording journalizing data and recording medium recording transaction data processing program
US11861302B2 (en) AUF XML specification compiler
Swan Practical financial modelling: a guide to current practice
JP2006202125A (en) Accounting method and accounting program for construction industry
JP2004005274A (en) Accounting system, inter-book data tracking interlock method, inter-book data tracking interlock program and storage medium
CA2361206C (en) Automated financial scenario modeling and analysis tool having an intelligent graphical user interface
JP6377229B1 (en) Payroll work flow management system
Grieve et al. Microsoft Dynamics GP 2016 Cookbook
Korkmaz Financial reporting with SAP
Egger Sap Bw Professional
JP5865464B2 (en) Journal data creation device, journal data creation method and program
JP2024013637A (en) Initial cost management system, initial cost management method, and initial cost management program
JP2008097440A (en) Check list management method, check list management device, check list management system and check list management program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201027

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220204

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220823

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230113

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230306

R150 Certificate of patent or registration of utility model

Ref document number: 7245486

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150