dear experts
i have a fill with 40 sheets.
i wa t to copy two column to all the sheets. i intend doing it by "cut and paste" method.
i wonder can a macro would do it at ease.
what would be the macro?
thanks
M S Narayanan
dear experts
i have a fill with 40 sheets.
i wa t to copy two column to all the sheets. i intend doing it by "cut and paste" method.
i wonder can a macro would do it at ease.
what would be the macro?
thanks
M S Narayanan
this is untested as you did not offer any sample data or mocked up solution.
Option Explicit Sub CopyPaste() Dim ws As Worksheet Dim rng As Range Dim w1 As Worksheet Application.ScreenUpdating = False w1 = Sheets("Main") 'Change the name to your ws you are copying from Dim lr As Long lr = w1.Range("A" & Rows.Count).End(xlUp).Row 'find last cell in column A Set rng = w1.Range("A1:B" & lr) 'Range to copy. Change columns as needed For Each ws In Worksheets w1.rng Copy 'copy range ws.Range("A1").PasteSpecial xlPasteValues Next ws Application.CutCopyMode = False Application.ScreenUpdating = True End Sub
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks