JP2004252509A - Information processing method for combining or splitting file and sheet - Google Patents
Information processing method for combining or splitting file and sheet Download PDFInfo
- Publication number
- JP2004252509A JP2004252509A JP2003039061A JP2003039061A JP2004252509A JP 2004252509 A JP2004252509 A JP 2004252509A JP 2003039061 A JP2003039061 A JP 2003039061A JP 2003039061 A JP2003039061 A JP 2003039061A JP 2004252509 A JP2004252509 A JP 2004252509A
- Authority
- JP
- Japan
- Prior art keywords
- file
- sheet
- data
- column
- 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.)
- Withdrawn
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 30
- 238000003672 processing method Methods 0.000 title claims description 24
- 238000012545 processing Methods 0.000 claims abstract description 256
- 238000000605 extraction Methods 0.000 claims abstract description 46
- 239000000284 extract Substances 0.000 claims description 9
- 238000000034 method Methods 0.000 abstract description 84
- 230000008569 process Effects 0.000 description 60
- 238000010586 diagram Methods 0.000 description 35
- 238000012937 correction Methods 0.000 description 23
- 238000007726 management method Methods 0.000 description 15
- 238000013439 planning Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000008520 organization Effects 0.000 description 6
- 230000001174 ascending effect Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 230000010354 integration Effects 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000012384 transportation and delivery Methods 0.000 description 3
- 125000002066 L-histidyl group Chemical group [H]N1C([H])=NC(C([H])([H])[C@](C(=O)[*])([H])N([H])[H])=C1[H] 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 239000012530 fluid Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Storage Device Security (AREA)
Abstract
Description
【0001】
【発明が属する技術分野】
本発明は、データを行及び列の表形式に並べたスプレッドシート又はファイルを加工するための情報処理技術に関する。
【0002】
【従来の技術】
例えば特開平10−171636号公報には、以下のような事項が開示されている。すなわち、ファイル選択、ファイル列選択、2つのファイルの指定した列をキー指定して実施するファイル結合、2つのファイルを指定した列で結合させるファイル連結、ファイルを名称を指定してコピーするファイルコピー、ファイルの行列を入れ替えるファイル行列変更等の機能を可能にするファイル加工装置が開示されている。
【0003】
【特許文献1】
特開平10−171636号
【0004】
【発明が解決しようとする課題】
上で述べた公報では汎用的によく用いられる機能が列挙されているが、必ずしも全ての業務について便利なものであるとは限らない。特に、ファイルの結合や分割については、特定の業務におけるルールに基づく処理も必要となる場合がある。また、上で述べた公報におけるファイル加工装置については、加工のシナリオを設定することについての記述はあるものの、シナリオの各段階における具体的な処理内容についてはあまり開示されていない。さらに、上で述べた公報には、予め用意されている、ある変換パターンを指定すると、ファイルはスキーマ情報となる一行目の繰り返し項目の部分で分解され、分解されたファイルにリンク情報が埋め込まれる。また別の変換パターンを指定すると、ファイルの一行目と一列目とをスキーマ情報として識別子が設定された二つのファイルと、これらの識別子をスキーマ情報として内容のデータが設定された一つのファイルとが生成される。しかし、例えば特定のスプレッドシートのファイルを組織間で送受信することで共有し、上位の管理組織(例えば本社管理部門)と下位の複数の被管理組織(例えば各本部、支店、営業所など)との間で、それぞれにとって好適なフォーマットに変換して送受信し、且つデータの修正等を協働して実施するといった場合にうまく適合する処理は開示されていない。また、スキーマ情報を自動的に抽出するようになっているが、具体的にどのように自動的に抽出するかについては開示されておらず、自動抽出が好ましくない場合もある。
【0005】
また、上で述べた公報では、上で述べたようにスプレッドシートのファイルを組織間で送受信することを想定しておらず、そのための処理については開示がない。数多くの組織間でのデータ加工を実施する上では、データの送受信が簡便に行えることだけではなく、組織間のデータ閲覧又は編集範囲の設定など、協働ルールに付随した処理も必要となる。
【0006】
例えば、図1のような来年度営業目標に関するデータを本社の管理部門が有しており、これらデータを本社の管理部門から、各営業部門に配信し、それぞれの現場でも実情に鑑みて適宜修正の上、営業部門が管理部門に返信して、目標設定の修正を行う場合がある。なお、図1では、全国の全ての営業所データが1枚のシート上に記録されているが、例えば本部別などにシート分けして記録されている場合もある。
【0007】
このようなデータを、各本部や支店それぞれに送付する場合、上記データ全てが記録されたファイルをそのまま各本部や支店に送付するよりは、当該本部又は支店に該当するデータのみを抽出して該当するデータのみを記録したファイルを送付する方が、データ容量を少なくでき、また受ける側にとっては自分とは関係のない余分なデータが混在していないため、データが見やすくなる。また、他の部門のデータを閲覧又は編集可能にしておくと、誤りが発生したり、情報漏洩などの問題も発生する可能性がある。さらに、本部などに送付する際に、所属する各支店の管下にある営業所をそれぞれ別のシートに分けてファイルを形成させる方が見やすい場合もある。特に、組織の規模が大きい場合、全データが一枚のシートに含まれた形になっていると、自分に関連するものだけを選別しながら加工、修正等の作業を行うことは、非効率で且つ間違いを誘発することになるので、図1に示すようなデータを含むファイルやシートを分割したり、抽出して送付することに対するニーズは大きい。また、本来ファイルを見てはいけない者がファイルを無断で開けないようにパスワード設定や、またデータの修正等を行う権限のない者が勝手に修正等することのないように書込み保護のパスワード設定が、分割したファイルやシートの全てに自動的になされると便利である。
【0008】
また、分割されたファイルやシートを該当部門にメール送信する際に、個別にメールの宛先入力やファイル添付などの作業を行うことなく、所定のルールに基づいて一括処理できれば効率的である。
【0009】
さらに、各営業所や支店などが修正などを行った後に、本社管理部門に返信されてきたデータを、本社管理部門が管理するためには、返信されてきたままの状態(例えばファイルやシートが本部や支店別にばらばらに保存されている状態など)で保存するよりも、本社管理部門に都合の良い状態で保存する方が好ましい。そのためには、送付されてきたファイルについて、各ファイルやシートを適宜結合させ、本社管理部門にとって管理しやすいファイル名称やシート名称を設定して、さらに管理しやすいフォルダ(ディレクトリ)に保管しておくこと等が求められる。
【0010】
このような要請は、営業目標設定などに限られず、例えば、各営業所に所属する従業員の勤務実態情報の確認及び修正作業、各営業所に所属する販売担当者の属性データの確認及び修正作業など、さまざまな局面が考えられる。さらに、コルフコンペなどにおいて、コンペ参加者の属性別にゴルフスコアの確認作業を実施する場合など、会社や組織の業務だけに限られるものではない。
【0011】
昨今、組織形態がグループ化するなど組織の複雑化、あるいは組織の統合化などといった組織の流動化が高まる中で、各組織間でデータの確認、修正などの作業を円滑に協働して行うというニーズが高まっている。従来のコンピュータ・システムによっても、データを個別にコピーした上、新規のファイルやシート上に貼り付けたりすることで、このような処理を行うことは可能であった。しかし、データを交換する組織数が多くなればなるほど、このような個別処理には多大の労力が必要となると同時に、処理ミスを誘発してしまうことにもなりかねない。
【0012】
従って、本発明の目的は、ファイル又はスプレッドシートの結合、分割又は抽出などの新規な処理形態を可能とする情報処理技術を提供することである。
【0013】
また、本発明の他の目的は、複数の部門間での協働処理を円滑に行うことを可能とする情報処理技術を提供することである。
【0014】
さらに他の目的は、結合、分割又は抽出されたスプレッドシート又はファイルを簡便に送信するための情報処理技術を提供することである。
【0015】
さらに他の目的は、ファイル又はスプレッドシートの管理を容易にする情報処理技術を提供することである。
【0016】
【課題を解決するための手段】
本発明の第1の態様に係る情報処理方法は、第1の特定の行又は列に分類用データが登録されており且つ少なくとも第2の特定の行又は列に少なくとも第1の特定の行又は列の文字列により特定されるデータが登録されたファイル(例えばスプレッドシートのファイル)の指定を受け付け、当該指定されたファイルのデータをファイル格納部から読み出すステップと、ファイルの分割対象域に含まれるデータを第1の特定の行又は列の文字列に基づき分類し、当該分類に基づきファイルを分割し、分割後のファイルのデータを記憶装置に格納するファイル分割ステップと、ファイルの分割対象外の領域に含まれる所定の性質(例えばラベルデータなど。また吹き出し表示をさせる設定がなされたセルなど。)を有するデータを、ファイル分割ステップにおいて生成される分割後のファイルに承継させるステップとを含む。
【0017】
また、本発明の第1の態様においては、分割前の上記ファイルの第3の特定の行又は列に登録された分類用データの文字列に基づき、上記分割後のファイルのデータを複数シートに分割し、シート分割後のファイルをファイル格納部に格納するシート分割ステップをさらに含むようにしてもよい。ファイル分割に加えてシート分割を行うものである。
【0018】
また、本発明の第1の態様においては、上記ファイルの第1の特定の行又は列の指定、上記ファイルの分割対象域の設定(例えばスタート行などの位置データ)、上記ファイルの分割対象外の領域の設定、上記所定の性質を有するデータ(例えば行又は列などの位置データ)についての設定、上記分割後のファイルに設定すべきパスワードの指定のうち少なくともいずれかについての入力を受け付けるステップをさらに含むようにしてもよい。複数の項目の入力を受け付ける際には、1度に受け付けても、複数回に分けて受け付けるようにしても良い。
【0019】
さらに、本発明の第1の態様においては、上記ファイルの第1の特定の行又は列の指定、上記ファイルの分割対象域の設定、上記ファイルの分割対象外の領域の設定、上記所定の性質を有するデータについての設定、上記分割後のファイルに設定すべきパスワードの指定、上記ファイルの第3の特定の行又は列の指定、上記シート分割ステップにおいて生成された複数シートの少なくともいずれかについて設定すべきパスワードの指定、上記シート分割後のファイルの保存先の設定(例えばディレクトリ名)、上記シート分割後のファイルの名称の設定(例えば接頭語など)のうち少なくともいずれかについての入力を受け付けるステップをさらに含むようにしてもよい。
【0020】
また、本発明の第1の態様においては、メールの送信先と上記分割後のファイルとを対応付けるルールに基づき、メール・アドレスと上記分割後のファイルとのセットを特定する特定ステップと、特定ステップにおいて特定された各セットについて、当該セットのメール・アドレス宛であって上記分割後のファイルを添付したメールのデータを生成し、当該メールのデータを送信するステップとをさらに含むようにしてもよい。メール送信が自動化される。
【0021】
さらに、本発明の第1の態様においては、送信するメールに共通する文のデータの入力を受け付けるステップをさらに含み、入力された文のデータを上記メールのデータに含めるようにしてもよい。
【0022】
また、本発明の第1の態様においては、あるファイル群の指定を受け付け、当該指定されたファイル群に属する各ファイルのデータをファイル格納部から読み出すステップと、指定されたファイル群に属するファイルが含むシートを結合し、結合ファイルを生成する結合ステップと、生成された結合ファイルをファイル格納部に格納するステップとをさらに含むようにしてもよい。例えば、上で述べたような形で分割したファイルを、逆に結合する際に用いる処理である。
【0023】
さらに、上で述べた結合ステップが、指定されたファイル群に属する各ファイルにつき、各ファイルに含まれるデータについて対応関係(例えば行又は列の対応関係若しくはセル同士の対応関係)を特定するステップと、当該対応関係に基づき、指定されたファイル群に属するファイルが含むシートを結合するステップとを含むようにしてもよい。適切な結合を行うためである。
【0024】
上で述べた結合ステップが、同一レコードと判断された複数のレコードをマージするステップをさらに含むようにしてもよい。また、例えば冗長なレコードを除去するためである。
【0025】
さらに、本発明の第1の態様において、結合ファイルとの比較のための比較対象ファイル(例えば修正前又は分割前のファイル)の指定を受け付け、当該比較対象ファイルのデータをファイル格納部から読み出すステップと、結合ファイルと比較対象ファイルとの比較を実施するステップと、結合ファイルにおいて変更がなされたデータを検出した場合には、当該データに対してマーク(例えば色、記号、文字列、文など)を登録するステップとをさらに含むようにしてもよい。
【0026】
さらに、上で述べたファイル分割ステップ又はシート分割ステップが、上記分割後のファイルに含まれる各データにつき、元のファイルにおいて対応するデータの位置情報(例えば対応するセル位置情報)を抽出し、上記分割後のファイルに含まれる各データに対応して登録するステップを含み、さらに、本発明の第1態様において、シート分割後のファイルに関連するファイル群の指定を受け付け、当該指定されたファイル群に属する各ファイルのデータを前記ファイル格納部から読み出すステップと、指定されたファイル群に属するファイルが含むシートを結合し、結合ファイルを生成する結合ステップと、生成された結合ファイルをファイル格納部に格納するステップと、結合ファイルとの比較のための比較対象ファイルの指定を受け付け、当該比較対象ファイルのデータをファイル格納部から読み出すステップと、結合ファイルと比較対象ファイルとの比較を、結合ファイルの各データについて登録された、上記元のファイルにおいて対応するデータの位置情報に基づき実施するステップと、結合ファイルにおいて変更がなされたデータを検出した場合には、当該データに対してマークを登録するステップとをさらに含むようにしてもよい。
【0027】
なお、上で述べたあるファイル群が、受信したメールに添付された複数のファイルを含むような場合もある。
【0028】
本発明の第2の態様に係る情報処理方法は、第1の種類のファイルのファイル名についての第1の文字列(例えば「ゴルフスコア」)及び第2の種類のファイルのファイル名についての第2の文字列(例えば「記入」)の指定を受け付け、指定されたファイル名の第1の文字列に部分一致するファイル名を有する第1の種類のファイル(例えば「ゴルフスコア男性」)及び指定されたファイル名の第2の文字列に部分一致するファイル名を有する第2の種類のファイル(例えば「記入男性」)を特定するステップと、特定された第1の種類の各ファイルのファイル名に含まれる第3の文字列に合致する文字列(例えば「男性」)をファイル名に含む、特定された第2の種類のファイル(例えば「記入男性」)を検索するステップと、検索において条件に合致した第1の種類のファイル(例えば「ゴルフスコア男性」)及び第2の種類のファイル(例えば「記入男性」)の組が検出された場合には、条件に合致した第1の種類のファイル及び第2の種類のファイルのデータをファイル格納部から読み出し、第3の種類の1つのファイルに結合する結合ステップと、結合により生成された第3の種類のファイルをファイル格納部に格納するステップとを含む。
【0029】
上で述べた結合ステップにおいて、第1の種類のファイルのシートと第2の種類のファイルのシートを分けて第3の種類の1つのファイルに結合するようにしてもよい。
【0030】
さらに、本発明の第2の態様において、抽出対象のシート名及び処理対象ファイル群の指定を受け付け、処理対象ファイル群から指定された抽出対象のシート名のシートを含むファイルを抽出するステップと、抽出されたファイルから抽出対象のシート名のシートのみを含むファイルを生成し、ファイル格納部に格納するステップとをさらに含むようにしてもよい。
【0031】
また、本発明の第2の態様において、抽出対象外のシート名及び処理対象ファイル群の指定を受け付け、処理対象ファイル群から指定された抽出対象外のシート名のシート以外のシートを含むファイルを抽出するステップと、抽出されたファイルから抽出対象外のシート名のシートのみを除くファイルを生成し、ファイル格納部に格納するステップとをさらに含むようにしてもよい。
【0032】
また、第1の文字列及び第2の文字列のファイル名中の文字位置(例えば接頭部、末尾部など)が設定されるようにしてもよい。また、第1の種類のファイルと第2の種類のファイルとを、各ファイルに含まれる文字列により分類するステップをさらに含むようにしてもよい。さらに、第1の種類のファイルと第2の種類のファイルとがファイル格納部の別のディレクトリに格納されるようにしてもよい。
【0033】
本発明に係る情報処理方法をコンピュータに実行させるためのプログラムを作成することも可能であって、当該プログラムは、例えばフレキシブル・ディスク、CD−ROM、光磁気ディスク、半導体メモリ、ハードディスク等の記憶媒体又は記憶装置に格納される。また、ネットワークを介して頒布される場合もある。なお、処理途中のデータについては、コンピュータのメモリに一時保管される。
【0034】
【発明の実施の形態】
図2に本発明の一実施の形態に係るコンピュータ・システムの機能ブロック図を示す。コンピュータ1は、例えばパーソナル・コンピュータであって、図示しないが、CPU(Central Processing Unit)等の演算処理部、メモリ、表示処理部、ハードディスクドライブ(HDD:Hard Disk Drive)といったハードウエアと共にBIOS(Basic I/O System)、オペレーティング・システム等の基本的なプログラムをも含むものである。また、コンピュータ1は、表示処理部による処理結果を表示するための表示装置5(例えばCRT(Cathode−Ray Tube)や液晶表示装置)と、ユーザがデータ入力や指示をコンピュータ1に対して行うためのマウス及びキーボードを含む入力装置7とに接続されている。また、HDDの少なくとも一部領域は、各種ファイルを格納するためのファイル格納部3となっている。このコンピュータ1は、適宜、例えばファイル格納部3に格納され且つ本実施の形態に係る処理を実施するためのファイル処理プログラム11をメイン・メモリに読み出して実行し、このファイル処理プログラム11は以下で説明する処理を実行すると共にメイン・メモリ等にワークメモリ領域13を確保する。また、ファイル処理プログラム11は、フレキシブル・ディスクやコンパクト・ディスクなどの可搬記録媒体に記録されている場合もある。
【0035】
本実施の形態に係る処理を実施するためのファイル処理プログラム11は、シート分割処理部111と、シート結合処理部112と、シート抽出処理部113と、ファイル結合処理部114と、メール処理部115と、データ対応付け処理部116と、データ照合処理部117と、ファイル特定処理部118とを含む。これらの処理部による処理内容については以下にフローチャートを用いて詳しく述べるが、ここではそれらの機能について簡単に述べておく。
【0036】
シート分割処理部111は、ファイルに含まれる1つの大きなシートを第1の特定の列(1列目だけではなく処理対象(ここでは分類対象)として特定された列。但し、行であってもよく、以下の説明では「列」が選択されているものとする。)の値(数値のみではなく、文字(記号を含む)、文字列などを含む。)で分類してファイル分割すると共に当該ファイル分割により生成されたファイルに含まれるシートを第2の特定の列の値で分類して当該ファイルの内部においてシート分割し、生成されたファイルをファイル格納部3の所定の位置に格納するものである。第1の特定の列及び第2の特定の列については、ユーザが入力装置7を用いてそれぞれの列番号を表す数値を入力することにより、特定される。以下の説明では「列」であることが固定となっているが、「行」又は「列」を指定するようにしても良い。「行」又は「列」をも指定でき、且つ「1列目」を指定する場合には、「列」及び列番号の「1」が入力される。同様に、「行」又は「列」をも指定でき、且つ「2列目」を指定する場合には、「列」及び列番号の「2」が入力される。この例では、まず1列目に同じ値が登録されている行のデータについてファイルを構成する。さらに、それぞれ構成されたファイル毎に、2列目に同じ値が登録されている行のデータについてシートを構成する。図1に示したシートをシート分割処理部111により分割すると、図3に示すようになる。すなわち、A本部の全営業所についての来年度営業目標について複数シートを含むファイルAと、B本部の全営業所についての来年度営業目標について複数シートを含むファイルBとに分割される。また、ファイルAは、a支店傘下の全営業所についてのシート(シートa支店)、b支店傘下の全営業所についてのシート(シートb支店)等に分割される。また、ファイルBは、d支店傘下の全営業所についてのシート(シートd支店)などに分割される。
【0037】
なお、常に第1及び第2の特定の列を指定する必要はなく、第1の特定の列のみが指定され、第2の特定の列が指定されない場合もある。この場合には、シート分割処理部111は、第1の特定の列に同じ値が登録されている行のデータについてファイルを構成する。図1に示したシートをシート分割処理部111により第1の特定の列(1列目)のみで分割した場合、図4に示したようになる。すなわち、A本部の全営業所についての来年度営業目標について1シートを含むファイルAと、B本部の全営業所についての来年度営業目標について1シートを含むファイルBとに分割される。
【0038】
シート結合処理部112は、ファイル格納部3の所定のディレクトリ(フォルダ(ファイルを格納する機能を有するオブジェクト))に格納されたファイル群に含まれる全シートを1つのシートに結合して1つのファイルを生成し、ファイル格納部3の所定の位置に格納するものである。なお、全部のシートを1つのシートに結合する代わりに、各ファイルに含まれる複数のシートを1枚のシートに結合し、それらの各シートを別々のシートとして1つのファイルに格納することもある。すなわち、複数シートを含む1つのファイルを生成するものである。
【0039】
ファイル結合処理部114は、複数の文字列を連結した形のファイル名を有するファイルがファイル名において共通する文字列毎に例えば別々のフォルダに保存されている場合に、別の共通する文字列をファイル名の一部として含むファイルを各フォルダから抽出する。ファイル結合処理部114は、このようにして各フォルダから抽出された複数のファイルを1つのファイルに結合する。各フォルダにおいて処理対象を特定するための文字列をユーザが入力装置7により入力して指定する。そして、複数のファイルを結合することにより生成される新たなファイルをファイル格納部3の所定の位置に格納する。なお、ファイル結合処理部114は、結合前に抽出されたファイルに含まれている複数のシートを結合するわけではなく、結合前に抽出されたファイルの各シートをそのままファイルに含ませる点においてシート結合処理部112とは処理内容において異なる。また、ファイルが共通する文字列毎に別々のフォルダに保存されていていなくともよい。
【0040】
さらに、複数の文字列を連結した形のファイル名を有するファイルが例えば一つのフォルダの中に混在している場合には、ファイル処理プログラム11に含まれるファイル特定処理部118が、共通する特定の文字列をファイル名の一部として含むファイルを抽出して、例えば当該共通する特定の文字列毎に異なるフォルダに分けてファイル格納部3又はワークメモリ領域13に格納する。その後、ファイル結合処理部114は、各フォルダから別の共通する文字列をファイル名の一部として含むファイルを抽出して1つのファイルに結合し、生成された新たなファイルをファイル格納部3の所定の位置に格納する。なお、上で述べた共通する特定の文字列については、ユーザにより入力装置7により指定される。
【0041】
シート抽出処理部113は、ファイル格納部3の所定のディレクトリに格納されたファイル群に含まれる全ファイルから、特定のシートを含むファイルを抽出し、特定のシートのみを用いて、抽出されたファイル毎にファイルを生成し、生成したファイルをファイル格納部3の所定の位置に格納するものである。シート抽出処理部113によるシートの抽出は、例えば特定の文字列をシート名称の中に含むシート(包含シート)を抽出する方法、特定の文字列をシート名称の中に含むシート(除外シート)を除いたその他の全てのシートを抽出する方法のいずれの方法を用いても良い。
【0042】
特定の文字列をシート名称中に有するシート(抽出シート)が抽出対象として特定された場合、シート抽出処理部113は、ファイル格納部3の所定のディレクトリに格納されたファイル群の中から、該当する文字列をシート名称中に含むシートを含むファイルを抽出する。そして、その抽出されたファイルから、さらに抽出シートのみを特定し且つ抽出して新たなファイルを生成し、当該生成したファイルをファイル格納部3の所定の位置に格納する。
【0043】
また、特定の文字列をシート名称中に含むシート(除外シート)を除いたその他の全てのシートが抽出対象として指定される場合、シート抽出処理部113はファイル格納部3の所定のディレクトリに格納されたファイル群に含まれる全ファイルから、該当する文字列をシート名称中に含むシート(除外シート)以外のシートが含まれていたファイルを抽出し、抽出されたファイルの中からさらに除外シートを除いたその他のシートのみを用いて新たなファイルを生成し、ファイル格納部3に当該生成されたファイルを所定の位置に格納する。
【0044】
ファイル特定処理部118は、ファイル結合処理などの処理を行う際に、処理対象とすべきファイルやシートを特定するために、ファイルやシートの名称を検索し、ファイルやシートの名称中に特定の文字列を有するファイルやシートを特定し、そのデータを例えばワークメモリ領域13内に記憶させるものである。フォルダやシートを特定する文字列と共に、ファイル名やシート名の中における文字列の位置(例えば接頭部や末尾部など)に関する情報が入力装置7から入力された場合、ファイル特定処理部118は文字列とその位置情報の2つの情報から該当するファイルやシートを特定する。
【0045】
データ照合処理部117は、例えばシート分割処理部111によりシート分割して各部門に送付されたファイルが各部門から修正等されて返信されてきた場合に、返信されたファイルやシートをシート結合処理部112により再度結合した上で、当該再結合されたファイルのデータと分割前のファイルのデータとを照合し、修正があったかどうか(すなわち、元のデータと変わっているか否か)、さらにどのような修正が施されたかを判別するものである。
【0046】
メール処理部115は、シート分割処理部111によりファイル分割された複数の異なるファイル等を、メール送信すべき部門に対応付けて配信するための処理を実施する。また、各部門から送られてきたメールを受信した場合に、受信メールに添付されたファイルを保管する処理を実施することもある。
【0047】
データ対応付け処理部116は、例えばシート結合処理部112によりシート結合を行う場合に、結合前のそれぞれのシート上のラベルマーク等のラベルデータやその他のデータを検索し、各シート上のラベルデータやその他のデータのうち同一又は同じ性質のものを対応付けるものである。シート結合処理部112は、データ対応付け処理部116により対応付けられたラベルデータを統合し、各シートにおいて当該ラベルデータと同一の行又は列に登録されたデータを、結合後のシートの当該ラベルデータ以下の行又は列に登録する。このラベルデータとは、図1の第1行目にある「本部」、「支店」、「営業所」、「営業目標(万円)」といったデータ説明用のデータを言う。また、その他のデータとは、本部名、支店名、営業所名、営業目標の具体的数値を言う。なお、図1の「A本部」や「a支店」等のように、ラベルデータであるのかその他データであるかが不明確な場合もあり、ユーザが入力装置7からラベルデータとしてみなされる領域を指定し、その指定された領域についてデータ対応付け処理部116が対応付けを行う場合もある。例えば、結合前のシートそれぞれに、「営業目標(万円)」というラベルデータが存在していれば、データ対応付け処理部116は各シートの「営業目標(万円)」を同じラベルデータとして対応付ける。シート結合処理部112は、シート結合の際にこの対応付けされたラベルデータを1つに統合し、そのラベルデータにより説明される各データを、1つのシート上で同一行又は同一列上に並べて登録する。
【0048】
次に図5乃至図35を用いてファイル処理プログラム11の詳細な処理について説明する。ファイル処理プログラム11を起動すると、例えば図5に示すような画面が表示装置5に表示される。図5にはファイル処理プログラム11のメニュー画面の一例が示されている。図5の例では、シート分割処理部111の処理を実行させるためのシートカッターボタン201と、ファイル結合処理部114の処理を実行させるためのファイル結合ツールボタン202と、シート抽出処理部113の処理を実行させるためのシート抽出ツールボタン203と、シート結合処理部112の処理を実行させるためのシート結合ツールボタン204と、メール処理部115の処理を実行させるためのメール配信ツールボタン206と、データ照合処理部117の処理を実行させるためのデータ照合ツールボタン207と、ファイル処理プログラム11の処理を終了させるための業務終了ボタン205とが含まれる。なお、データ照合処理部117の処理は、例えばシート結合処理部112を実行すると必ず実行されるようにしておくことも可能であり、その場合にはデータ照合ツールボタン207の表示を省略することができる。
【0049】
例えばユーザがシートカッターボタン201をクリックすると、シート分割処理部111の処理が開始される。この処理の内容を図6乃至図12を用いて説明する。最初に、シートカッターボタン201がクリックされると、シート分割処理部111は設定画面表示のための処理を実施する(ステップS1:図6)。そして、設定画面が表示装置5に表示される。この設定画面の一例を図7に示す。図7の例では、分割する元シート(ベースシート)が含まれるファイル(ブック)のファイル名を入力するファイル名入力欄501と、ファイル格納部3の内容を参照して分割する元シートが含まれるファイルのファイル名を指定するための参照ボタン502と、処理対象のシート名を特定するためのシート名を入力するための入力欄503と、ファイルブレイク(ファイル分割)の元となる値が格納されている列(ここでは列が特定されているが行の場合もある。なお行又は列のいずれかを入力により選択する場合もある)の番号を入力するための第1の列番号入力欄504と、シートブレイク(シート分割)の元となる値が格納されている列の番号を入力するための第2の列番号入力欄505と、分割対象データが登録されている行番号(ファイル分割の元となる値が格納されているとして上で特定された並び方向(「列」)とは別の並び方向(「行」)。スタート行の行番号とする。)を入力するための行番号入力欄506と、作成するファイルの接頭語の入力を行うための入力欄507と、生成されるファイルに含まれるシートにパスワード保護をかける場合にチェックを付すためのチェックボックス509と、パスワード入力欄508と、生成されるファイルのオプションとして読み取り専用で開くように推奨するメッセージを出力させるための設定を行う場合のチェックボックス510と、ファイル読み取り時に要求するパスワードを入力するための入力欄511と、ファイル書込み保護のためのパスワードを入力するための入力欄512と、処理実行指示のための実行ボタン513とが含まれる。入力欄501の入力については必須である。また、入力欄504、505、506、507についても必須となる場合もある。なお、分割する元シートを含むファイルに、ベースシートが1枚だけしか含まれない場合には、入力欄503の入力を省略することができる。
【0050】
図7の例では、ファイル名入力欄501には、「c:¥windows¥デスクトップ¥勤怠データ.xls」というファイル名が入力されており、シート名の入力欄503には「4月分個人別勤怠データ」というシート名が入力されており、ファイル分割の元となる値が格納されている列を指定するための第1の列番号入力欄504には「1」が入力されており、シート分割の元となる値が格納されている列を指定するための第2の列番号入力欄505には「2」が入力されており、分割対象データが登録されている行番号を指定するための行番号入力欄506には「2」が入力されており、生成されるファイルの接頭語を指定するための入力欄507には「シートカット後」が入力されており、シート保護を行うようにチェックボックス509にはチェックが付されており、シート保護のためのパスワードの入力欄508には「1111」が入力されている。
【0051】
シート分割処理部111は、このような設定画面における各入力欄又はチェックボックス等で示される設定項目に対するユーザのデータ入力を受け付け(ステップS3)、さらに実行ボタン513のクリック、すなわちシート分割指示を受け付ける(ステップS5)。そして、ユーザにより入力されたデータを一旦例えばワークメモリ領域13等の記憶装置に格納し(ステップS7)、入力データのチェック処理を実施する(ステップS9)。例えば、必須の入力項目にデータが入力されているかということを確認する。なお、分割対象ファイルとして存在しないディレクトリのファイルが指定されていないか等をさらに確認するようにしても良い。もし、エラーが検出されれば(ステップS11:Yesルート)、修正指示表示を表示装置5に行うための処理を実施した(ステップS13)後にステップS1に戻り、設定画面表示を再度行う。なお、前回の入力データを入力欄などに埋め込んだ形で表示し、例えばエラーが発生した項目を特定できるようにしてもよい。
【0052】
一方、エラーが検出されなければ(ステップS11:Noルート)、ファイル名入力欄501により指定された分割の元ファイルをワークメモリ領域13に読み込み、入力欄503で指定されたシート名に従って処理対象シートを抽出する(ステップS15)。例えば図8(a)のようなシートが処理対象シートであるものとし、この処理対象シートがワークメモリ領域13に展開される。次にシート分割処理部111は、第1の列番号入力欄504に入力された列番号の列(ファイルブレイク指定列とも呼ぶ)の値を分類し(ステップS17)、当該分類に従って処理対象シートを分割する(ステップS19)。分割結果は、ワークメモリ領域13に格納される。なお、この分割において、実際に分類及び分割の対象となるのは行番号入力欄506に入力された行番号の行以降のデータである。分割の対象とならない行は、通常図8(a)の第1行目に示すような属性名を表すラベルデータが登録された行などであることが多く、例えばこのような属性名を表す行については分割されたシートにコピーされる。また、これらの行の設定データ(例えば属性内容を説明する吹き出しを出す設定)もコピーされるようにしてもよい。図8(b)にステップS19における分割結果の一例を示す。図8(a)においてファイルブレイク指定列は「A」列(1列目)であり、「A」列の値を分類すると「123」と「125」とに分けることができるため、図8(b)に示すように、「A」列の値が「123」であるシートと、「A」列の値が「125」であるシートとに分割される。なお、後にも述べるがステップS19で行われたシートの分割単位によりファイルが構成されることになるので、ステップS19の処理をファイル分割とも呼ぶことにする。
【0053】
次に、シート分割処理部111は、ステップS19の分割後の各シートにおいて、第2の列番号入力欄505に入力された列番号の列(シートブレイク指定列とも呼ぶ)の値を分類し(ステップS21)、当該分類に従ってステップS19の分割後の各シートをさらに分割する(ステップS23)。分割結果はワークメモリ領域13に格納される。図8(b)においてシートブレイク指定列は「B」列(2列目)であり、図8(b)の上段のシートにおいて「B」列の値を分類すると「987」と「985」とに分けることができるため、図8(c)の第1段目及び第2段目に示すように、「B」列の値が「987」であるシートと、「B」列の値が「985」であるシートとに分割される。また、図8(b)の下段のシートにおいて「B」列の値を分類すると「654」と「432」とに分けることができるため、図8(c)の第3段目及び第4段目に示すように、「B」列の値が「654」であるシートと、「B」列の値が「432」であるシートとに分割される。
【0054】
そしてシート分割処理部111は、1回目の分類(ステップS17)で分割されたシートの単位でファイルを構成する(ステップS25)。すなわち、図8(c)の第1段目及び第2段目により一つのファイルが構成され、第3段目及び第4段目により一つのファイルが構成される。第1段目及び第2段目は、同じファイル内でそれぞれ異なるシートに分けられ、1つのファイルに格納される。また、第3段目及び第4段目は、同じファイル内でそれぞれ異なるシートに分けられ、1つのファイルに格納される。但し、このようなファイル構成は必須ではなく、複数のシートに分ける代わりに、1枚のシートの中で、第1段目と第2段目のデータをその配置をずらして格納することも可能である。同様に、1枚のシートの中で、第3段目と第4段目のデータをその配置をずらして格納するようにしても良い。このような場合、例えば図8(c)の第1段目及び第2段目のデータを、図8(c)に示されているように1枚のシート上で上下に格納しても良いし、左右に分けて格納しても良い。このように、シート分割の分割結果(表)を同一シート上に分割して格納する場合、図7に示した第2の列番号入力欄505に代えて、図9に示すようなデータの配置態様についての入力欄が設けられる。図9における4−2及び4−3による入力指示に従って、シート分割処理部111は、シート分割の分割結果を(表)を同一シート上に並べて格納する。
【0055】
図9における入力欄521には図7の入力欄505と同じ数値を入力する。図9の4−2は、シート分割の分割結果(ブレイクした表)を同一シート上に並べる方向についての選択肢を示しており、上下方向のチェックボックス522と、左右方向のチェックボックス523と、斜め方向のチェックボックス524とが設けられている。この上下方向とは図8(c)の第1段目と第2段目、第3段目と第4段目のように上と下に並べて格納する場合を、左右方向とは横に並べて格納する場合を、また斜め方向とは左上から右下へと斜め方向に配置する場合を示す。また、図9の4−3は、シート分割の分割結果(ブレイクした表)を並べる順位付けについての選択肢を示しており、昇順のチェックボックス525と、降順のチェックボックス526とが設けられている。図9の4−3における表を並べる順位付けとは、シート分割の分割結果(ブレイクした表)を同一シート上に並べる順番であって、例えばシートブレイクにおける分類で抽出された値(シート・ブレイクキーとも呼ぶ)に基づき決定される。昇順は、例えば、文字列であればあいうえお順やアルファベット順、数値であれば数値の小さい順、またASCIIコード等の文字コードの順番などで、表を並べるものであり、降順は昇順の逆の順番で表を並べるものである。
【0056】
図9のような入力欄に入力された、シート分割の分割結果(ブレイクした表)の配置態様についてのデータに基づき、シート分割処理部111は複数の表を同一シート上に並べて格納する。
【0057】
なお、シート分割処理部111は、ステップS21における分類で抽出された値を各シートのシート名称として設定する。また、シート名称として特別に何らかの文字列を付加する場合には、図7の設定画面において、シート名称について付加すべき文字列の入力欄と付加すべき位置(接頭語として付加するのか又は接尾語として付加するのかなど)についてのチェックボックスとを別途設ける。そして、この入力欄及びチェックボックスにより設定されたシート名の設定態様に従って、シート分割処理部111は、シート名を設定する。
【0058】
そして、シート保護やブック(ファイル)のオプションの設定が、チェックボックス509又は510、入力欄508、511又は512においてなされている場合には、シート分割処理部111は、生成した各ファイルに対してオプションの設定処理を施す(ステップS27)。例えば、チェックボックス509にチェックが付されており、パスワード入力欄508にパスワードが入力されている場合には、当該入力されたパスワードによるシート保護のための設定を行う。
【0059】
最後にシート分割処理部111は、例えば入力欄507で指定された接頭語とステップS17における分類で抽出された値(単にブレイクキーとも呼ぶ)との組み合わせをファイル名として、ステップS25において生成された各ファイルをファイル格納部3の所定のディレクトリ(例えば分割対象ファイルと同様のディレクトリ)に保存する(ステップS29)。図8(c)の場合、「シートカット後」という接頭語が指定されているならば、ステップS17では「123」と「125」が抽出されるので、「シートカット後123」と「シートカット後125」とがファイル名として用いられる。
【0060】
なお、ファイルの保存場所については、図7に図示しないシートカット後ファイルの保存ディレクトリについての入力欄を設け、当該入力欄において指定されたディレクトリに保存するようにしても良い。
【0061】
このように、ファイル名、シート名、そしてファイルの保存場所(ディレクトリ)を指定して、シート分割処理部111に上記のような処理を実行させることで、分割後のファイルやシートの管理が容易になる。個別にファイル名やシート名の変更処理を行ったり、保管場所を個別に決めて保存するといった処理が不要となる。
【0062】
以上の説明では、ファイル分割及びシート分割を「列」に登録された値に基づいて行う場合を一例として説明したが、特定の「行」に登録された値に基づき、分割開始「列」以降についてファイル分割及びシート分割を行うようにしてもよい。「行」と「列」のいずれをファイル分割やシート分割の基礎とするかは、図示しないが図7の設定画面において「行」又は「列」を選択入力するためのラジオボタンなどを設けることで、ユーザに選択させるようにすることができる。図7の設定画面では「列」を前提としているが、「行」と「列」の選択入力が行われる場合には、例えばシート分割処理部111は、選択された並び方向によって図7の設定画面を変更するような処理を実行する。例えば、「行」が選択された場合は図7の入力欄504及び505の説明文を、「列」の代わりに「行」を用いたものに置き換える。すなわち、入力欄504の説明文は「3.ファイルブレイクに使用する「行」(「上」から何番目かを数字で記入。)」と表示される。
【0063】
また、分割対象となるデータ等が登録されている全領域と、ファイル分割とシート分割を行うデータのみ登録されている領域(分割の対象なるだけで、データや設定を引き継がないエリア)を、設定画面においてユーザが指定するようにしてもよい。
【0064】
なお、シート分割処理部111の処理は、常にファイル分割及びシート分割(同一シート上にシート分割結果(表)を配置する場合を含む)の両方を実施する必要はなく、いずれか一方のみを行うようにしても良い。例えば、図10に示すように所属部門の属性が2段階(2列)でしか規定されていないシートの場合には、通常はファイル分割又はシート分割のいずれかを実施するだけで足りる。例えば、各支店にそれぞれの支店管下の営業所のデータのみを送信する場合には支店単位でファイル分割を実施することになり、全営業所のデータを例えば各シートに分けて1つのファイルを構成し当該ファイルを送信する場合には支店単位でシート分割を実施することになる。シート分割処理部111は、図7の設定画面において、入力欄504のみに入力がなされた場合にはファイル分割のみを、入力欄505のみに入力がなされた場合にはシート分割のみを実行する。シート分割処理部111は、入力欄504と入力欄505への入力状況を判別し、その判別結果に応じてファイル分割、シート分割、若しくはそれらの両方を実行する。
【0065】
また、図7の行番号の入力欄506にはスタート行を入力するようになっているが、図11に示すような入力欄を入力欄506の代わりに設けることにより、分割の対象となる範囲を、例えば始めのセル(行と列で特定される、データを入力する枠又は升目)の位置と終わりのセルの位置によって特定するようにしても良い。図11では、始めのセルについての行番号入力欄531と、始めのセルについての列番号入力欄532と、終わりのセルについての行番号入力欄533と、終わりのセルについての列番号入力欄534とが設けられている。セルの位置は、列については左端から数えた番号等で、行については上から数えた番号等によって特定される。例えば番号の数の少ない方が始めのセルで、番号の数の多い方が終わりのセルとなる。シート分割処理部111は、図11に入力された数値に基づいて、始めのセルと終わりのセルを特定し、当該始めのセルと終わりのセルにより囲まれた四角形の範囲を分割対象領域として特定し、特定した領域についてのみ分割処理を行う。始めのセルと終わりのセルにより囲まれた四角形の範囲以外の領域については分割の対象から除外する。除外された領域に登録されているラベルデータやその他のデータは分割対象とせず、そのまま分割される各シートに引き継ぐ(コピーする)ことになる。そして、特定した分割対象の領域に登録されているデータだけを図7の設定画面において入力されたその他の所定の設定に基づいて分割を行う。すなわち、特定した分割対象の領域に登録されているデータについては、ファイル分割、シート分割、若しくはファイル分割及びシート分割を実施し、併せてラベルデータやその他の設定などは分割後の各シートに引き継ぐ(コピーする)ことにする。このようにすることで、分割対象シート内に、例えば各部門に送信したいデータ以外のデータなどが含まれていても、送信対象外の部分を除外して必要な部分のデータのみを抽出して処理することができるようになる。
【0066】
また、図7において、作成するファイルの接頭語の入力欄507を設け、入力された文字列を接頭語として用いる例を示しているが、接頭語に限定するものではない。例えば、図7の接頭語の入力欄507に代えて、図12に示すように、作成するファイルのファイル名に付加する文字列と、付加する位置を指定できるようにすることも可能である。すなわち、図12の例では、付加する文字列の入力欄541と、付加する文字列を接頭語とする場合に選択入力するためのチェックボックス542と、付加する文字列を末尾語とする場合に選択入力するためのチェックボックス543と、ブレイクキーの文字列の中の一部の文字列の前に入力した文字列を付加する場合に選択入力するためのチェックボックス544及びブレイクキーの文字列の中の一部の文字列を指定するための入力欄545と、ブレイクキーの文字列の中の一部の文字列の後に入力した文字列を付加する場合に選択入力するためのチェックボックス546及びブレイクキーの文字列の中の一部の文字列を指定するための入力欄547とが設けられる。シート分割処理部111は、図12に入力された内容に従って、ファイル分割のブレイクキーとなった文字列に、入力欄541に入力された文字列を、指定された位置に付加するように組み合わせて、新しいファイルの名称を設定する。シート分割の処理結果として生成された各シートの名称についても同様にシート名に付加する文字列と付加すべき位置を指定することにより、シート分割のブレイクキー(シート・ブレイクキー)となった文字列に、新たに入力された文字列を、指定された位置に付加するように組み合わせて、新しいシートの名称を設定する。
【0067】
付加する文字列としては、例えば「シートカット後」などの文字列が入力される。そして、付加する位置としては、接頭部、末尾部のほか、ファイル分割のブレイクキーとなる文字列の間に挿入する場合もある。例えば、ブレイクキーの文字列が「人事部アンケート質問」など、複数の文字列が連結されている場合に、「人事部アンケート」と「質問」の間に「シートカット後」という文字列を挿入するものである。この場合、図12のチェックボックス544にチェックを付して入力欄545に「質問」と入力するか、図12のチェックボックス546にチェックを付して入力欄547に「人事部アンケート」と入力することとなる。このようにすることで、シートカット後のファイルをより管理しやすい名称に設定することができるようになる。
【0068】
例えば企業の従業員の勤務データが例えば図8(a)のように1つにシートに含まれているが、勤務データの確認などの処理を部門毎に行う場合には、「A」列(1列目)に示されている部門コード毎にファイルを分割して、各部門に配布した方が効率的である。上で述べたようにシート分割処理部111を用いれば、例えば部門コード毎にファイルを分割することができるようになるため、業務が効率化される。また、同じ部門の従業員コード毎に複数のデータが分類されている場合は、従業員コード毎に分類してシート分けする方がさらに処理が効率化される。さらに、ファイル名やシート名を処理しやすいものに設定でき、ファイルの保存場所も一括して適切なディレクトリに保存できるようになる。
【0069】
次に、図13と図14と図8とを用いて、シート結合処理部112による処理を説明する。例えばユーザが図5に示したメニュー画面においてシート結合ツールボタン204をクリックすると、シート結合処理部112の処理が開始される。まずシート結合処理部112は、設定画面表示のための処理を実施する(ステップS31:図13)。そして、設定画面が表示装置5に表示される。この設定画面の一例を図14に示す。図14の例では、結合するファイル群が格納されたフォルダ(ディレクトリ)を入力するための入力欄801と、ファイル格納部3の内容を参照して入力欄801に入力すべきフォルダを指定するための参照ボタン802と、結合後のファイルを保存するフォルダ(ディレクトリ)を入力するための入力欄803と、ファイル格納部3の内容を参照して入力欄803に入力すべきフォルダを指定するための参照ボタン804と、結合後のファイルの名称を入力するための入力欄805と、結合後のシートの名称を入力するための入力欄806と、結合するファイル群に含まれる各ファイルに読み取り保護がかけられている場合には保護を解除するためのパスワード入力欄807と、シートの読み取り保護がかけられている場合には保護を解除するためのパスワード入力欄808と、結合するシート群において結合対象のスタート行(又はスタート列)を指定するための入力欄809と、シート結合処理の実行処理を行わせるための実行ボタン810とが含まれる。図14の例では、入力欄801、803、805及び809が必須の入力欄となっている。入力欄806は、新しく結合されたシートに所定の名称を設定したい場合には必須となるが、特段シート名を設定する必要がない場合には入力が不要となる。その場合、シート結合処理部112はデフォルトのシート名を自動的に設定するか、あるいはシート名を付さない。なお、入力欄807又は808もパスワードの設定がなされていれば必須となる。
【0070】
図14の例では結合するファイル群が格納されたフォルダ(ディレクトリ)の入力欄801には「c:¥WINDOWS¥デスクトップ¥シートカット後ファイル」が入力されており、結合後のファイルを保存するフォルダ(ディレクトリ)の入力欄803には「c:¥WINDOWS¥デスクトップ¥シート結合後」が入力されており、結合後のファイル名称の入力欄805には「4月分個人別勤怠データ」が入力されており、結合後のシート名称の入力欄806には「修正後の結合分」が入力されており、シート保護解除のためのパスワード入力欄808には「1111」が入力されており、結合するシートにおける結合処理のスタート行の入力欄809には「2」が入力されている。
【0071】
シート結合処理部112は、このような設定画面における各入力欄で示される設定項目に対するユーザのデータ入力を受け付け(ステップS33)、さらに実行ボタン810のクリック、すなわちシート結合指示を受け付ける(ステップS35)。そして、ユーザにより入力されたデータを一旦例えばワークメモリ領域13等の記憶装置に格納し(ステップS37)、入力データのチェック処理を実施する(ステップS39)。例えば、必須の入力項目にデータが入力されているかということを確認する。なお、結合対象ファイルを格納したディレクトリとして存在しないディレクトリが指定されていないか、存在しないディレクトリを保存先に指定していないか等をさらに確認するようにしても良い。もし、エラーが検出されれば(ステップS41:Yesルート)、修正指示表示を表示装置に行うための処理を実施した(ステップS43)後にステップS31に戻り、設定画面表示を再度行う。なお、前回の入力データを入力欄などに埋め込んだ形で表示し、例えばエラーが発生した項目を特定できるようにしてもよい。
【0072】
一方エラーが検出されなかった場合には(ステップS41:Noルート)、シート結合処理部112は、入力欄801において指定されたフォルダ(ディレクトリ)から結合の元となるファイル群を例えばワークメモリ領域13に読み込む(ステップS45)。なお、この際にファイル保護のためのパスワードが設定されていたり、シート保護のためのパスワードが設定されている場合には、パスワード入力欄807や808に入力されたパスワードを使用して、ファイルやシートにアクセスできるようにする。例えば、図8(c)に示すように各ファイルのシートがワークメモリ領域13に展開される。そして、シート結合処理部112は、読み出した結合の元となるファイル群の各ファイルに含まれる複数のシートを結合し、さらに全ファイルの全シートを結合する(ステップS47)。なお、入力欄809において入力された行番号(又は列番号)に従って、当該行番号(又は列番号)以降のデータの結合を行う。例えば、図8(b)に示すように、図8(c)に示された各ファイルに含まれる複数のシートを結合し、各ファイルにつき1シートに結合した後、図8(a)に示すように全ファイルのシートを結合する。
【0073】
なお、図8(c)に示したように結合される各ファイルのシートは、同じフォーマットを有している場合もある。すなわち、シート内の表のデータのうち、データの意味や種類を説明するためのラベルデータについてはその位置及び順番(例えば1行目又は1列目における並び方)や、ラベルデータ以外のデータの並べ方(同じ項目のデータが上から下へ列方向に登録されているか、左右の行方向に登録されているかなど)が同じ状態で保存されている。図14の設定画面の入力欄809において「2」と入力されているため、データ対応付け処理部116は、2行目(「行」ではなく「列」でもよい)の1つ上の1行目がラベルデータであると認識する。そして、各シートの1行目の文字列を検索して、ラベルデータの各データ項目が同じ配置になっていることを確認する。確認がとれれば、シート結合処理部112は、ラベルデータにおける各データ項目に関連する各データを同じ列(又は行)に配置してシートを結合する。その際、1行目の各データ項目は、結合後のシートの同じく1行目にコピーされる。
【0074】
また、シートのフォーマットが同一ではなく、ラベルデータの各データ項目それぞれの位置が異なっていたり、表全体の表示位置が数行又は数列ずつずれていた場合などに対応できるように、図14の設定画面におけるスタート行の入力欄809に変えて、図15に示すような表示を行うようにしても良い。図15では、結合するファイルのファイル名を入力する入力欄の列551と、結合するファイルに含まれる結合すべきシートのシート名を入力する入力欄の列552と、結合すべき範囲のスタート行の行番号を入力する入力欄の列553と、結合すべき範囲のスタート列の列番号を入力する入力欄の列554とが設けられている。このスタート行の入力欄とスタート列の入力欄についてはいずれか選択した一方のみに数値が入力される。両方が入力されていた場合には、シート結合処理部112はエラーと認識し、表示装置5にその旨表示させる。また、スタート行(又はスタート列)を入力させる代わりに、ユーザにシート結合する領域の範囲を入力させるようにすることも可能である。その場合には、図16に示すような入力欄を図14の設定画面に設け、結合対象エリアを行番号と列番号によって特定される始めのセルと終わりのセルについての入力を受け付ける。図16では、結合するファイルのファイル名を入力する入力欄の列561と、結合するファイルに含まれる結合すべきシートのシート名を入力する入力欄の列562と、結合すべき範囲のうち始めのセルを特定するための行番号及び列番号を入力する入力欄の列563と、結合すべき範囲のうち終わりのセルを特定するための行番号及び列番号を入力する入力欄の列564とが設けられる。
【0075】
データ対応付け処理部116は、図16に示した入力欄に入力された内容に従って、シート結合を開始すべきスタート行の上の行又はスタート列の左の列を検索し、ラベルデータの各データ項目が同じ順番で配置されているかどうかを確認する。同じ順番で配置されていることが確認された場合、シート結合処理部112は、それぞれ同じラベルデータを統合し、新たに結合して生成されるシート上にコピーする。そして、ラベルデータの各データ項目に関連するその他のデータを同じ行又は列に配置してシート結合を行う。また、データ対応付け処理部116は、図16に示した入力欄に入力された内容に従って、シート結合のスタート行の上の行又はスタート列の左の列を検索し、各ラベルデータの各データ項目が同じ順番で配置されていないと判断した場合には、ラベルデータのデータ項目に係る文字列を検索して、同じラベルデータを対応付ける。例えば、図8(c)の第1段目において、ラベルデータ「C」と「D」とが逆になっており、「D」とその関連データが左から3列目に配置され、「C」とその関連データが右端に配置されていたとする。そして図8(c)の第1段のシートと第2段目のシートを結合する場合、データ対応付け処理部116は、ラベルデータの文字列を検索して、第1段目の「C」が第2段目の「C」と同じであると判断する。データ対応付け処理部116のこの判断に基づきシート結合処理部112はラベルデータの同じデータ項目に関連するデータを同じ列に並べて格納するようにシート結合を行う。なお、列にラベルデータを登録し、行にラベルデータの各データ項目に関連するその他のデータが配置されている場合も同様に処理を行うことができる。
【0076】
さらに各シートのラベルデータとして、必ずしも同じものが配置されているとは限らず、全く異なるラベルデータが配置されていることもあり、このように異なるラベルデータを有する複数のシートを結合する場合もある。例えば、図17(a)に示す「Pファイル」の「Xシート」と図17(b)に示す「Pファイル」の「Yシート」との結合のような場合が例として挙げられる。図17(a)に示すように、第1行第1列におけるラベルデータのデータ項目は「A」で、第1行第2列におけるラベルデータのデータ項目は「B」で、第1行第3列におけるラベルデータのデータ項目は「C」で、第1行第4列におけるラベルデータのデータ項目は「D」である。一方、図17(b)に示す「Yシート」の場合、第1行目にはそのテーブルのタイトルが登録されており、第2行第1列におけるラベルデータのデータ項目は「A」で、第2行第2列におけるラベルデータのデータ項目は「B」で、第2行第3列におけるラベルデータのデータ項目は「E」で、第2行第4列におけるラベルデータのデータ項目は「F」である。このような場合には、図18に示すような入力欄を図14に示した設定画面中の一部に表示して、ユーザに対して入力を求める。図18では、結合すべきファイルのファイル名入力欄の列571と、指定されたファイルの結合すべきシートのシート名を入力する入力欄の列572と、結合すべき範囲の始めのセルの位置(行及び列番号)の入力欄の列573と、結合すべき範囲の終わりのセルの位置(行及び列番号)の入力欄の列574と、対応リンク行の情報(第一及び第二)を入力する入力欄の列575と、対応リンク列の情報(第一及び第二)を入力する入力欄の列576とが設けられている。このように、結合領域の指定と併せて、結合の際のデータの配置を決定するためにラベルデータの位置に関する対応関係の情報(対応リンク情報)の入力を受け付ける。
【0077】
ユーザによって図18において示した入力欄に入力された情報に従って、シート結合処理部112とデータ対応付け処理部116は協働して、シート結合する領域を特定し、結合する際に、ラベルデータの同一データ項目に該当するデータを同じ行又は列に配置したり、ラベルデータの同一項目として統合するものを検索する。例えば図17(a)及び図17(b)に示したようなシートを結合する場合、図18に示すように、結合すべきファイルのファイル名、結合すべきシートのシート名、及び始めのセル位置及び終わりのセル位置についての入力を受け付けることによりシート結合の対象領域を特定し、その上で結合の際のデータの配置を決定するためのリンク情報として「対応リンク行」と「対応リンク列」の入力を受け付ける。図17(a)の場合、1行目にはラベルデータが登録されており、シート結合の対象は2行目より下の部分となる。図17(b)の場合、1行目には表のタイトルが登録されており、2行目にはデータラベルが登録されており、シート結合の対象は3行目より下の部分となる。図18に示したように、Xシートの対応リンク行の「第一」に「1」、対応リンク列の「第一」に「1」、「第二」に「2」と入力される。また、Yシートの対応リンク行の「第一」に「2」、対応リンク列の「第一」に「1」、「第二」に「2」と入力される。そのため、Xシートの1行目とYシートの2行目が、またXシートの1列目及び2列目とYシートの1列目及び2列目とが互いに対応するラベルデータとして特定することができる。また、指定する「対応リンク行」と「対応リンク列」の数は任意であり、図18のように1つ又は2つずつに限定されるものではなく、さらに多くの対応リンクを指定することができる。データ対応付け処理部116は、これら対応リンク情報に従って、各対応する行と列についてラベルデータの同じデータ項目がないかどうかを検索する。まず、「行」検索として、Xシート(図17(a))の1行目とYシート(図17(b))の2行目を検索し、「A」と「B」がラベルデータの同じデータ項目であると判断する。そして、「C」「D」「E」「F」についてはラベルデータの異なるデータ項目であると判断する。なお、ラベルデータの異なるデータ項目についてはシート結合処理部112が、別の列に配置する。例えば、「E」及び「F」の列を、「C」「D」の次(例えば右隣)に配置してシート結合する。なおラベルデータの各データ項目の配置については任意であり、昇順、降順など、ユーザの指定に従ってもよい。その場合には、図14の設定画面においてさらに配置希望の選択入力欄(又はチェックボックス)を追加するようにする。さらに「列」検索として、Xシート(図17(a))の1列目とYシート(図17(b))の1列目とを参照して、「行」検索の結果から、ラベルデータのデータ項目「A」が一致すると判断する。また、Xシート(図17(a))の2列目とYシート(図17(b))の2列目とを参照して、「行」検索の結果から、ラベルデータのデータ項目「B」が一致すると判断する。このようなラベルデータの対応関係をワークメモリ領域13に図19に示すように格納する。すなわち、PファイルのXシートの1行1列と、PファイルのYシートの2行1列とが対応している。また、PファイルのXシートの1行2列と、PファイルのYシートの2行2列とが対応している。これ以外は対応関係が見出されなかったので、登録されない。シート結合処理部112は、対応関係が見出されたラベルデータについては統合してシート結合を行う。対応関係が見出されなかったPファイルのXシートの1行目の3列目及び4列目、並びにYシートの2行目の3列目及び4列目については、シート結合処理部112は、ラベルデータの統合を行うことができず、「A」や「B」など統合されたラベルデータに並べてそれぞれ別々に配置する。
【0078】
そしてデータ対応付け処理部116は、上記の対応関係に基づき同一レコードを抽出する処理を実施する。ラベルデータについてシート間の対応関係を確認しているので、Xシート(図17(a))のデータ項目「A」についての列と、Yシート(図17(b))のデータ項目「A」についての列との対応関係は確定している。また、Xシート(図17(a))のデータ項目「B」についての列と、Yシート(図17(b))のデータ項目「B」についての列との対応関係は確定している。従って、Xシート(図17(a))のデータ項目「A」についての列の特定のレコードの値と同一の値がYシート(図17(b))のデータ項目「A」についての列に登録されているレコードを検索する。図17(a)及び(b)の例では、Xシートの2行目のデータ項目「A」についての列(1列目)の値「123」に一致する値がYシートのデータ項目「A」の列に登録されたレコードは、Yシートの3行目及び4行目のレコードである。そして、Xシート(図17(a))のデータ項目「B」についての列の上記特定のレコードの値と同一の値がYシート(図17(b))のデータ項目「B」についての列に登録されているレコードを絞り込む。上の例では、Xシートの2行目のデータ項目「B」についての列(2列目)の値「987」に一致する値がYシートのデータ項目「B」の列に登録されたレコードは、3行目のレコードである。従って、Xシートの2行目とYシートの3行目とが対応しているものと判断する。このようなレコードの対応関係は、ワークメモリ領域13に格納する。同様な処理を実施すれば、Xシートの3行目のレコードと、Yシートの4行目のレコードとが対応しているものと判断される。なお、他のレコードについては対応しているとは判断されない。
【0079】
レコードの対応関係は例えば図20に示すような形で格納される。図20では、レコードの対応関係だけではなく、セルの対応関係も登録している。すなわち、PファイルのXシートの2行目の1列目及び2列目は、PファイルのXシートの3行目の1列目及び2列目にそれぞれ対応している。また、PファイルのXシート3行目の1列目及び2列目は、PファイルのYシートの4行目の1列目及び2列目にそれぞれ対応している。シート結合処理部112は、対応関係が見出されたレコードの1列目及び2列目の値については完全に一致することが図19の表から分かるため統合し、それ以外の列の値については対応していないので、上で決定したラベルデータの並びに従って並べることによりシート結合を実施する。すなわち、図19のテーブルに登録されるレコードについてはラベルデータのデータ項目A乃至Fの列の値がそれぞれ登録される。一方、Xシート(図17(a))及びYシート(図17(b))においては、対応関係の見出されなかったレコードも存在しており、Xシートのみに存在しているレコードについては、シート結合においてラベルデータのデータ項目A、B、C及びDの列の値のみが登録され、Yシートのみに存在しているレコードについては、シート結合においてラベルデータのデータ項目A、B、E及びFの列の値のみが登録される。
【0080】
このようにしてデータ対応付け処理部116が生成したラベルデータ及びその他のデータの対応関係のデータから、シート結合処理部112はラベルデータ及びその他のデータのシート結合を実施する。なお、上では説明を簡単にするため2つのシートの結合についてのみ説明したが、3以上のシートの結合についても同様の処理を実施すればよい。
【0081】
そしてシート結合処理部112は、オプション処理を実施する(ステップS49)。なお、オプション処理は設定されていない場合には実施されない。このオプション処理の一例としては、シート分割処理部111により生成されたファイルの結合をシート結合処理部112により行う場合には、シート結合処理部112により生成されたファイルのデータとシート分割処理部111により分割された元のファイルのデータとの照合処理である。このデータ照合処理はデータ照合処理部117により実施される。すなわち、各部門で確認され修正された従業員の勤務データは回収されて、再度シート結合処理部112により結合される。結合する際に、データ照合処理部117は、各部門に配布した際のレコードと各部門から回収した後のレコードとを比較することにより修正の有無を検出する。データ照合処理については後に詳述するが、このようにすれば、例えばある部門では修正が多い、ある従業員の修正が多いといったことを検出し、問題があれば指摘して改善させることができるようになる。なお、オプション処理のために、設定画面(図14)では、比較対象のファイルを指定する入力欄を設けて、ユーザにオプション処理を実施させるか否かについて意思表示を行わせ、比較対象ファイルを特定する必要がある。この点についても後に詳述する。
【0082】
その後シート結合処理部112は、入力欄806で指定されたシート名称をシートに付し、入力欄805で指定されたファイル名称のファイルを、ファイル格納部3の入力欄803で指定されたフォルダ(ディレクトリ)に保存する(ステップS51)。
【0083】
以上のような処理を実施することにより、複数のファイルを1つのファイルに結合することができるようになる。なお、複数のファイルの各々にシートが複数存在する場合でも1つのファイルの1つのシートに結合することができる。但し、必ずしも1つのシートに結合する必要は無い。
【0084】
例えば、ファイル格納部3の所定のディレクトリに格納されたファイル群に含まれる各シートが複数の所定のグループに分けられる場合、シート結合処理部112は、それぞれのグループ単位で1つのシートに結合して上記複数の所定のグループにつきそれぞれシートを生成し、これら複数のシートが含まれるファイルをファイル格納部3の所定の位置に格納することも可能である。例えば、「アンケート企画部」というファイルと、「アンケート開発部」という各ファイルに、それぞれ「アンケート内容(企画部)」「回答方法(企画部)」という名称のシートと、「アンケート内容(開発部)」「回答方法(開発部)」という名称のシートが含まれていた場合、ユーザが「アンケート内容」という文字列と「回答方法」という文字列を入力装置7により指定し、その指定に基づいてファイル特定処理部118が各シートの名称の文字列を検索し、各文字列の一部に「アンケート内容」又は「回答方法」を含むシートを特定し、その結果をワークメモリ領域13に展開する。すなわち、各ファイル中の「アンケート内容・・・」というシートと「回答方法・・・」というシートが、それぞれグループを形成するものと判定され、当該グループ分けの情報を保持しつつ、各シートのデータがワークメモリ領域13にコピーされる。シート結合処理部112は、これらグループ別にシートを結合し、複数のシートを生成して新たなファイルに格納する。それによって、例えば企画部と開発部がそれぞれ作成したアンケート内容が1枚のシートに結合され、同様に企画部と開発部がそれぞれ作成した回答方法が1枚のシートに結合され、それらシートが1つのファイルに格納される。
【0085】
次に、図21乃至図23を用いて、ファイル結合処理部114による処理を説明する。まず2つのファイル群に属する各ファイルを結合する場合を例として説明する。例えばユーザが図5に示したメニュー画面においてファイル結合ツールボタン202をクリックすると、ファイル結合処理部114の処理が開始される。まずファイル結合処理部114は、設定画面表示のための処理を実施する(ステップS61:図21)。そして、設定画面が表示装置5に表示される。この設定画面の一例を図22に示す。図22の例では、結合する第1の種類のファイル群が格納されているフォルダ(ディレクトリ)を入力するための入力欄1001と、ファイル格納部3の内容を参照して結合する第1の種類のファイル群が格納されているフォルダを指定するための参照ボタン1002と、結合する第2の種類のファイル群が格納されているフォルダ(ディレクトリ)を入力するための入力欄1003と、ファイル格納部3の内容を参照して結合する第2の種類のファイル群が格納されているフォルダを指定するための参照ボタン1004と、結合後のファイル群を保存するフォルダ(ディレクトリ)を入力するための入力欄1005と、ファイル格納部3の内容を参照して結合後のファイル群を保存するフォルダを指定するための参照ボタン1006と、第1の種類のファイルを特定するための文字列を入力するための入力欄1007と、第2の種類のファイルを特定するための文字列を入力するための入力欄1008と、結合により生成されたファイルの接頭語となる文字列を入力するための入力欄1009と、結合により生成されたファイルを保護するためのパスワードの入力欄1010と、結合により生成されたファイルの読み取り保護のパスワードの入力欄1011と、読取専用の推奨メッセージを表示させるためのチェックボックス1012と、当該結合処理を実行させるための実行ボタン1013とが含まれる。入力欄1001、1003、1005、1007及び1008は必須の設定項目である。
【0086】
ファイル結合処理部114は、このような設定画面における各入力欄で示される設定項目に対するユーザのデータ入力を受け付け(ステップS63)、さらに実行ボタン1013のクリック、すなわちファイル結合指示を受け付ける(ステップS65)。そして、ユーザにより入力されたデータを一旦例えばワークメモリ領域13等の記憶装置に格納し(ステップS67)、入力データのチェック処理を実施する(ステップS69)。例えば、必須の入力項目にデータが入力されているかということを確認する。なお、結合対象ファイルとして存在しないディレクトリのファイルが指定されていないか、存在しないディレクトリを保存先に指定していないか等をさらに確認するようにしても良い。もし、エラーが検出されれば(ステップS71:Yesルート)、修正指示表示を表示装置に行うための処理を実施した(ステップS72)後にステップS61に戻り、設定画面表示を再度行う。なお、前回の入力データを入力欄などに埋め込んだ形で表示し、例えばエラーが発生した項目を特定できるようにしてもよい。
【0087】
一方エラーが検出されなかった場合には(ステップS71:Noルート)、ファイル結合処理部114は、入力欄1001に入力された第1の指定フォルダ(ディレクトリ)からファイル名の中の文字列が入力欄1007に入力された第1の文字列に合致するファイルを、例えばワークメモリ領域13などに読み出す(ステップS73)。例えば図23(a)に示すように、第1の文字列が「ゴルフスコア」であれば、ファイル名「ゴルフスコア男性」、「ゴルフスコア女性」及び「ゴルフスコアプロ」というように文字列「ゴルフスコア」をファイル名の中に有するファイルが読み出される。また、ファイル結合処理部114は、入力欄1003に入力された第2の指定フォルダ(ディレクトリ)からファイル名の中の文字列が入力欄1008に入力された第2の文字列に合致するファイルを、例えばワークメモリ領域13などに読み出す(ステップS75)。例えば図23(b)に示すように、第2の文字列が「記入」であれば、ファイル名「記入男性」、「記入女性」というように文字列「記入」をファイル名の中に有するファイルが読み出される。
【0088】
そして、ファイル結合処理部114は、第1の指定フォルダ(ディレクトリ)から読み出されたファイルと第2の指定フォルダ(ディレクトリ)から読み出されたファイルとが所定の関係を有するか判断する(ステップS77)。本実施の形態では、第1の指定フォルダから読み出されたファイルのファイル名の第1の文字列以外の部分と、第2の指定フォルダから読み出されたファイルのファイル名の第2の文字列以外の部分とが一致するファイルが存在するかを判断する。図23(a)と図23(b)の例では、第1の文字列が「ゴルフスコア」で、第2の文字列が「記入」であれば、第1の指定フォルダにおけるファイル「ゴルフスコア男性」と第2の指定フォルダにおけるファイル「記入男性」とが抽出され、第1の指定フォルダにおけるファイル「ゴルフスコア女性」と第2の指定フォルダにおけるファイル「記入女性」とが抽出される。但し、第1の指定フォルダにおけるファイル「ゴルフスコアプロ」については第2の指定フォルダにおいて対応するファイルは存在しない。ステップS77では、上で述べたような所定の関係を有するファイル・セットについてはステップS79に移行し、上で述べたような所定の関係を有しないファイル・セットについてはステップS81に移行する。
【0089】
ファイル結合処理部114は、上で述べたような所定の関係を有するファイル・セットについては、第1の指定フォルダ(ディレクトリ)から読み出されたファイルの内容を第1のシートに、第2の指定フォルダから読み出されたファイルの内容を第2シート以降に含むファイルを構成する(ステップS79)。例えば図23(c)に示すように、「ゴルフスコア男性」ファイルのシートを第1のシートとし、「記入男性」ファイルのシートを第2のシートとするファイル1101と、「ゴルフスコア女性」ファイルのシートを第1のシートとし、「記入女性」ファイルのシートを第2のシートとするファイル1102とが生成される。
【0090】
一方、ファイル結合処理部114は、上で述べたような所定の関係を有しないと判断されたファイルについては、第1又は第2の指定フォルダから読み出されたファイルの内容でファイルを構成する(ステップS81)。例えば図23(a)及び図23(b)に示すように、第1の指定フォルダにおける「ゴルフスコアプロ」ファイルに対応する第2の指定フォルダにおけるファイルが無いので、「ゴルフスコアプロ」ファイルの内容でファイル1103(図23(c))を構成する。
【0091】
そして、ファイル保護のパスワード設定や、ファイルの読み取り保護のパスワードや、読み取り専用の推奨メッセージ表示のオプション設定が、入力欄1010又は1011、チェックボックス1012において行われている場合には、ファイル結合処理部114は、生成した各ファイルに対してオプションの設定処理を施す(ステップS83)。
【0092】
最後にファイル結合処理部114は、入力欄1009で指定された接頭語と、ステップS79において一致すると判断された文字列とを用いて各ファイルに名称を設定し、入力欄1005において指定されたファイル格納部3内の所定のフォルダ(ディレクトリ)に各ファイルを保存する(ステップS85)。例えば、入力欄1009で指定された接頭語が「配布資料」であるとすると、図23(c)のファイル1101の場合には「配布資料男性」(「男性」が一致した部分)、ファイル1102の場合には「配布資料女性」(「女性」が一致した部分)となる。なお、ステップS81において一致するものが無いと判断された場合には、入力欄1007又は入力欄1008で入力された文字列以外の部分(図23(a)の場合には「プロ」)と入力欄1009の接頭語(ここでは「配布資料」)により、ファイル名を決定する。図23(c)に示すように、この場合には「配布資料プロ」となる。
【0093】
以上では、2つのファイル群に属するファイルの結合処理を例として説明したが、ファイル結合は3つ以上のファイル群の間でも行うことができる。
【0094】
例えば3つのファイル群のファイルを結合させる場合の例を挙げると、「ゴルフスコア男性」「ゴルフスコア女性」「ゴルフスコアプロ」という第1のファイル群と、「記入男性」「記入女性」「記入プロ」という第2のファイル群と、「男性Aチーム」「女性Aチーム」「プロAチーム」という第3のファイル群が、ユーザによってそれぞれ別のフォルダに保存されていたとする。
【0095】
また、ユーザが同じ文字列を有するファイル名のファイルをフォルダに手作業で分類分けすることに代えて、様々な名称のファイルが多数混在するフォルダの中から、ファイル名の中に同じ文字列を含むファイルを、ファイル特定処理部118が特定するようにしても良い。ファイル特定処理部118は、各ファイルの名称を読み取り、同じ文字列を含むファイル名を有するファイルを特定し、それらを一つのファイル群として例えば同じフォルダ内に移動させたり、ファイルコピーのうえ同じフォルダ内に保存しても良い。ここでは、「ゴルフスコア」という文字列と「記入」という文字列と、さらに「Aチーム」という文字列毎にファイルが特定され、各々のフォルダに格納される。
【0096】
このような3つのファイル群が存在する場合、ユーザが第1の文字列として「ゴルフスコア」を、第2の文字列として「記入」を、そして第3の文字列として「Aチーム」を指定したものとする。各ファイル群とも、ファイル名のうち指定された文字列以外の部分が「男性」「女性」又は「プロ」という文字列を含む3つのファイルが含まれている。そこで、ファイル結合処理部114は、「男性」という同一の文字列を含む「ゴルフスコア男性」「記入男性」「男性Aチーム」という3つのファイルをファイル格納部3から読み出し、各ファイルのシートを1つのファイルに結合し、3枚のシートを有する新たなファイルを生成する。同様に、「女性」という同一の文字列を含む「ゴルフスコア女性」「記入女性」「女性Aチーム」という3つのファイルをファイル格納部3から読み出し、各ファイルのシートを1つのファイルに結合し、3枚のシートを有する新たなファイルを生成する。さらに、「プロ」という同一の文字列を含む「ゴルフスコアプロ」「記入プロ」「プロAチーム」という3つのファイルをファイル格納部3から読み出し、各ファイルのシートを1つのファイルに結合し、3枚のシートを有する新たなファイルを生成する。
【0097】
なお、指定する文字列については、ファイル名中の文字位置を指定しなくともよいし、また接頭語や末尾語、さらに特定の文字列の前後など、特定の位置にあることを条件としてユーザが指定することもできる。
【0098】
例えば、「ゴルフスコア○○△△」「○○ゴルフスコア△△」「○○△△ゴルフスコア」というファイル名のファイルが様々なフォルダ内に混在しており、「ゴルフスコア」という文字列が入力装置7から指定され、そのファイル名中の文字位置が指定されなかった場合、ファイル結合処理部114は「ゴルフスコア」という文字列を含むファイル名の3つのファイル全てを特定し、一つのファイル群として、例えばワークメモリ領域13に展開し、ファイル結合処理を実施する。
【0099】
また、文字列のファイル名中の文字位置を併せて指定する場合、入力装置7からは文字列の他、指定された文字列の文字位置が入力される。文字列の文字位置としては、ファイル名の接頭部、末尾部、さらに特定の文字列の前後のいずれかの位置にあるものとして指定することができる。「ゴルフスコア」を接頭語とするファイル名のファイルを指定した場合には、ファイル結合処理部114は「ゴルフスコア○○△△」というファイル名のファイルだけを特定する。また、「ゴルフスコア」を末尾語とするファイル名のファイルがユーザにより入力装置7により指定された場合、ファイル結合処理部114は「○○△△ゴルフスコア」というファイルを特定する。また、「○○」という文字列の後ろ又は「△△」という文字列の前に「ゴルフスコア」という文字列を含むファイル名のファイルが指定された場合、ファイル結合処理部114は「○○ゴルフスコア△△」というファイルだけを特定する。
【0100】
こうして特定されたファイルについて、先に指定した文字列以外の部分に、別の文字列をファイル名の一部として有するファイルを各ファイル群から特定し、ワークメモリ領域13内に格納する。そして、特定された各ファイルを結合する。
【0101】
このような処理を実施することにより、例えばゴルフスコアなどのデータについて、各部門の担当者に送信して確認させた後に、とりまとめ部門で処理しやすいようにファイルを生成することができる。また、アンケートの質問用シートとアンケートの回答用シートとを別のファイルに作成し、上で述べたような態様でファイル名を決定しておけば、質問用シートと回答用シートがそれぞれ複数のファイルに分かれて存在したとしても、簡単に質問シート及び回答用シートをまとめて1つのファイルを生成することができるようになる。
【0102】
また、シート分割されたファイルが各部門に送られ、データの修正などがなされた後に返送されてきた場合、その返送されてきた複数のファイルをファイル結合する際、シート分割前とファイル結合後のデータについて照合処理を行うオプションを実施する。この照合処理については、後に詳述する。
【0103】
さらに、上の例ではファイル結合後のファイルの名称について、接頭語の文字列を指定してファイル名を指定することとしたが、指定する文字列の位置はユーザが任意に選択できるようにしても良い。その場合、図22の設定画面に、保存ファイルの名称指定のための文字列と併せて、文字列の配置される位置の入力欄が設けられることになる。
【0104】
次に、図24乃至図26を用いて、シート抽出処理部113による処理を説明する。例えばユーザが図5に示したメニュー画面においてシート抽出ツールボタン203をクリックすると、シート抽出処理部113の処理が開始される。まずシート抽出処理部113は、設定画面表示のための処理を実施する(ステップS91:図24)。そして、設定画面が表示装置5に表示される。この設定画面の一例を図25に示す。図25の例では、処理対象のファイルが格納されているフォルダ(ディレクトリ)の入力欄1301と、ファイル格納部3の内容を参照して処理対象のファイルが格納されているフォルダ(ディレクトリ)を指定するための参照ボタン1302と、抽出対象シート以外のシートを含むファイルをシート抽出処理実施後に格納するためのフォルダ(ディレクトリ)を入力するための入力欄1303と、ファイル格納部3の内容を参照して抽出対象シート以外のシートを含むファイルを格納するためのフォルダ(ディレクトリ)を指定するための参照ボタン1304と、抽出対象シートを含むファイルをシート抽出処理実施後に格納するフォルダ(ディレクトリ)を入力するための入力欄1305と、ファイル格納部3の内容を参照して抽出対象シートを含むファイルを格納するフォルダ(ディレクトリ)を指定するための参照ボタン1306と、抽出するシート名称(又はシートの接頭語などの文字列)を入力するための入力欄1307と、抽出対象のファイルに設定されているパスワードを入力するための入力欄1308と、抽出対象のファイルに設定されている読み取り保護のパスワードを入力するためのパスワード入力欄1309と、シート抽出処理を実行させるための実行ボタン1310とが含まれる。入力欄1301、1303、1305及び1307が必須の設定項目である。なお、抽出対象以外のシートについては、必ずしも別途のファイルを生成する必要はない。抽出対象以外のシート用のファイルを生成しない場合は、入力欄1303への入力は不要となる。
【0105】
シート抽出処理部113は、このような設定画面における各入力欄で示される設定項目に対するユーザのデータ入力を受け付け(ステップS93)、さらに実行ボタン1310のクリック、すなわちシート抽出指示を受け付ける(ステップS95)。そして、ユーザにより入力されたデータを一旦例えばワークメモリ領域13等の記憶装置に格納し(ステップS97)、入力データのチェック処理を実施する(ステップS99)。例えば、必須の入力項目にデータが入力されているかということを確認する。なお、抽出対象ファイルとして存在しないディレクトリのファイルが指定されていないか、存在しないディレクトリを保存先に指定していないか等をさらに確認するようにしても良い。もし、エラーが検出されれば(ステップS101:Yesルート)、修正指示表示を表示装置に行うための処理を実施した(ステップS103)後にステップS91に戻り、設定画面表示を再度行う。なお、前回の入力データを入力欄などに埋め込んだ形で表示し、例えばエラーが発生した項目を特定できるようにしてもよい。
【0106】
一方エラーが検出されなかった場合には(ステップS101:Noルート)、シート抽出処理部113は、入力欄1301において指定されたフォルダ(ディレクトリ)から抽出元のファイルを例えばワークメモリ領域13などに読み込む(ステップS105)。なお、この際抽出元のファイルにファイル保護やファイル読み取り保護がかけられている場合には、パスワード入力欄1308や1309に入力されたパスワードを用いて保護を解除する。例えば、図26(a)に示すようにファイル1401及びファイル1402が指定フォルダから読み出され、ワークメモリ領域13に展開される。
【0107】
シート抽出処理部113は、入力欄1307で指定されたシート名称でシートを検索し、もし検出されれば当該シートをコピーして、ワークメモリ領域13にコピーする(ステップS107)。また、指定されたシート名称ではないシートについても別途コピーする(ステップS109)。例えば「123987」というシートを抽出する場合には、ファイル1401に「123987」というシートが含まれるので、当該シートのデータをコピーする。一方、同じファイルの「123985」というシートは、別途コピーされる。また、ファイル1402については「123987」というシートは含まれないので、そのままコピーされる。
【0108】
そして、シート抽出処理部113は、指定のシート名称を有するシートと、指定のシート名称を有しないシートとを別にしてファイルを構成し、所定のルールでファイル名称を規定して、指定のシート名称を有するシートを含むファイルについては入力欄1305において入力されたフォルダ(ディレクトリ)に保存し、指定のシート名称を有しないシートを含むファイルについては入力欄1303において入力されたフォルダ(ディレクトリ)に保存する(ステップS111)。例えば、図26(a)及び図26(b)の例では、「123987」というシートについてはファイル1405が構成され、同じファイル1401の残りのシートについてはファイル1406が構成され、ファイル1402については「123987」というシートは全く含まれていないのでそのままファイル1407が構成される。そしてファイル1405は入力欄1305で指定されたファイル格納部3のフォルダ(ディレクトリ)に保存され、ファイル1406及び1407は入力欄1303で指定されたファイル格納部3のフォルダ(ディレクトリ)に保存される。なお、ファイル群1404のファイルには、例えば抽出元のファイルと同じファイル名を使用し、ファイル群1403のファイルについては、例えば抽出元ファイルのファイル名とシート名称でファイル名を構成するようにする。シート抽出処理後のファイル名については、例えば図7の設定画面における入力欄507を図25に設けたりして、同様の処理にて決定する。また、図14の入力欄805、806又は図12に示した入力欄を、抽出対象シート用と抽出対象外シート用にそれぞれ図25内に設けることとし、シート抽出処理部113が入力された内容を判断して、その内容に基づいて名称を設定するようにしても良い。
【0109】
このようにすることにより、処理を行うデータを含むシートを抽出して別ファイルに格納することができるようになる。また、逆に特定のシートを除いたファイルをも生成することができる。このような処理により、例えば、質問シートと回答シートを含むアンケート・ファイルから回答シートのみを抽出することも可能となる。
【0110】
また、先の図3のファイルAやファイルBについて、シート抽出処理を行うと、図27(a)乃至(d)に示すように、それぞれファイルA(a支店)、ファイルA(b支店)、・・ファイルB(d支店)、・・という1枚のシートだけを含むファイルや、特定の複数のシートだけを含むファイルや、特定のシートだけを除いたファイルを生成することができる。
【0111】
なお、抽出するシートを特定する方法は、抽出するシートの名称を文字列によって指定しても良いし、抽出対象としないシートの名称を文字列で指定し、それ以外のシートを抽出対象とすることもできる。また、抽出対象とするシートや抽出対象としないシートの指定の仕方は、各シートのシート名の中に任意の位置に配置された特定の文字列をシート抽出処理部113又はファイル特定処理部118が検索することで特定しても良い。図28にこのような実施の形態に対処するための入力欄の一例を示す。図28は、図25の入力欄1307を置換するものとなる。
【0112】
図28では、以下が抽出対象シートについての設定である場合にチェックするチェックボックス1201と、以下が抽出対象外シートについての設定である場合にチェックするチェックボックス1202と、シートを特定するための文字列の入力欄1203と、文字列の位置を接頭部とするためのチェックボックス1204と、文字列の位置を末尾部とするためのチェックボックス1205と、選択しないことを設定するためのチェックボックス1206と、特定の文字列の前であることを指定するための文字列の入力欄1207と、特定の文字列の後であることを指定するための文字列の入力欄1208とが設けられる。指定する文字列がシート名そのものである場合や、文字列の位置がシートによって異なる場合には、文字列の位置としてはチェックボックス1206にチェックを付すようにする。
【0113】
次に、メール処理部115によるメール配信処理時における処理を説明する。先に示した図1のシートから分割された図27(a)乃至(d)に示すような分割された各シートを対応する支店に配信する場合を例として説明する。メール処理部115は、事前に作成され、ファイル格納部3に格納されている配信マスタ・ファイルを参照する。図29に、配信マスタ・ファイルの一例を示す。図29の例では、本部名の列2001と、支店名の列2002と、支店コードの列2003と、支店担当者名の列2004と、支店担当者コードの列2005と、担当者メールアドレスの列2006とが含まれる。メール処理部115は、図5のメール配信ツールボタン206がクリックされると、例えば図30のような設定画面を表示装置5に表示する。図30の例では、配信先アドレスを指定するために使用する配信マスタ・ファイルのファイル名の入力欄2101と、ファイル格納部3の内容を参照して配信先アドレスを指定するために使用する配信マスタ・ファイル名を指定するための参照ボタン2102と、配信マスタ・ファイルにおいて配信先のメールアドレスが登録されたカラム名を入力する入力欄2103と、配信するファイル群が格納されているディレクトリ名を入力するための入力欄2104と、ファイル格納部3の内容を参照して配信すべきファイルが格納されたディレクトリ名を指定するための参照ボタン2105と、配信マスタ・ファイルにおけるカラム名と配信すべきファイルのファイル名の対応付けルールの入力欄2106と、メール本文の入力欄2107と、送信ボタン2108と、キャンセルボタン2109とが設けられる。
【0114】
図30の例では、配信マスタ・ファイルのファイル名の入力欄2101において「支店配信マスタ」というファイル名が指定され、当該「支店配信マスタ」というファイルのカラム名としてカラム名の入力欄2103において「担当者メールアドレス」というカラム名が指定される。これにより、各支店の担当者のメール・アドレスを取得することができるようになる。また、配信すべきファイルはそれが格納されているディレクトリ「c:¥..¥支店¥」がディレクトリ名の入力欄2104において指定されるため、配信すべきファイル群を特定することができる。また、配信すべきファイルのファイル名と配信マスタ・ファイルにおけるカラム名の組み合わせのルールの入力欄2106において「本部名(支店名)」というルールが指定される。従って、例えば本部名がA本部で、支店名がb支店であれば、「A(b支店)」というファイル名となっているはずであるから、入力欄2104により指定されたディレクトリ及び当該ファイル名からファイルを特定することができるようになる。
【0115】
送信ボタン2108がクリックされると、メール処理部115は、配信マスタ・ファイル及び図30のような設定画面において入力されたデータを用いて、図31に示すようなメール配信リストを生成し、例えばワークメモリ領域13に格納する。図31の例では、配信マスタ・ファイルの担当者メール・アドレスの列2006から特定される配信先(メール)アドレスを格納する列2111と図30の入力欄2104及び2106により特定される添付ファイルの列2112とが設けられており、各支店の担当者のメール・アドレスと当該担当者に配信すべきファイルとが対応付けられる。従って、実際にメールを配信する際に必要な情報を本メール配信リストから得ることができるようになる。
【0116】
メール処理部115は、また図30のメール本文入力欄2107に入力されたメール本文のデータを受け付ける。例えば、「本社営業企画部で作成した、来年度の営業所別の営業目標(案)をお送りします。内容を確認の上、各営業所の実態等に即して、目標を修正するべき必要がある場合には、数値を修正の上返送願います。なお、目標を修正した場合は、その根拠を併せて目標数値欄に記入の上返送願います。」といったように各支店に共通の内容を登録する。また、「本社営業企画部で作成した、来年度の営業所別の営業目標(案)をお送りします。添付ファイルをご確認のうえ、ご検討いただき、&&支店名&&としての方針に基づいて適宜、数値を修正の上返送願います。なお、目標を修正した場合は、その根拠を併せて目標数値欄に記入の上返送願います。」といったように「&&」で挟み込んだ文字列(ここでは「支店名」)に対応する配信マスタ・ファイルのカラムのデータを挿入するスクリプトを含むように入力しても良い。これにより、「&&支店名&&」の部分には、A支店宛のメールであれば「A支店」が埋め込まれ、実際のメール本文では、あたかも各支店ごとにメール本文を作成したように見えるメールを生成することができるようになる。
【0117】
このようにメール処理部115は、各配信先について、宛先メールアドレス、添付ファイル、及びメール本文のデータを取得することができたので、メールのデータを生成し、ネットワークを介してメールを配信する。なお、メール処理部115が、メールのデータ生成及び配信を実施せず、別途コンピュータ1にインストールされているメーラに、宛先メール・アドレスのデータ、添付ファイルのデータ、メール本文のデータを出力し、メーラがファイル処理部プログラム11から受信したデータを基にメールのデータを生成し、ネットワークを介してメールを配信するような構成としてもよい。
【0118】
次に、データ照合処理部117が、シート分割処理部111と、シート結合処理部112と、ファイル結合処理部114などと協働して行うデータ照合処理について説明する。例えば図5のデータ照合ツールボタン207がクリックされてデータ照合を行う際、それぞれのシート上の各セルのデータを関連付けた上で比較することが必要となる。例えば、シート分割処理部111がシート分割を行う場合、分割前のシート上の各セルの位置情報を、分割後のシートにおける対応するセルに対応付けて保持するするような態様で、分割後のシートのファイルをファイル格納部3に格納する。関連付け情報は、分割前のファイル名、シート名、セル位置(行及び列の番号など)の情報を含む。このように、関連付け情報は分割後のセルに保持させているが、分割前のセルに保持させるようにしても良い。さらに、シート分割されたファイルが各部門に送付され、各部門で修正等した後に返送されてくる。その後、シート結合処理部112がシート結合処理を行う際に、データ照合処理部117は、各セルに対応して保持しておいた分割前のシート上のセルの位置情報を読み出す。そして、新たにシート結合処理により生成されたシートのセルの値と、当該セルに対応して保持しておいた分割前のシート上のセルの値を読み出して比較すると、データが変更されているか、どのように変更されているかを確認することができる。このようにすることで、分割及び結合されるシートについて、分割前のデータと分割及び結合後のデータとを比較し、修正の有無を検出することができるようになる。
【0119】
なお、上で述べたように各セルに関連付けられた他方のセルの位置情報を保持させる代わりに、図32に示すようにテーブル上に関連するファイル及びシートを特定し、さらにそのシート上における対応関係を各セルについて登録して、別ファイルとして例えばファイル格納部3に保持しておいても良い。図32においては、分割前のファイル及びシートについてのデータを上の行に登録し、分割後のファイル及びシートについてのデータを下の行に登録している。ファイルはファイル名で、シートはシート名で特定する。分割前のファイルについてはディレクトリまでを保持しておいても良い。分割後のファイルについてはそれ自身が使用されるわけではなく修正後のファイルを用いるので、ディレクトリまで保持しておく必要はない。なお、「1−1」は1行1列を示している。このような対応テーブルのファイルは、データ照合処理部117が処理時にワークメモリ領域13に読み出し、参照する。
【0120】
また、比較対象セルの関連付けについては、データ照合処理部117が、比較する2つのシートにおいて同じセル位置の値を比較するようにしても良いし、少なくとも同じラベルデータの行又は列を、比較する2つのシートにおいて検索し、同じラベルデータの行又は列が見つかった場合には、当該行又は列においては同じ順番とみなしてセルの値を比較するようにしても良い。また、ユーザが対応するラベルデータの位置関係を指定入力し、当該ラベルデータの位置関係に基づいて、セルの値を比較するようにしてもよい。ラベルデータが行及び列共に定義されている場合には、ラベルデータの組み合わせにてセルを対応付けることも可能である。
【0121】
分割後のシート上の各セルに分割前のシート上の対応するセル位置の情報を保持しておく場合及び図32に示したようなテーブルを用意する場合には不要であるが、それ以外の場合にはシート結合後のシートと比較すべきファイルを特定する必要がある。また、いずれの場合においても、比較結果をいかに示すかという設定を行う必要がある。例えば、図14に示した設定画面において、図33に示すような入力欄を設けるようにしても良い。図33の例では、シート結合後のシートと比較すべきシートを含むファイルのファイル名を入力する入力欄2201と、ファイル格納部3の内容を参照して上記ファイルのファイル名を特定するための参照ボタン2202と、修正等の内容の照合結果を表示する場合にチェックを付すチェックボックス2203と、修正等の内容の照合結果を表示しない場合にチェックを付すチェックボックス2204と、修正等の対象が数値等の場合、増加と減少とを分けて表示しない場合にチェックを付すチェックボックス2205と、増加と減少とを色で分けて表示する場合にチェックを付すチェックボックス2206と、増加と減少とをマークを変えて表示する場合にチェックを付すチェックボックス2207とが設けられている。チェックボックス2205乃至2207については、例えば目標数値であれば目標数値が上げる修正がなされた場合には青色で表示し、目標数値が下げられた修正がなされた場合には赤色で表示することにより、より変更箇所の問題点などを容易に認識することができるようになる。なお、ここでは数値の場合を示したが、順番が付されている、アルファベット、ひらがな、かたかな等についても、早い順番に対応する文字に変更された場合又は遅い順番に対応する文字に変更された場合に、表示の色などを変更するようにしても良い。ASCIIコードなどの文字コードの番号で順番の前後の異動を判別しても良い。図33のような設定画面において使用する色を指定できるようにしても良い。同じように、使用するマークを指定できるようにしても良い。データ照合処理部117は、このような設定に基づいて、照合によって修正などを検出した場合であって表示することを指示された場合においては、強調表示を行う。
【0122】
以上のシート分割処理、シート結合処理、ファイル結合処理、データ照合処理、シート抽出処理、及びメール処理を組み合わせた、部門間によるデータの協働処理について説明する。
【0123】
まず、ファイルの配信処理の前段階までの処理について、別の事例を用いて説明する。図34に示すように、各部門が作成したアンケートの質問用紙と回答用紙とを別シートに分けて格納した3つのファイルが、「アンケート企画部」「アンケート開発部」「アンケート代理店部」という名称で、「アンケート」というフォルダに格納されている。さらに、アンケートの趣旨と回答方法とについて説明したシートを格納した「アンケート回答法」というファイルが、「統括部」というフォルダに格納されている。
【0124】
アンケート実施統括部門である例えば総務部は、アンケートを各営業所に送付する前に、各営業所が回答しやすいように、これらのファイルとシートについてシート結合等の処理を行う。最初に、フォルダ「アンケート」に格納されている3つのファイルの中の「質問」という文字列をシート名に含むシートについてシート抽出処理を行い、3つのファイルをファイル格納部3の所定の位置に格納する。同時に、「回答用紙」という文字列を含むシート名を有するシートを3つの別ファイルとしてファイル格納部3の所定の位置に格納する。そして、「質問」という文字列をシート名に含むシートを含む3つのファイルについて、シート結合処理を行う。シート結合処理により、企画部、開発部、代理店部の各部の作成したアンケート質問が例えば「アンケート質問(統合)」という名称の1枚のシートに結合され、当該シートを含むファイルが生成される。同様に、「回答用紙」という文字列をシート名に含むシートを含む3つのファイルについて、シート結合処理を行うと、例えば「アンケート回答用紙(統合)」という名称の1枚のシートに結合され、当該シートを含むファイルが生成される。
【0125】
次に総務部の担当者は、「統括部」というフォルダに格納された「アンケート回答法(共通)」という名称のファイルを「アンケート質問(統合)」という名称のシートを含むファイル及び「アンケート回答用紙(統合)」という名称のシートを含むファイルを格納するフォルダに移動させ、これら3つのファイルをファイル結合処理し、新しい「アンケート送信用」というフォルダに「アンケート」というファイル名で、「アンケート質問(統合)」「アンケート回答用紙(統合)」「回答方法」という3つのシートを含むファイルを生成し、ファイル格納部3の所定の位置に格納する。このようにして、図35に示すようなフォルダ、ファイル及びシートの構成が形成される。
【0126】
このようにすることで、各部門で作成されたアンケートを統合して、1つにまとまったアンケートを格納したファイルを生成することができる。このアンケートにさらに、各本部や支店固有の情報(例えば、管下営業所の一覧など)を記録したシートを付加し、各支店別のファイルを作成することもできる。このようにして処理されたファイルを、各支店などにメール配信することになる。
【0127】
次に、メール処理を含めた処理について、図1のデータを例として説明する。まず、本社管理部門などのユーザが図1のようなデータが1枚のシート上にまとめられたファイルを有していたとする。ユーザはシート分割処理を当該ファイルに施し、図3のように本部単位のファイル分割と支店単位のシート分割を実施する。または、さらにシート抽出処理を実施し、図27のようなファイルを生成する。ユーザは、メール処理部115を起動させて、図3又は図27の形式ファイルを各支店の担当者宛に送信する。
【0128】
各支店の担当者は、自らの支店管下の営業所だけか、又は参考として自らの所属する本部管下の全ての支店の営業所データを受信する。受信したファイルの内容を確認し、そのまま又はシート分割やシート抽出(他の支店分のシートを除去するなど)等の処理を行った上で、各営業所宛に当該営業所用のファイルを配信する。各営業所では、送られてきた営業目標の数値を確認して、修正すべき場合には、数値の右横のセルに理由などを記して修正し、修正後のファイルを支店の担当者に送信する。支店担当者は、受信した各営業所からのメールを開き、添付されているファイルを必要に応じてファイル結合し、さらに必要に応じてシート結合し、修正のされた箇所を確認する。修正後の目標数値が、例えば支店の方針に則していないなどの問題が有った場合は、さらに営業所と個別に調整する。こうして支店としてのデータ(営業目標)の修正が完了した段階で、支店担当者は本部経由で本社の管理部門に送信する。なお、本部において、同様にファイル結合、シート結合、さらにデータ照合処理を実施することもできる。
【0129】
最終的に、各支店などからメールでファイルが送付されてきた時点で、本社管理分門の担当者は、各ファイルをファイル結合して、1つのファイルにまとめる。さらに必要に応じて、シート結合処理やシート抽出処理を行い、分析しやすい形式にシートを変換する。また、当初送信した時に入力されていた営業目標が修正になっているかどうか、またその修正が増額か減額か、さらにその理由が合理的であるかどうかを確認する。
【0130】
このようにすることで、各部門間でのデータ修正などの協働が容易に、且つ円滑に進められることになる。
【0131】
以上本発明の一実施の形態を説明したが、本発明はこれに限定されるものではない。設定項目入力画面については一例を示しており、他の画面構成を採用しても良い。また、図2に示した機能ブロック図は一例であって、実際のプログラムモジュール構成とは異なる場合もある。
【0132】
また、上で述べた機能に加え、他の機能を付け加える又は不要な機能を削除することも可能である。例えば、パスワードの設定などを行わないようにすることも可能であり、また特定のシートのみを抽出して、それ以外のシートについてはデータを破棄するような構成であってもよい。また、他のプログラムと連係して上記のような処理を実行する場合もある。
【0133】
また、コンピュータ1はLAN(Local Area Network)などに接続され、ファイル格納部3として他のコンピュータの記憶装置を用いる場合もある。また、ファイル処理プログラム11により生成されたファイルはLANを介して他のコンピュータに送信される場合もある。
【0134】
【発明の効果】
以上述べたように、本発明によれば、ファイル又はスプレッドシートの結合、分割又は抽出などの新規な処理形態を可能とすることができる。
【0135】
また、複数の部門間での協働処理を円滑に行うことを可能とすることもできる。
【0136】
さらに、結合、分割又は抽出されたスプレッドシート又はファイルを簡便に送信することもできるようになる。
【0137】
さらに、ファイル又はスプレッドシートの管理を容易にすることもできる。
【図面の簡単な説明】
【図1】本発明の一実施の形態における処理対象のファイルの一例を示す図である。
【図2】本発明の一実施の形態におけるコンピュータ・システムの機能ブロック図である。
【図3】ファイル分割の一例を示す図である。
【図4】ファイル分割の第2の例を示す図である。
【図5】実施の形態におけるファイル処理プログラムのメニュー画面の一例を示す図である。
【図6】シート分割処理の処理フローの一例を示す図である。
【図7】シート分割処理のための設定項目入力画面の一例を示す図である。
【図8】シート分割処理におけるワークメモリ領域のデータ保存態様の一例を示す図である。
【図9】シート分割処理のための設定項目入力画面の一部の例を示す図である。
【図10】本発明の一実施の形態における処理対象のファイルの一例を示す図である。
【図11】シート分割処理のための設定項目入力画面の一部の例を示す図である。
【図12】シート分割処理のための設定項目入力画面の一部の例を示す図である。
【図13】シート結合処理の処理フローの一例を示す図である。
【図14】シート結合処理のための設定項目入力画面の一例を示す図である。
【図15】シート結合処理のための設定項目入力画面の一例を示す図である。
【図16】シート結合処理のための設定項目入力画面の一例を示す図である。
【図17】(a)及び(b)には、結合するシートの一例を示す図である。
【図18】シート結合処理のための設定項目入力画面の一部の例を示す図である。
【図19】リンクデータのテーブルの一例を示す図である。
【図20】リンクデータのテーブルの一例を示す図である。
【図21】ファイル結合処理の処理フローの一例を示す図である。
【図22】ファイル結合処理のための設定項目入力画面の一例を示す図である。
【図23】ファイル結合処理におけるワークメモリ領域のデータ保存態様の一例を示す図である。
【図24】シート抽出処理の処理フローの一例を示す図である。
【図25】シート抽出処理のための設定項目入力画面の一例を示す図である。
【図26】シート抽出処理におけるワークメモリ領域のデータ保存態様の一例を示す図である。
【図27】(a)乃至(d)はメール配信されるファイルの一例を示す図である。
【図28】シート抽出処理のための設定項目入力画面の一部の例を示す図である。
【図29】配信マスタ・ファイルに格納されるデータの一例を示す図である。
【図30】メール配信条件の入力画面の一例を示す図である。
【図31】メール配信リストの一例を示す図である。
【図32】関連セルの対応テーブルの一例を示す図である。
【図33】ファイル照合処理における設定項目入力画面の一部の例を示す図である。
【図34】ファイル格納態様の一例を示す図である。
【図35】ファイル構成の一例を示す図である。
【符号の説明】
1 コンピュータ 3 ファイル格納部 5 表示装置
7 入力装置
11 ファイル処理プログラム 13 ワークメモリ領域
111 シート分割処理部 112 シート結合処理部
113 シート抽出処理部 114 ブック結合処理部
115 メール処理部 116 データ対応付け処理部
117 データ照合処理部 118 ファイル特定処理部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information processing technique for processing a spreadsheet or a file in which data is arranged in a table format of rows and columns.
[0002]
[Prior art]
For example, JP-A-10-171636 discloses the following matters. That is, file selection, file column selection, file combining performed by designating a specified column of two files as a key, file concatenation combining two files by a designated column, file copying for designating and copying files by name There is disclosed a file processing apparatus which enables a function such as a file matrix change for exchanging a file matrix.
[0003]
[Patent Document 1]
JP-A-10-171636
[0004]
[Problems to be solved by the invention]
The above-mentioned publications list functions that are frequently used for general purposes, but are not always convenient for all tasks. In particular, when combining or dividing files, it may be necessary to perform processing based on rules in a specific task. Further, although there is a description about setting a processing scenario for the file processing apparatus in the above-mentioned publication, specific contents of processing at each stage of the scenario are not disclosed much. Further, in the above-mentioned publication, when a certain conversion pattern prepared in advance is designated, the file is decomposed at the portion of the repetition item on the first line serving as schema information, and link information is embedded in the decomposed file. . When another conversion pattern is specified, two files in which the first line and the first column of the file are set as the schema information and two files in which the identifiers are set as the schema information and one file in which the content data is set as the schema information are included. Generated. However, for example, a specific spreadsheet file is shared by transmitting and receiving between organizations, and is shared between a higher management organization (for example, head office management department) and a plurality of lower management organizations (for example, each headquarters, branch, sales office, etc.) Among them, there is no disclosure of a process that is well suited to a case in which data is converted into a format suitable for each of them, transmitted and received, and data correction and the like are performed in cooperation. Further, although the schema information is automatically extracted, there is no disclosure as to how to automatically extract the schema information, and the automatic extraction may not be preferable in some cases.
[0005]
Further, the above-mentioned publication does not assume that a spreadsheet file is transmitted and received between organizations as described above, and does not disclose processing for that purpose. In performing data processing between many organizations, it is necessary not only to easily transmit and receive data, but also to perform processing accompanying the cooperation rules, such as browsing data between organizations or setting an editing range.
[0006]
For example, the management department of the headquarters has data on the business targets for the next fiscal year as shown in Fig. 1, and this data is distributed from the management department of the headquarters to each sales department, and appropriate corrections are made at each site in view of the actual situation. In addition, the sales department may reply to the management department to correct the target setting. In FIG. 1, all sales office data nationwide are recorded on a single sheet, but may be recorded separately for each headquarters.
[0007]
When sending such data to each headquarters or branch, rather than sending the file in which all of the above data is recorded to each headquarters or branch as it is, only the data corresponding to the headquarters or branch are extracted and By sending a file in which only data to be recorded is transmitted, the data capacity can be reduced, and the data can be easily viewed by the receiving side because there is no extra data unrelated to the user. In addition, if data of another section is made viewable or editable, an error may occur or a problem such as information leakage may occur. Further, when sending the file to the headquarters or the like, it may be easier to view the business offices under the jurisdiction of each branch to which the file belongs by dividing the business office into separate sheets. In particular, if the organization is large, if all data is contained in a single sheet, it is inefficient to perform operations such as processing and correction while selecting only relevant data. Therefore, there is a great need for dividing or extracting and sending a file or sheet including data as shown in FIG. Also, set a password to prevent anyone who should not be able to view the file from opening the file without permission, and set a write-protected password so that those who do not have the authority to modify the data etc. do not make any unauthorized modifications. However, it is convenient to automatically do this for all of the divided files and sheets.
[0008]
In addition, when the divided files and sheets are transmitted to the corresponding department by e-mail, it is efficient if batch processing can be performed based on a predetermined rule without individually performing operations such as inputting an e-mail address and attaching a file.
[0009]
Furthermore, in order for the headquarters management department to manage the data returned to the headquarters management department after each office or branch makes corrections, the status of the data returned as it is (for example, if the file or sheet is It is preferable to save the information in a state convenient for the head office management department, rather than saving the information separately in the head office or the branch. To this end, the files and sheets that are sent are combined as appropriate, file names and sheet names that are easy for the head office management department to manage are set, and stored in folders (directories) that are easier to manage. Is required.
[0010]
Such a request is not limited to the setting of sales targets, for example, confirmation and correction of work status information of employees belonging to each sales office, confirmation and correction of attribute data of sales staff belonging to each sales office. Various aspects such as work can be considered. Further, in a Corfu competition or the like, the operation of checking golf scores for each attribute of a competition participant is not limited to the work of a company or organization.
[0011]
In recent years, as the organizational form is grouped, the organization becomes more complicated, or the organization becomes more fluid, such as the integration of the organization. Needs are growing. Even with a conventional computer system, such processing could be performed by copying data individually and pasting it onto a new file or sheet. However, as the number of organizations that exchange data increases, such individual processing requires a great deal of labor and may cause a processing error.
[0012]
Therefore, an object of the present invention is to provide an information processing technique that enables a new processing mode such as combining, dividing, or extracting a file or a spreadsheet.
[0013]
Further, another object of the present invention is to provide an information processing technology which enables smooth cooperation between a plurality of departments.
[0014]
Still another object is to provide an information processing technique for easily transmitting a combined, divided or extracted spreadsheet or file.
[0015]
Still another object is to provide an information processing technology that facilitates management of files or spreadsheets.
[0016]
[Means for Solving the Problems]
In the information processing method according to the first aspect of the present invention, the classification data is registered in a first specific row or column, and at least a first specific row or column is registered in at least a second specific row or column. Receiving a specification of a file (for example, a spreadsheet file) in which data specified by the character string of the column is registered, reading the data of the specified file from the file storage unit, and including the data in the file division target area A file dividing step of classifying the data based on the character string in the first specific row or column, dividing the file based on the classification, storing the data of the divided file in the storage device, Data having a predetermined property (for example, label data, etc., or a cell set to display a balloon) included in the area is divided into files. And a step of succession in the file after the division generated in step.
[0017]
Further, in the first aspect of the present invention, based on the character string of the classification data registered in the third specific row or column of the file before division, the data of the file after division is divided into a plurality of sheets. The method may further include a sheet dividing step of dividing and storing the file after the sheet division in the file storage unit. Sheet division is performed in addition to file division.
[0018]
Further, in the first aspect of the present invention, designation of a first specific row or column of the file, setting of an area to be divided of the file (for example, position data such as a start line), Receiving an input of at least one of setting of an area, setting of data having the predetermined property (for example, position data such as a row or a column), and designation of a password to be set in the divided file. It may be further included. When receiving inputs of a plurality of items, the items may be received at once or may be received a plurality of times.
[0019]
Further, in the first aspect of the present invention, the first specific row or column of the file is specified, the area to be divided of the file is set, the area not to be divided of the file is set, the predetermined property is set. , Setting of a password to be set in the file after division, designation of a third specific row or column of the file, setting of at least one of the plurality of sheets generated in the sheet dividing step Accepting an input of at least one of designation of a password to be set, setting of a storage destination of the file after sheet division (for example, directory name), and setting of a file name after sheet division (for example, prefix). May be further included.
[0020]
Further, in the first aspect of the present invention, a specifying step of specifying a set of a mail address and the divided file based on a rule for associating a destination of a mail with the divided file, And generating the data of the mail addressed to the mail address of the set and attaching the file after the division, and transmitting the data of the mail. Email transmission is automated.
[0021]
Furthermore, the first aspect of the present invention may further include a step of receiving an input of sentence data common to the mail to be transmitted, and the input sentence data may be included in the mail data.
[0022]
Further, in the first aspect of the present invention, a step of accepting designation of a certain file group and reading data of each file belonging to the designated file group from the file storage unit; The method may further include a step of combining sheets including the combined sheet to generate a combined file, and a step of storing the generated combined file in a file storage unit. For example, it is a process used when combining the files divided in the manner described above in reverse.
[0023]
Further, the combining step described above specifies, for each file belonging to the specified file group, a correspondence relationship (for example, a correspondence relationship between rows or columns or a correspondence relationship between cells) with respect to data included in each file. And combining the sheets included in the files belonging to the specified file group based on the correspondence relationship. This is for performing appropriate bonding.
[0024]
The combining step described above may further include a step of merging a plurality of records determined to be the same record. Another purpose is to remove redundant records, for example.
[0025]
Further, in the first aspect of the present invention, a step of accepting designation of a comparison target file (for example, a file before correction or before division) for comparison with the combined file and reading data of the comparison target file from the file storage unit Performing a comparison between the combined file and the comparison target file, and, when data changed in the combined file is detected, marks (eg, colors, symbols, character strings, sentences, etc.) on the data. And registering the.
[0026]
Further, the above-described file division step or sheet division step extracts, for each data included in the divided file, position information of corresponding data in the original file (for example, corresponding cell position information), The method further comprises the step of registering each data included in the file after division and, in the first aspect of the present invention, receiving a specification of a file group related to the file after sheet division and receiving the specified file group Reading the data of each file belonging to the file storage unit from the file storage unit, combining the sheets included in the files belonging to the specified file group to generate a combined file, and storing the generated combined file in the file storage unit. Receiving the file to be stored and the file to be compared for comparison with the combined file Reading the data of the file to be compared from the file storage unit, and comparing the combined file with the file to be compared with the position information of the corresponding data in the original file registered for each data of the combined file. The method may further include a step of performing the registration based on the changed data in the combined file and a step of registering a mark for the data when the data is detected in the combined file.
[0027]
Note that the above-mentioned file group may include a plurality of files attached to the received mail.
[0028]
The information processing method according to the second aspect of the present invention includes a first character string (for example, “golf score”) for the file name of the first type file and a second character string for the file name of the second type file. A first type of file (eg, “Golf Score Male”) having a file name that partially matches the first character string of the specified file name (eg, “Golf Score Male”) Identifying a second type of file having a file name that partially matches the second character string of the identified file name (eg, "entry male"); and the file name of each identified first type of file. Searching for a specified second type of file (for example, “entry male”) whose file name includes a character string (for example, “male”) that matches the third character string included in If a set of a first type of file (for example, “golf score male”) and a second type of file (for example, “entry male”) that match the condition is detected, the first type of file that matches the condition is detected. A combining step of reading out the data of the file of the type and the file of the file of the second type from the file storage unit, and combining the file of the third type with the file of the third type generated by the combination; Storing.
[0029]
In the combining step described above, the sheets of the first type file and the sheets of the second type file may be separated and combined into one file of the third type.
[0030]
Further, in the second aspect of the present invention, receiving a designation of a sheet name to be extracted and a file group to be processed, and extracting a file including a sheet having the specified sheet name to be extracted from the file group to be processed, Generating a file including only the sheet having the sheet name of the extraction target from the extracted file, and storing the generated file in the file storage unit.
[0031]
Further, in the second aspect of the present invention, designation of a sheet name and a file group to be processed that are not to be extracted is received, and a file including a sheet other than a sheet having a sheet name that is not to be extracted and specified from the file group to be processed is received. The method may further include a step of extracting, and a step of generating a file excluding only sheets having sheet names not to be extracted from the extracted file, and storing the generated file in the file storage unit.
[0032]
Further, character positions (for example, a prefix, a tail, etc.) in the file names of the first character string and the second character string may be set. Further, the method may further include a step of classifying the first type file and the second type file by a character string included in each file. Further, the first type file and the second type file may be stored in different directories in the file storage unit.
[0033]
It is also possible to create a program for causing a computer to execute the information processing method according to the present invention, and the program includes, for example, a storage medium such as a flexible disk, a CD-ROM, a magneto-optical disk, a semiconductor memory, and a hard disk. Alternatively, it is stored in a storage device. Also, it may be distributed via a network. The data being processed is temporarily stored in the memory of the computer.
[0034]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 2 shows a functional block diagram of a computer system according to one embodiment of the present invention. The
[0035]
The
[0036]
The sheet
[0037]
It is not always necessary to specify the first and second specific columns, and only the first specific column may be specified, and the second specific column may not be specified. In this case, the sheet
[0038]
The sheet
[0039]
When a file having a file name in which a plurality of character strings are connected is stored in, for example, a separate folder for each common character string in the file name, the file combining
[0040]
Further, when a file having a file name in which a plurality of character strings are linked is mixed in, for example, one folder, the file specifying
[0041]
The sheet
[0042]
When a sheet (extracted sheet) having a specific character string in the sheet name is specified as an extraction target, the sheet
[0043]
When all sheets other than the sheet (excluded sheet) including a specific character string in the sheet name are designated as the extraction target, the sheet
[0044]
When performing a process such as a file combining process, the file
[0045]
For example, when a file divided into sheets by the sheet
[0046]
The
[0047]
For example, when sheet combining is performed by the sheet combining
[0048]
Next, a detailed process of the
[0049]
For example, when the user clicks the
[0050]
In the example of FIG. 7, the file name "c: \ windows \ desktop \ worktime data.xls" is input in the file
[0051]
The sheet
[0052]
On the other hand, if no error is detected (step S11: No route), the original file of the division specified in the file
[0053]
Next, the sheet
[0054]
Then, the sheet
[0055]
In the
[0056]
The sheet
[0057]
The sheet
[0058]
If sheet protection and book (file) options are set in the
[0059]
Finally, the sheet
[0060]
As for the file storage location, an input field may be provided for the directory for storing the file after sheet cutting, not shown in FIG. 7, and the file may be stored in the directory specified in the input field.
[0061]
In this way, by specifying the file name, the sheet name, and the file storage location (directory) and causing the sheet
[0062]
In the above description, the case where the file division and the sheet division are performed based on the value registered in the “column” is described as an example. However, based on the value registered in the specific “row”, the division start “column” and thereafter are performed. May be divided into files and sheets. Although it is not shown whether the “row” or “column” is used as a basis for file division or sheet division, a radio button for selecting and inputting “row” or “column” in the setting screen of FIG. 7 is provided. Thus, the user can be made to select. Although the setting screen of FIG. 7 assumes “column”, when “row” and “column” are selected and input, for example, the sheet
[0063]
In addition, the entire area in which data and the like to be divided are registered and the area in which only data for file division and sheet division are registered (an area that is only a division target and does not carry over data or settings) are set. The user may specify on the screen.
[0064]
The processing of the sheet
[0065]
The start line is input in the line number input column 506 in FIG. 7. However, by providing an input column as shown in FIG. May be specified by, for example, the position of the first cell (a frame or a cell for inputting data, specified by row and column) and the position of the last cell. In FIG. 11, a row
[0066]
FIG. 7 shows an example in which a
[0067]
As the character string to be added, for example, a character string such as “after sheet cut” is input. The position to be added may be a prefix or a tail, or may be inserted between character strings serving as break keys for file division. For example, if multiple character strings are linked, such as a break key character string such as "HR Questionnaire Question", a character string "After sheet cut" is inserted between "HR Questionnaire" and "Question". To do. In this case, check the
[0068]
For example, although the work data of the employees of the company is included in one sheet as shown in FIG. 8A, for example, when processing such as confirmation of the work data is performed for each department, the “A” column ( It is more efficient to divide the file for each department code shown in (first column) and distribute it to each department. As described above, by using the sheet
[0069]
Next, the processing by the sheet
[0070]
In the example of FIG. 14, "c: \ WINDOWS \ Desktop \ File after sheet cut" is input in the
[0071]
The sheet
[0072]
On the other hand, if no error is detected (step S41: No route), the sheet
[0073]
Note that the sheets of each file to be combined as shown in FIG. 8C may have the same format. That is, among the data of the table in the sheet, the position and the order (for example, the arrangement in the first row or the first column) of the label data for explaining the meaning and type of the data, and the arrangement of the data other than the label data (Whether the data of the same item is registered in the column direction from top to bottom or in the left and right rows) is stored in the same state. Since “2” has been entered in the
[0074]
Further, the setting of FIG. 14 is made so as to cope with the case where the sheet format is not the same, the position of each data item of the label data is different, or the display position of the entire table is shifted by several rows or columns. Instead of the
[0075]
The data
[0076]
Further, as the label data of each sheet, the same one is not always arranged, and completely different label data may be arranged.In such a case where a plurality of sheets having different label data are combined, is there. For example, there is a case where the “X sheet” of the “P file” shown in FIG. 17A is combined with the “Y sheet” of the “P file” shown in FIG. 17B. As shown in FIG. 17A, the data item of the label data in the first row and the first column is “A”, the data item of the label data in the first row and the second column is “B”, and The data item of the label data in the third column is “C”, and the data item of the label data in the first row and the fourth column is “D”. On the other hand, in the case of “Y sheet” shown in FIG. 17B, the title of the table is registered in the first row, and the data item of the label data in the second row and the first column is “A”. The data item of the label data in the second row and the second column is “B”, the data item of the label data in the second row and the third column is “E”, and the data item of the label data in the second row and the fourth column is “B”. F ". In such a case, an input field as shown in FIG. 18 is displayed on a part of the setting screen shown in FIG. 14 to request the user to input. In FIG. 18, a
[0077]
The sheet
[0078]
Then, the data
[0079]
The correspondence between records is stored, for example, in a form as shown in FIG. In FIG. 20, not only the record correspondence but also the cell correspondence are registered. That is, the first and second columns of the second row of the X sheet of the P file correspond to the first and second columns of the third row of the X sheet of the P file, respectively. The first and second columns of the third row of the X sheet of the P file correspond to the first and second columns of the fourth row of the Y sheet of the P file, respectively. The sheet
[0080]
From the data on the correspondence between the label data and other data generated by the data
[0081]
Then, the sheet
[0082]
After that, the sheet
[0083]
By performing the above processing, a plurality of files can be combined into one file. Even when a plurality of sheets exist in each of a plurality of files, the files can be combined into one sheet of one file. However, it is not always necessary to combine them into one sheet.
[0084]
For example, when each sheet included in the file group stored in the predetermined directory of the
[0085]
Next, a process performed by the file
[0086]
The file
[0087]
On the other hand, if no error is detected (step S71: No route), the file
[0088]
Then, the file
[0089]
For the file set having the predetermined relationship as described above, the file
[0090]
On the other hand, the file
[0091]
If the password setting for file protection, the password for file read protection, and the option setting for displaying a read-only recommended message are performed in the
[0092]
Finally, the file
[0093]
In the above description, the process of combining files belonging to two file groups has been described as an example. However, file combining can be performed between three or more file groups.
[0094]
For example, as an example of combining files of three file groups, a first file group of “golf score male”, “golf score female”, “golf score professional” and “filling male”, “filling female”, “filling in” It is assumed that a second file group called “pro” and a third file group called “male A team”, “female A team”, and “pro A team” are stored in different folders by the user.
[0095]
Also, instead of manually classifying the files having the same character string into folders having the same character string, the user can substitute the same character string into the file name from a folder in which many files with various names are mixed. The file
[0096]
If there are three such file groups, the user specifies “Golf Score” as the first character string, “Entry” as the second character string, and “A team” as the third character string. Shall be done. Each file group includes three files in which a portion other than the specified character string in the file name includes a character string of “male”, “female”, or “pro”. Then, the file
[0097]
Note that the character string to be specified does not have to specify the character position in the file name, and the user is provided that the character string is located at a specific position, such as a prefix or suffix, or before or after a specific character string. Can also be specified.
[0098]
For example, files with file names of “golf score △△ △△”, ○ golf score △△ ”,」 混 在 golf score ”are mixed in various folders, and the character string“ golf score ”is If the file name is specified from the input device 7 and the character position in the file name is not specified, the file
[0099]
When the character position in the file name of the character string is also specified, the character position of the specified character string is input from the input device 7 in addition to the character string. The character position of the character string can be designated as being located at any of the positions before and after the prefix of the file name, the end of the file name, and the specific character string. When a file with a file name prefixed with “golf score” is specified, the file
[0100]
With respect to the file specified in this way, a file having another character string as a part of the file name in a part other than the previously specified character string is specified from each file group, and stored in the
[0101]
By performing such processing, for example, data such as a golf score can be transmitted to a person in charge of each section to be checked, and then a file can be generated so that it can be easily processed by the collecting section. Also, if a questionnaire question sheet and a questionnaire answer sheet are created in separate files, and the file names are determined in the manner described above, the question sheet and the answer sheet Even if the files are divided into files, the question sheet and the answer sheet can be easily combined into one file.
[0102]
Also, if a file that has been divided into sheets is sent to each department and returned after data correction, etc., when combining the returned multiple files, the files before and after sheet Implement the option to perform collation processing on the data. This collation processing will be described later in detail.
[0103]
Furthermore, in the above example, for the file name after file combination, the file name is specified by specifying a prefix character string, but the position of the specified character string can be selected arbitrarily by the user. Is also good. In this case, an input field for a position where the character string is arranged is provided on the setting screen of FIG. 22 together with the character string for specifying the name of the storage file.
[0104]
Next, a process performed by the sheet
[0105]
The sheet
[0106]
On the other hand, if no error is detected (Step S101: No route), the sheet
[0107]
The sheet
[0108]
Then, the sheet
[0109]
By doing so, it becomes possible to extract a sheet containing data to be processed and store it in another file. Conversely, a file excluding a specific sheet can be generated. By such processing, for example, it is possible to extract only the answer sheet from the questionnaire file including the question sheet and the answer sheet.
[0110]
Further, when the sheet extraction process is performed on the file A and the file B in FIG. 3 as described above, as shown in FIGS. 27A to 27D, the file A (a branch), the file A (b branch), A file including only one sheet such as file B (d branch), a file including only a plurality of specific sheets, and a file excluding only a specific sheet can be generated.
[0111]
As a method of specifying the sheets to be extracted, the name of the sheet to be extracted may be specified by a character string, or the name of a sheet not to be extracted is specified by a character string, and the other sheets are set to be extracted. You can also. The method of designating a sheet to be extracted and a sheet not to be extracted is as follows: a specific character string arranged at an arbitrary position in the sheet name of each sheet is determined by a sheet
[0112]
In FIG. 28, a
[0113]
Next, processing at the time of mail distribution processing by the
[0114]
In the example of FIG. 30, a file name “branch distribution master” is specified in the file name input field 2101 of the distribution master file, and “file name“ branch distribution master ”is entered in the column
[0115]
When the
[0116]
The
[0117]
As described above, the
[0118]
Next, a data collation process performed by the data
[0119]
Instead of holding the position information of the other cell associated with each cell as described above, the related file and sheet are specified on the table as shown in FIG. The relationship may be registered for each cell and held as a separate file, for example, in the
[0120]
Further, regarding the association of the comparison target cells, the data
[0121]
This is unnecessary when information on the corresponding cell position on the sheet before division is stored in each cell on the sheet after division and when a table as shown in FIG. 32 is prepared. In this case, it is necessary to specify a file to be compared with the sheet after the sheet is combined. In any case, it is necessary to set how to show the comparison result. For example, an input field as shown in FIG. 33 may be provided on the setting screen shown in FIG. In the example of FIG. 33, an
[0122]
A description will now be given of a cooperative processing of data between departments that combines the above-described sheet division processing, sheet combining processing, file combining processing, data collating processing, sheet extracting processing, and mail processing.
[0123]
First, the processing up to the previous stage of the file distribution processing will be described using another case. As shown in FIG. 34, three files in which the questionnaire and answer sheets of the questionnaire created by each section are stored in separate sheets are referred to as “Questionnaire Planning Department”, “Questionnaire Development Department”, and “Questionnaire Agency Department”. The name is stored in a folder called "questionnaire". Further, a file called “Questionnaire Answering Method” that stores a sheet that explains the purpose of the questionnaire and the answering method is stored in a folder called “General Manager”.
[0124]
Before sending the questionnaire to each business office, for example, the general affairs department, which is a questionnaire implementation supervision department, performs processing such as combining sheets on these files and sheets so that each business office can easily answer. First, sheet extraction processing is performed on a sheet having a character string “question” in the sheet name among the three files stored in the folder “questionnaire”, and the three files are stored in predetermined positions in the
[0125]
Next, the person in charge of the General Affairs Department converts the file named “Questionnaire Response Method (Common)” stored in the folder “Overview Department” to a file containing a sheet named “Questionnaire Question (Integration)” and “Questionnaire Response”. Move it to the folder that stores the file containing the sheet named "Paper (integrated)", combine these three files into a file and send it to the new folder "Send questionnaire" with the file name "Survey" A file including three sheets “(integration)”, “questionnaire answer sheet (integration)”, and “answer method” is generated and stored in a predetermined position of the
[0126]
By doing so, it is possible to integrate the questionnaires created in the respective departments and generate a file storing a single questionnaire. A sheet recording information specific to each headquarters or branch (for example, a list of offices under the jurisdiction) can be added to this questionnaire to create a file for each branch. The file processed in this way is distributed to each branch by mail.
[0127]
Next, processing including mail processing will be described using the data in FIG. 1 as an example. First, it is assumed that a user such as a head office management department has a file in which data as shown in FIG. 1 is put together on one sheet. The user performs a sheet division process on the file, and performs a file division for each head office and a sheet for each branch as shown in FIG. Alternatively, a sheet extraction process is further performed to generate a file as shown in FIG. The user activates the
[0128]
The person in charge of each branch receives the sales office data of only the offices under his / her own branch or, for reference, all the branches under his / her headquarters. After confirming the content of the received file, and performing processing such as sheet division or sheet extraction (such as removing sheets for other branches), the file for the office is delivered to each office. . Each office checks the numerical value of the sales target sent, and if it needs to be corrected, corrects it by writing the reason etc. in the cell to the right of the numerical value, and sends the corrected file to the person in charge of the branch. Send. The branch manager opens the received e-mail from each business office, combines the attached files as necessary, combines the sheets as necessary, and checks the corrected portion. If the revised target value does not comply with the branch policy, for example, it is further adjusted individually with the sales office. When the correction of the data (sales target) for the branch is completed in this way, the person in charge of the branch transmits the data to the management department of the head office via the head office. At the headquarters, file combination, sheet combination, and data collation processing can be similarly performed.
[0129]
Finally, when the files are sent from each branch by e-mail, the person in charge at the head office management branch office combines the files into one file. Further, if necessary, a sheet combining process or a sheet extracting process is performed to convert the sheet into a format that can be easily analyzed. In addition, it confirms whether the business target entered at the time of initial transmission has been revised, whether the revision has been increased or decreased, and whether the reason is reasonable.
[0130]
In this way, cooperation such as data correction between departments can be easily and smoothly performed.
[0131]
Although the embodiment of the present invention has been described above, the present invention is not limited to this. The example of the setting item input screen is shown, and another screen configuration may be adopted. The functional block diagram shown in FIG. 2 is an example, and may differ from an actual program module configuration.
[0132]
In addition to the functions described above, it is also possible to add other functions or delete unnecessary functions. For example, it is possible not to set a password or the like, and it may be configured to extract only a specific sheet and discard data for other sheets. Further, the above-described processing may be executed in cooperation with another program.
[0133]
The
[0134]
【The invention's effect】
As described above, according to the present invention, a new processing mode such as combining, dividing, or extracting a file or a spreadsheet can be realized.
[0135]
In addition, it is possible to smoothly perform a cooperative process between a plurality of departments.
[0136]
Further, the combined, divided or extracted spreadsheet or file can be easily transmitted.
[0137]
Further, management of files or spreadsheets can be facilitated.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an example of a file to be processed according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of a computer system according to an embodiment of the present invention.
FIG. 3 is a diagram illustrating an example of file division.
FIG. 4 is a diagram illustrating a second example of file division.
FIG. 5 is a diagram showing an example of a menu screen of a file processing program in the embodiment.
FIG. 6 is a diagram illustrating an example of a processing flow of a sheet dividing process.
FIG. 7 is a diagram illustrating an example of a setting item input screen for a sheet dividing process.
FIG. 8 is a diagram illustrating an example of a data storage mode of a work memory area in a sheet dividing process.
FIG. 9 is a diagram illustrating an example of a part of a setting item input screen for a sheet dividing process.
FIG. 10 is a diagram showing an example of a file to be processed according to an embodiment of the present invention.
FIG. 11 is a diagram illustrating an example of a part of a setting item input screen for a sheet dividing process.
FIG. 12 is a diagram illustrating an example of a part of a setting item input screen for a sheet dividing process.
FIG. 13 is a diagram illustrating an example of a processing flow of a sheet combining process.
FIG. 14 is a diagram illustrating an example of a setting item input screen for sheet combining processing.
FIG. 15 is a diagram illustrating an example of a setting item input screen for a sheet combining process.
FIG. 16 is a diagram illustrating an example of a setting item input screen for sheet combining processing.
17A and 17B are diagrams illustrating an example of sheets to be combined.
FIG. 18 is a diagram illustrating an example of a part of a setting item input screen for a sheet combining process.
FIG. 19 illustrates an example of a link data table.
FIG. 20 illustrates an example of a link data table.
FIG. 21 is a diagram illustrating an example of a processing flow of a file combining process.
FIG. 22 is a diagram illustrating an example of a setting item input screen for a file combining process.
FIG. 23 is a diagram illustrating an example of a data storage mode of a work memory area in a file combining process.
FIG. 24 is a diagram illustrating an example of a processing flow of sheet extraction processing.
FIG. 25 is a diagram showing an example of a setting item input screen for sheet extraction processing.
FIG. 26 is a diagram illustrating an example of a data storage mode of a work memory area in a sheet extraction process.
FIGS. 27A to 27D are diagrams illustrating an example of a file to be distributed by mail.
FIG. 28 is a diagram illustrating an example of a part of a setting item input screen for sheet extraction processing.
FIG. 29 is a diagram showing an example of data stored in a distribution master file.
FIG. 30 is a diagram illustrating an example of an input screen for mail distribution conditions.
FIG. 31 is a diagram showing an example of a mail distribution list.
FIG. 32 is a diagram showing an example of a correspondence table of related cells.
FIG. 33 is a diagram illustrating an example of a part of a setting item input screen in a file matching process.
FIG. 34 is a diagram showing an example of a file storage mode.
FIG. 35 is a diagram showing an example of a file configuration.
[Explanation of symbols]
DESCRIPTION OF
7 Input device
11
111 Sheet
113 Sheet
115
117 Data
Claims (20)
前記ファイルの分割対象域に含まれるデータを前記第1の特定の行又は列の文字列に基づき分類し、当該分類に基づきファイルを分割し、分割後のファイルのデータを記憶装置に格納するファイル分割ステップと、
前記ファイルの分割対象外の領域に含まれる所定の性質を有するデータを、前記ファイル分割ステップにおいて生成される分割後のファイルに承継させるステップと、
を含み、コンピュータに実施される情報処理方法。Classification data is registered in a first specific row or column, and data specified by at least a character string in the first specific row or column is registered in at least a second specific row or column. Receiving a file specification and reading data of the specified file from the file storage unit;
A file that classifies data included in the division target area of the file based on the character string of the first specific row or column, divides the file based on the classification, and stores data of the divided file in a storage device A splitting step;
A step of transferring data having a predetermined property included in an area not to be divided of the file to a file after division generated in the file division step;
And a computer-implemented information processing method.
をさらに含む請求項1記載の情報処理方法。Dividing the data of the file after division into a plurality of sheets based on a character string of the classification data registered in a third specific row or column of the file before division, and storing the file after sheet division in the file Sheet division step to store in the section,
2. The information processing method according to claim 1, further comprising:
をさらに含む請求項1記載の情報処理方法。Designation of a first specific row or column of the file, setting of an area to be divided of the file, setting of an area not to be divided of the file, setting of data having the predetermined property, file after the division 2. The information processing method according to claim 1, further comprising a step of receiving an input of at least one of the designations of a password to be set in the password.
をさらに含む請求項2記載の情報処理方法。Designation of a first specific row or column of the file, setting of an area to be divided of the file, setting of an area not to be divided of the file, setting of data having the predetermined property, file after the division Designation of a password to be set in the file, designation of a third specific row or column of the file, designation of a password to be set for at least one of the plurality of sheets generated in the sheet dividing step, file after the sheet division 3. The information processing method according to claim 2, further comprising a step of receiving an input of at least one of a setting of a storage destination of the file and a setting of a name of the file after the sheet division.
前記特定ステップにおいて特定された各セットについて、当該セットのメール・アドレス宛であって前記分割後のファイルを添付したメールのデータを生成し、当該メールのデータを送信するステップと、
をさらに含む請求項1乃至4のいずれか1つ記載の情報処理方法。A specifying step of specifying a set of a mail address and the divided file based on a rule for associating a destination of mail with the divided file;
For each set specified in the specifying step, generating data of a mail addressed to the mail address of the set and attaching the divided file, and transmitting the data of the mail,
The information processing method according to claim 1, further comprising:
をさらに含み、
入力された前記文のデータを前記メールのデータに含める
ことを特徴とする請求項5記載の情報処理方法。Further including a step of accepting input of sentence data common to the email to be sent,
6. The information processing method according to claim 5, wherein the input sentence data is included in the mail data.
前記指定されたファイル群に属するファイルが含むシートを結合し、結合ファイルを生成する結合ステップと、
生成された前記結合ファイルを前記ファイル格納部に格納するステップと、
をさらに含む請求項1乃至6のいずれか1つ記載の情報処理方法。Receiving a specification of a certain file group, and reading data of each file belonging to the specified file group from the file storage unit;
A combining step of combining sheets included in the files belonging to the specified file group to generate a combined file;
Storing the generated combined file in the file storage unit;
The information processing method according to claim 1, further comprising:
前記指定されたファイル群に属する各ファイルにつき、ファイルに含まれるデータについて対応関係を特定するステップと、
前記対応関係に基づき、前記指定されたファイル群に属するファイルが含むシートを結合するステップと、
を含む請求項7記載の情報処理方法。The combining step includes:
For each file belonging to the specified file group, specifying a correspondence relationship for data included in the file;
Combining the sheets included in the files belonging to the specified file group based on the correspondence relationship;
The information processing method according to claim 7, comprising:
同一レコードと判断された複数のレコードをマージするステップ
をさらに含む請求項8記載の情報処理方法。The combining step includes:
9. The information processing method according to claim 8, further comprising a step of merging a plurality of records determined to be the same record.
前記結合ファイルと前記比較対象ファイルとの比較を実施するステップと、
前記結合ファイルにおいて変更がなされたデータを検出した場合には、当該データに対してマークを登録するステップと、
をさらに含む請求項7乃至9のいずれか記載の情報処理方法。Receiving a designation of a comparison target file for comparison with the combined file, and reading data of the comparison target file from the file storage unit;
Performing a comparison between the combined file and the comparison target file;
When detecting changed data in the combined file, registering a mark for the data;
The information processing method according to claim 7, further comprising:
さらに、
前記シート分割後のファイルに関連するファイル群の指定を受け付け、当該指定されたファイル群に属する各ファイルのデータを前記ファイル格納部から読み出すステップと、
前記指定されたファイル群に属するファイルが含むシートを結合し、結合ファイルを生成する結合ステップと、
生成された前記結合ファイルを前記ファイル格納部に格納するステップと、
前記結合ファイルとの比較のための比較対象ファイルの指定を受け付け、当該比較対象ファイルのデータを前記ファイル格納部から読み出すステップと、
前記結合ファイルと前記比較対象ファイルとの比較を、前記結合ファイルの各データについて登録された、前記元のファイルにおいて対応するデータの位置情報に基づき実施するステップと、
前記結合ファイルにおいて変更がなされたデータを検出した場合には、当該データに対してマークを登録するステップと、
をさらに含む請求項2記載の情報処理方法。The file division step or the sheet division step extracts, for each data included in the file after division, position information of corresponding data in the original file, and registers corresponding to each data included in the file after division. Including the step of
further,
Receiving a specification of a file group related to the file after the sheet division, and reading data of each file belonging to the specified file group from the file storage unit;
A combining step of combining sheets included in the files belonging to the specified file group to generate a combined file;
Storing the generated combined file in the file storage unit;
Receiving a designation of a comparison target file for comparison with the combined file, and reading data of the comparison target file from the file storage unit;
Performing a comparison between the combined file and the comparison target file based on position information of corresponding data in the original file, registered for each data of the combined file,
When detecting changed data in the combined file, registering a mark for the data;
The information processing method according to claim 2, further comprising:
特定された前記第1の種類の各ファイルのファイル名に含まれる第3の文字列に合致する文字列をファイル名に含む、特定された前記第2の種類のファイルを検索するステップと、
前記検索において条件に合致した前記第1の種類のファイル及び第2の種類のファイルの組が検出された場合には、条件に合致した前記第1の種類のファイル及び前記第2の種類のファイルのデータをファイル格納部から読み出し、第3の種類の1つのファイルに結合する結合ステップと、
前記結合により生成された前記第3の種類のファイルを前記ファイル格納部に格納するステップと、
を含み、コンピュータにより実施される情報処理方法。A first character string for a file name of a first type file and a second character string for a file name of a second type file are received, and a first character string of the specified file name is received. Identifying the first type of file having a file name that partially matches the file type and the second type of file having a file name that partially matches a second character string of the specified file name;
Searching for the specified second type file, wherein the file name includes a character string matching the third character string included in the file name of each of the specified first type files;
When a set of the first type file and the second type file that match the condition is detected in the search, the first type file and the second type file that match the condition are detected. Reading from the file storage unit and combining the data into one file of the third type;
Storing the third type of file generated by the combining in the file storage unit;
And a computer-implemented information processing method.
前記第1の種類のファイルのシートと前記第2の種類のファイルのシートを分けて第3の種類の1つのファイルに結合する
ことを特徴とする請求項13記載の情報処理方法。In the combining step,
14. The information processing method according to claim 13, wherein a sheet of the first type file and a sheet of the second type file are separated and combined into one file of a third type.
抽出された前記ファイルから前記抽出対象のシート名のシートのみを含むファイルを生成し、前記ファイル格納部に格納するステップと、
をさらに含む請求項13又は14記載の情報処理方法。Receiving the specification of the extraction target sheet name and the processing target file group, and extracting a file including the sheet of the extraction target sheet name specified from the processing target file group;
Generating a file including only the sheet having the sheet name of the extraction target from the extracted file, and storing the file in the file storage unit;
The information processing method according to claim 13, further comprising:
抽出された前記ファイルから前記抽出対象外のシート名のシートのみを除くファイルを生成し、前記ファイル格納部に格納するステップと、
をさらに含む請求項13又は14記載の情報処理方法。Receiving a specification of a sheet name and a processing target file group not to be extracted, and extracting a file including a sheet other than the sheet of the sheet name not to be extracted specified from the processing target file group;
Generating a file from the extracted file excluding only the sheet having the sheet name not to be extracted, and storing the file in the file storage unit;
The information processing method according to claim 13, further comprising:
をさらに含む請求項13乃至16のいずれか1つ記載の情報処理方法。17. The information processing method according to claim 13, further comprising a step of classifying the first type file and the second type file by a character string included in each file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003039061A JP2004252509A (en) | 2003-02-18 | 2003-02-18 | Information processing method for combining or splitting file and sheet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003039061A JP2004252509A (en) | 2003-02-18 | 2003-02-18 | Information processing method for combining or splitting file and sheet |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004252509A true JP2004252509A (en) | 2004-09-09 |
Family
ID=33023341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003039061A Withdrawn JP2004252509A (en) | 2003-02-18 | 2003-02-18 | Information processing method for combining or splitting file and sheet |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004252509A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007011036A1 (en) * | 2005-07-22 | 2007-01-25 | Sophia Co., Ltd. | Data management device, data management method, data processing method, and program |
JP2007035022A (en) * | 2006-06-05 | 2007-02-08 | Sophia Co Ltd | Data management device |
JP2010097263A (en) * | 2008-10-14 | 2010-04-30 | Keyence Corp | Database creation device, database creation method, and computer program |
WO2011067932A1 (en) * | 2009-12-04 | 2011-06-09 | Yanase Takatoshi | Table search device, table search method, and table search system |
-
2003
- 2003-02-18 JP JP2003039061A patent/JP2004252509A/en not_active Withdrawn
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007011036A1 (en) * | 2005-07-22 | 2007-01-25 | Sophia Co., Ltd. | Data management device, data management method, data processing method, and program |
JP2007035022A (en) * | 2006-06-05 | 2007-02-08 | Sophia Co Ltd | Data management device |
JP2010097263A (en) * | 2008-10-14 | 2010-04-30 | Keyence Corp | Database creation device, database creation method, and computer program |
WO2011067932A1 (en) * | 2009-12-04 | 2011-06-09 | Yanase Takatoshi | Table search device, table search method, and table search system |
JP2012038321A (en) * | 2009-12-04 | 2012-02-23 | Takatoshi Yanase | Table retrieval device, table retrieval method, and table retrieval system |
JP5006472B2 (en) * | 2009-12-04 | 2012-08-22 | 隆敏 柳瀬 | Table search device, table search method, and table search system |
JP2012164333A (en) * | 2009-12-04 | 2012-08-30 | Takatoshi Yanase | Table search method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130283398A1 (en) | Versatile Log System | |
KR101007613B1 (en) | Data registration/search support device using a keyword | |
CN102576362B (en) | Method for setting metadata, system for setting metadata, and program | |
JPH05197734A (en) | Data processing system | |
US20080270431A1 (en) | Genealogical System and Method | |
GB2280289A (en) | Method for generating specific program systems and tools to facilitate program system generation | |
JP2004252509A (en) | Information processing method for combining or splitting file and sheet | |
US7035862B2 (en) | Method for processing information from an information repository | |
JPH03252763A (en) | Document partial preparation managing system | |
JP2000339306A (en) | Document preparing device | |
JP2009193470A (en) | Electronic approval workflow system | |
JP2918735B2 (en) | Drawing and parts list creation management device | |
JP2004220548A (en) | Medium production information system | |
JP4617608B2 (en) | Search system with free alternative keyword settings | |
CN112766889B (en) | Dynamic classification management method and device for work tasks | |
JP2945586B2 (en) | Personnel transfer management support system | |
JP5252902B2 (en) | Business document processing system | |
JPH10254979A (en) | Data processing system and data base design system | |
JPH081645B2 (en) | Design drawing management method | |
JPH1040300A (en) | Method, device and storage medium for personnel relocation simulation | |
JPH11242706A (en) | Data processing support system, data processing supporting method and spreadsheet system | |
JP2021077371A (en) | Process progress management device, process progress management program, and standard process progress definition book recording medium serving for process progress management device | |
JP2642254B2 (en) | Form print processing device | |
JP2001175731A (en) | Method for managing pending matter when integrated work package is introduced | |
CN104866516B (en) | Multi purpose intelligence share system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060215 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061024 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061206 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070109 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20090907 |