Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Importing data from .xlsx files

I save a .xlsx file holding results from a data logger each day. The
files are all saved into the same folder.

I have a workbook (Excel 2010) which holds the accumulating data from
rows 10 to 206 in columns A and C in each of these files and which
interprets it.

Rather than have to open the new data logger file each day, manually
copy the relevant columns and rows and then paste them into the workbook
below the previously imported data, I would prefer the task to be
automated. Is this possible in full, or at least partially?

TIA

--
F

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default Importing data from .xlsx files

On Sun, 22 Jan 2012 12:50:20 +0000, F wrote:
Rather than have to open the new data logger file each day, manually
copy the relevant columns and rows and then paste them into the workbook
below the previously imported data, I would prefer the task to be
automated. Is this possible in full, or at least partially?


Sure, you can write a VBA macro called Workbook_Open in a module in
your master workbook. Then whenever you open the workbook it will
run automatically.

If you don't know VBA, I think you'll want to get some local help.
Refining your problem requirements and then creating the code is, I
think, too complex for a newsgroup.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 621
Default Importing data from .xlsx files

See Ron de Bruin's site for code.

http://www.rondebruin.nl/copy1.htm

You want to scroll down the page to find the code for.................

"What if the Database sheet is in another workbook"

Aside from changing sheet and workbook names to suit you will have to
alter the SourceRange parameters.............

Set SourceRange =
ThisWorkbook.Sheets("Sheet1").Range("A10:A206,C10: C206")


Gord


On Sun, 22 Jan 2012 12:50:20 +0000, F <news@nowhere wrote:

I save a .xlsx file holding results from a data logger each day. The
files are all saved into the same folder.

I have a workbook (Excel 2010) which holds the accumulating data from
rows 10 to 206 in columns A and C in each of these files and which
interprets it.

Rather than have to open the new data logger file each day, manually
copy the relevant columns and rows and then paste them into the workbook
below the previously imported data, I would prefer the task to be
automated. Is this possible in full, or at least partially?

TIA

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Importing data from .xlsx files

It happens that F formulated :
I save a .xlsx file holding results from a data logger each day. The files
are all saved into the same folder.

I have a workbook (Excel 2010) which holds the accumulating data from rows 10
to 206 in columns A and C in each of these files and which interprets it.

Rather than have to open the new data logger file each day, manually copy the
relevant columns and rows and then paste them into the workbook below the
previously imported data, I would prefer the task to be automated. Is this
possible in full, or at least partially?

TIA


Most data logger software (Like MadgeTech, for example) will generate
other data output file types like CSV, TXT, DAT, or XML (for pocket
PCs, etc) that you should be able to use standard VB file I/O
procedures to read the data and 'dump' it into any worksheet at any row
you specify. (I currently do this for filtering out non-relavent
readings lines based on client criteria for what range[s] of data they
want to analyze)

Alternatively, you can use ADODB (if you don't want to open every
source file[s]) to read the data into a recordset and 'dump' that data
into your worksheet.

With either approach, you don't have to physically open any source
files. With ADODB you don't even need to open the target workbook to
update the data because you can use its UPDATE function to add new
data.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Importing data from .xlsx files

Thanks for the suggestions, I'll sit down and work through them!

--
F


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
How can I batch convert 97-2003 .xls files to 2007 .xlsx files Dave Nuttall Excel Discussion (Misc queries) 4 August 3rd 09 11:38 PM
Importing External Data From Several Files Eric O'Connor Excel Discussion (Misc queries) 3 September 15th 06 06:55 PM
Importing data from other files MnO New Users to Excel 4 December 16th 05 08:41 AM
Importing data from text files Jeff Armstrong Excel Programming 3 October 28th 03 01:35 AM
Importing Multiple Data Files steve Excel Programming 0 July 24th 03 09:26 PM


All times are GMT +1. The time now is 03:33 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"