• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA to Copy Column to next Empty column

Vijayarc

Member
Hi Team
i have excel 3 freeze column A B C, were B only column we update daily basis,
B column has fixed row B2: B41
i will copy B column data on daily basis to next new column on date wise
i want VBA button to copy B2:B41 to new empty column with today date header

and also B column value should add to C column value
 

Attachments

  • sample.xlsx
    16.4 KB · Views: 2
Hi !

As a very beginner starter :​
Code:
Sub Demo1()
    C = ActiveSheet.UsedRange.Columns.Count + 1
    Cells(C).Value = Format(Date, "d mmm")
    Cells(2, C).Resize(40).Value = [B2:B41].Value
    [C2:C41].Value = [B2:B41+C2:C41]
End Sub
Do you like it ? So thanks to click on bottom right Like !
 
Back
Top