need assist with save as csv code
husky101_at_yahoo.com
Date: 01/19/05
- Next message: Norman Jones: "Re: Offset question"
- Previous message: Peter: "Re: OnTime Unusual Application"
- Next in thread: Bob Phillips: "Re: need assist with save as csv code"
- Reply: Bob Phillips: "Re: need assist with save as csv code"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Jan 2005 22:00:16 -0800
I have this following code
What I require is at the activeCell.SpecialCells(xlLastCell)
for it to add the next blank row to the selection.
I am having some difficulty with this.
any assistance will be greatly appreciated.
Paul
Sub SaveAsCSV()
'This macro will SAVE AS to C:\Trees folder, which must exist before
macro runs
'
Range("A2").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Workbooks.Add
Active***.Paste
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:="C:\Trees\" & "UP" & Format(Now,
"yymmddhhmm") & ".csv", FileFormat:=xlCSV, _
CreateBackup:=False
ActiveWorkbook.Close SaveChanges:=False
End Sub
- Next message: Norman Jones: "Re: Offset question"
- Previous message: Peter: "Re: OnTime Unusual Application"
- Next in thread: Bob Phillips: "Re: need assist with save as csv code"
- Reply: Bob Phillips: "Re: need assist with save as csv code"
- Messages sorted by: [ date ] [ thread ]