Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Checking for Changes in File's Cell Layout

Every month we download a very large Excel file containing data that we
import into our system, and I have some code that pulls data from certain
specific cells in the monthly file. Unfortunately, this monthly file is not
in a database format, but the specific data items are in exactly the same
cell locations each month (for example, the P/E ratio for the S&P500 is in
cell XXX). To make sure that none of the data items in the monthly file have
shifted, for example, from cell AK51 to cell AK52, my code does a simple
check on a few test cells to make sure that their titles haven't changed and
gives me a warning if anything has changed. But this method misses a lot of
possible changes, since it's a huge file. Can anyone suggest a better way?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Checking for Changes in File's Cell Layout

Hi,

One possible method, provided the data file that you import is being
produced by another program, is to request that a specific named range should
be given to each cell you are interested in. Then you write the code to get
the info from each of the named ranges.

Alok

"Stratuser" wrote:

Every month we download a very large Excel file containing data that we
import into our system, and I have some code that pulls data from certain
specific cells in the monthly file. Unfortunately, this monthly file is not
in a database format, but the specific data items are in exactly the same
cell locations each month (for example, the P/E ratio for the S&P500 is in
cell XXX). To make sure that none of the data items in the monthly file have
shifted, for example, from cell AK51 to cell AK52, my code does a simple
check on a few test cells to make sure that their titles haven't changed and
gives me a warning if anything has changed. But this method misses a lot of
possible changes, since it's a huge file. Can anyone suggest a better way?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Checking for Changes in File's Cell Layout

Unfortunately, i have no control over the vendor that makes the download
Excel file available, so asking them to assign range names to the data items
I need won't work. Good idea, though.

"Alok" wrote:

Hi,

One possible method, provided the data file that you import is being
produced by another program, is to request that a specific named range should
be given to each cell you are interested in. Then you write the code to get
the info from each of the named ranges.

Alok

"Stratuser" wrote:

Every month we download a very large Excel file containing data that we
import into our system, and I have some code that pulls data from certain
specific cells in the monthly file. Unfortunately, this monthly file is not
in a database format, but the specific data items are in exactly the same
cell locations each month (for example, the P/E ratio for the S&P500 is in
cell XXX). To make sure that none of the data items in the monthly file have
shifted, for example, from cell AK51 to cell AK52, my code does a simple
check on a few test cells to make sure that their titles haven't changed and
gives me a warning if anything has changed. But this method misses a lot of
possible changes, since it's a huge file. Can anyone suggest a better way?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I switch from Office 2007 layout to the old 2003 layout? samanthajade Excel Discussion (Misc queries) 3 May 11th 08 09:40 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
In Cell Layout Tom Excel Worksheet Functions 1 March 30th 06 02:55 PM
File's last modified date Josh Sale Excel Programming 2 January 12th 04 09:42 PM
Assessing File's Properties Wendy[_3_] Excel Programming 1 November 11th 03 09:37 PM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"