Home |
Search |
Today's Posts |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thu, 6 Jan 2005 08:51:55 -0500, Tom Ogilvy wrote:
Function OpenTextFileToString2(ByVal strFile As String) As String ' RB Smissaert - Author Dim hFile As Long hFile = FreeFile Open strFile For Input As #hFile OpenTextFileToString2 = Input$(LOF(hFile), hFile) Close #hFile End Function Works like a charm. Nice and simple. I can feed the output of this function directly into a user form textbox. Thanks, Don <donwiss at panix.com. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text strings from a variable string | New Users to Excel | |||
Setting a string variable as the file name | Excel Discussion (Misc queries) | |||
find a variable text string | Excel Discussion (Misc queries) | |||
How to activate a file when the filename is represented by a string variable | Excel Programming | |||
Using a variable string in a file save path | Excel Programming |