Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

VB/Frontpage ????

My question is similar to q10259657.  I want to take a flat text file say file01, which contains two columns.
aaa   12345
bbb   12312
ccc   212ab
I want to transform the aaa, bbb etc into a hyperlink consisting of a constant string say
'http://mymachine/documentation/tables/aaa.htm' and do the same for each line in the file.  
What is some VB code that will do this?
Avatar of MitchBroadhead
MitchBroadhead

Is the flat file a text file?

Then it would be:

dim strTemp as str

Open "<textfile>.txt" for Input as #1
line input #1, strTemp

hyperlink "http://mymachine/documentation/tables/" & strTemp

I don't know the exact code for a hyperlink as i am not at my desk.
remember to

Close #1

the textfile
ASKER CERTIFIED SOLUTION
Avatar of AHadiA
AHadiA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoxomos

ASKER

Don't know anything about it but it looks good.  Will try it this weekend.  Thanks