Defining where the incert cell starts

StartingOut

Board Regular
Joined
Feb 1, 2011
Messages
92
Hi I have a macro that runs when i click n a button and it takes data from a couple of cells from several shhets and puts them in one master sheet, currently the data gets put in column A and B on row 1, I don't know how the make the code put the data starting in column E row 9.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

Option Explicit

Sub AssembleSummary()
Dim wsDest As Worksheet
Dim wsSrc As Worksheet
Dim NR As Long
Application.ScreenUpdating = False

Set wsDest = Sheets("AccountsReceivable")
wsDest.Range("A:B").ClearContents
NR = 1

For Each wsSrc In Worksheets
If wsSrc.Name <> wsDest.Name And wsSrc.Range("K49") > 0 Then
wsDest.Range("A" & NR).Value = wsSrc.Range("D12").Value
wsDest.Range("B" & NR).Value = wsSrc.Range("K49").Value
NR = NR + 1
End If
Next wsSrc

Application.ScreenUpdating = True
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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