Let's see exactly what is happening with your short loop from #13 above. Copy the following into the do-file editor, run it (in full, not a line at a time), and then copy and paste the log file into a post, using CODE blocks as requested above and explained in the Statalist FAQ.
Code:
version
insheet using "missing longitudinal.csv", clear names
drop if ID==""
levelsof ID, local(individuals)
foreach ID of local individuals {
display "`ID'_VL.tab"
dir "`ID'_VL.tab"
insheet using "`ID'_VL.tab", names clear
}

Comment