Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2006, 09:01 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 131
Thanks: 10
Thanked 0 Times in 0 Posts
Default Read XSL File

Hi,

Is there anyway that I can use Excel VBA to read an XSL(T) file (line by line) and compare to a specified worksheet cell value?

Thanks in advance,

Neal

A Northern Soul
__________________
Neal

A Northern Soul
 
Old April 7th, 2006, 06:47 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Neal,

This code is from Excel VBA help

Dim TextLine
Open "TESTFILE" For Input As #1 ' Open file.
Do While Not EOF(1) ' Loop until end of file.
    Line Input #1, TextLine ' Read line into variable.
    Debug.Print TextLine ' Print to the Immediate window.
Loop
Close #1 ' Close file.


You can find this with keyword Line Input


-vemaju





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read Array using XSL chaitanya_619 XSLT 7 May 28th, 2008 12:29 PM
How to read XSL from jar present in applications l Archana144 Spring 1 March 21st, 2008 06:49 AM
Read Text file and convert to Binary file VB.net sjlsysprg1 Pro VB.NET 2002/2003 4 June 29th, 2007 06:53 AM
How to read cdata in xsl gantait XSLT 4 February 26th, 2007 04:34 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.