Gerar TXT no Camando Button!!!!!

xandrinho

19-02-2015 21:54:39

Olá amigos, já quebrei a cabeça ..mas não consegui, por isso venho pedir ajuda!!!!!

Queria clicar no comando button da userform e salvar em txt (bloco de nota) as informações do intervalo da Plan1 V8 Até v92....

Encontrei este código no forum, mas não consegui adaptar, poderiam por favor me ajudar?

Sub Exportar()
Application.DisplayAlerts = False

template_file = ActiveWorkbook.FullName

fileSaveName = Application.GetSaveAsFilename( _
InitialFileName:="C:\users" + _
VBA.Strings.Format(Now, "mmddyyyy") + ".txt", _
fileFilter:="Text Files (*.txt), *.txt")

If fileSaveName = False Then
Exit Sub
End If