SteveOranjin
Board Regular
- Joined
- Dec 18, 2017
- Messages
- 170
Hi,
I have a formula that is working at a subsistence level that I want to get operating in a better way. What the Formula I have does
Take Data from Cells in Sheet2 and Populate the first 1,000 rows in sheet 1 with it.
What I'd like this formula to do instead is
Below, is the formula I have working now. I don't imagine it will be much help, but your welcome to take a look.
I have a formula that is working at a subsistence level that I want to get operating in a better way. What the Formula I have does
Take Data from Cells in Sheet2 and Populate the first 1,000 rows in sheet 1 with it.
What I'd like this formula to do instead is
- Create two new columns, insert them BEFORE the existing A&B Columns. So A and B are now C and D.
- With the new Row Enter Into Cell A1: "Brandname"
- With the new Row Enter Into Cell B1: "Brandcode"
- Grab the content from Cells Q3 and R3 in "Sheet2"
- Populate all of A and B cells with the values from Q3 and R3 where there is content in the row.
- Clarification: So if 1000C has any value in it at all, put the values from Q3 and R3 into A1000 and B1000
- If D1001 has data in it, also populate A1001 and B1001 with the designated values
Below, is the formula I have working now. I don't imagine it will be much help, but your welcome to take a look.
Code:
Sub First_2_Column_Set_Up()'
' First_2_Column_Set_Up Macro
'
'
ActiveWindow.ScrollColumn = 2
Range("Q3:R3").Select
Selection.Copy
Sheets("Sheet1").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("A2:B1073")
Range("A2:B1047").Select
Sheets("Sheet2").Select
Range("B1").Select
End Sub