strFName= "D:\lp" & i & "_" & j & ".txt"open strFName for output as #1It could all be in one lineopen "D:\lp" & i & "_" & j & ".txt" for output as #1But it is easier to debug if it is separate.