Macro to update list to last row on another sheet copy source from multiple sheets

Azamamir

New Member
Joined
Mar 18, 2014
Messages
3
Hi Excel people out there, I need help on macro as I am totally new on this.

Basically, I have a summary list (I named it UpdTable) and also data on multiple sheets (SumBankBal, Affin, BIMB, HLB). I need to copy certain information from few cells of these sheets to the summary list (UpdTable) to the last row of the list. There also formulas on few columns in this list.

But my problem is that it keeps on updating on the existing line of the list which I do not know how to change it. I truly hope that someone experts out there could help me simplify this. Thanking everyone in advance.

Below is what I recorded on my macro.

Sub Update()
'
' Update Macro
' Update Table
'
' Keyboard Shortcut: Ctrl+Shift+L
'

With ActiveCell.EntireRow
.Copy
.Offset(1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
On Error Resume Next
.Offset(1).SpecialCells(xlCellTypeConstants).Clear
On Error GoTo 0

Sheets("SumBankBal").Select
Range("C2").Select
Selection.Copy
Sheets("UpdTable").Select
Range("A22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False



Sheets("AFFIN").Select
Range("C21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("B22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("AFFIN").Select
Range("E21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("C22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("AFFIN").Select
Range("F21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("D22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("AFFIN").Select
Range("G21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("E21").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("AFFIN").Select
Range("K8").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("F22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("BIMB").Select
ActiveWindow.SmallScroll Down:=0
Range("U6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("I22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("BIMB").Select
Range("U7").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("J22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("BIMB").Select
Range("U8").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("K22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("BIMB").Select
Range("Q21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("L21").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("HLB").Select
Range("V6").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("O22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("HLB").Select
Range("V7").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("P22").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets("HLB").Select
Range("R21").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("UpdTable").Select
Range("Q21").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False


End With


End Sub
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top