Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hello
I have big workbook with many macros helping people to sort out some complicated document. anyway last step after document has been edited, one tab needs to be saved as txt file. I wrote a macro that does it (it is run from a button on tab called 'summary'). tab that needs to be saved as txt is called 'output'. tab 'output' contains very long lines over 255 characters long. problem is macro saves different tab sometimes and I have no idea why. macro is simple and goes like that: Dim fname '- define file name fname = "cardex" & Mid(Worksheets("output").Range("a2"), 23, 8) & ".txt" Dim cpath '-define path - range A7 contains path cpath = Worksheets("summary").Range("a7") Sheets("output").Select ActiveWorkbook.SaveAs Filename:=cpath & fname, FileFormat:=xlText, _ CreateBackup:=False any ideas greatly appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Saves Once only | Excel Discussion (Misc queries) | |||
What happens when Excel 07 saves? | Excel Discussion (Misc queries) | |||
counting saves | Excel Discussion (Misc queries) | |||
when I save a file from Excel 2003 to cd it saves as read only | Excel Worksheet Functions | |||
Save As CSV saves empty rows | Excel Discussion (Misc queries) |