The information in this article applies to:
SUMMARY
In Microsoft Excel, when you use the Put statement in a Visual Basic for
Applications procedure, there is no limit to where you can start writing
data to a file. Therefore, it is possible to write data well beyond the
current end of a file.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspYou can use the Put statement to place data in a file at a specified location. However, when you write data beyond the end of a file, the gap between the end of file and the starting point of new data is filled with random data. In order to see this behavior, you must first create a sample file. Follow these steps to create a sample file:
Q150700 Excel: How to Work with Random Access Files REFERENCESFor more information about the Put statement, click the Index tab in Microsoft Visual Basic Help, type the following text putand then double-click the selected text to go to the "Put Statement" topic. Additional query words: xl97
Keywords : kbprg kbdta KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |