... during the the import of the txt file i recieve "error 1004"???????????????????
Macro is in module2
The file of txt is in the zip file (regione.02)
... during the the import of the txt file i recieve "error 1004"???????????????????
Macro is in module2
The file of txt is in the zip file (regione.02)

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
When I run it, the variable "n" is not defined (it is empty), since the your function "FirstFree" does not return anything. It never goes into the "Do Loop" so FIrstFree is never given a value to return
What value do you want FirstFree to define if it never enters the loop? Define this initially and that value will be returned.
Steve