Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again!
I am using some methods to create a textfile with just one line. Like " The process begun at monday 3 PM" or something like that. This line will always be updated (actually the whole file). But now i would like the following: i would like to have the text in the textfile being displayed in a msgbox in Excel. It's only one single line, but it could be considered as everything (all text) in the textfile. Could someone help me on this ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
only part of code, that you can incorporate into yours: Dim fsFs As Object Dim fsInput As Object Set fsFs = CreateObject("Scripting.FileSystemObject") Set fsInput = fsFs.OpenTextFile(Filename:=InputFile, _ IOMode:=ForReading, create:=False, _ Format:=TristateUseDefault) msgbox fsInput.readline fsInput.close 'Input file = full file name including path Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assign your text to a variable e.g. MyText and display that.....
MsgBox MyText -- Cheers Nigel "Silencer116" wrote in message oups.com... Hi again! I am using some methods to create a textfile with just one line. Like " The process begun at monday 3 PM" or something like that. This line will always be updated (actually the whole file). But now i would like the following: i would like to have the text in the textfile being displayed in a msgbox in Excel. It's only one single line, but it could be considered as everything (all text) in the textfile. Could someone help me on this ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofit row height when retrieving text via formula | Excel Discussion (Misc queries) | |||
WHEN DOWNLOADING A TEXTFILE EXCEL DELETES BLANK ROWS - STOP THIS? | Excel Worksheet Functions | |||
Need to keep text format when retrieving records from database | Excel Programming | |||
Retrieving text being typed and cursor position using VBA or automation, how? | Excel Programming | |||
Excel VBA to access URL as Textfile | Excel Programming |