As the last step in a macro, I want to name my exported text file dynamically with the actual time of the system clock. So far, I've been able to name it according to date, but the time function does not seem to work. Below is an example of the "date name function" that works, and below that is the "time name function" that will not work. What am I doing wrong? Thanks, Fred
Function NamingExercise()
Name "C:\speed\spomcNamingExercise.dta" As "C:\speed\" + Date$ + "spomc.dta"
End Function
Function NamingExercise()
Name "C:\speed\spomcNamingExercise.dta" As "C:\speed\" + Time + "spomc.dta"
End Function
Function NamingExercise()
Name "C:\speed\spomcNamingExercise.dta" As "C:\speed\" + Date$ + "spomc.dta"
End Function
Function NamingExercise()
Name "C:\speed\spomcNamingExercise.dta" As "C:\speed\" + Time + "spomc.dta"
End Function