Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Save file as text from cell
I have a company name in one cell, when I click save I would like the company
name pasted in the name box. Thanks |
#2
|
|||
|
|||
This is just an example. This little macro will SaveAs to the contents of A1.
Put c:\whatever.xls in cell A1 and run the macro. Sub savetocell() Dim s As String s = Cells(1, 1) ActiveWorkbook.SaveAs Filename:= _ s, FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub -- Gary''s Student "jweasl" wrote: I have a company name in one cell, when I click save I would like the company name pasted in the name box. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Exporting excel to text file | Excel Discussion (Misc queries) | |||
Exporting excel to text file | Excel Discussion (Misc queries) | |||
Exporting excel to text file | Excel Discussion (Misc queries) | |||
a protected cell w/formula only updates only on file save? | Excel Discussion (Misc queries) | |||
How to save an excel spreadsheet as a text file without added quot | Excel Discussion (Misc queries) |