View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
[email protected] cjasantos@comcast.net is offline
external usenet poster
 
Posts: 1
Default Macro to export as Text, only the results not the formula

Hi,

I am using this macro to export to a text file but I have vlookups and
other formulas that when I export only the formula gets exported, what
I need i to export ONLY the results of the query.

Public Sub SaveAsTXT()
fileSaveName = Application.GetSaveAsFilename( _
FileFilter:="Text Files (*.txt), *.txt")
If fileSaveName < False Then
MsgBox "Save as " & fileSaveName
End If
End Sub

Thank you,

Muaitai