I figured it out. The command to pass values from a file to variables is "Input." I was almost there in the above example. Here's the working code:
Sub Main()
dim Somevariable1 as string
dim Somevariable2 as string
dim Somevariable3 as string
if dir$ ("c:\temp\savedvariables.txt") <>...
Here's the test macro I'm trying to get to read and write to/from a text file. I've got the "write" bit working, but I don't know how to read from the file once it's been opened. "Read" is obviously not the correct command:
Sub Main()
dim Somevariable1 as string
dim Somevariable2 as string...
Hello,
I'm attempting to implement a "save file" of sorts for a number of Extra basic macros. Ideally, i'd like it to ask a series of questions, then save the user responses to a text file so it remembers the answers the next time the macro runs.
The point I'm stumped at is how to code it to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.