Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move one column to another column upon saveas

Status
Not open for further replies.

maximas

Programmer
Nov 29, 2002
40
US
can anyone help!
I have a workbook with 3 worksheets, and 3 columns ie. A B & C on each worksheet. A is the current sum, B is the previous sum, and C is the newest sum. I want to use a macro to save the workbook and create a new one with all the 3 worksheet and 3 columns. A is the current sum, which is blank, B is the previous sum, which is the C in the old worksheet, and C is the newest sum, which is A + B.
I have the saveas macro: how would I do it upon clicking the macro??? Please Help ???
Sub New_Payment_Request()
Dim newname As String
newname = Range("c2").Text
ActiveWorkbook.SaveAs FileName:= _
"" & newname & ".xls", FileFormat:=xlNormal, _
password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
Excel.Application.Quit
End Sub
 
no one has the knowledge of figuring this out!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top