copy paste specific content To Template in specific Cell

excelnoobhere

Board Regular
Joined
Mar 11, 2019
Messages
61
I have the following code that looks at information from my "master" sheet then created a new sheet from "template" renames it and passes certain formation bases on content to the new template sheet.

however, the overhead tiles on the "master" are being passes over and I would like for them not to be there because i have new titles on my template.

i would also like for the information to be passes as follows

A go into B
B go into D
O go into C

how can i go about this?

Thanx in advance


Code:
Sub CopyToNewTempSheet()




   Dim Cl As Range
   Dim Uniq As String
   Dim Ky As Variant
   Dim Ws As Worksheet


   
   Set Ws = Sheets("Master")
   Ws.AutoFilterMode = False
   With CreateObject("scripting.dictionary")
      For Each Cl In Ws.Range("A3", Ws.Range("A" & Rows.Count).End(xlUp))
         If IsNumeric(Left(Cl, 5)) Then
            Uniq = Mid(Cl, 6, 4)
            If Uniq <> "" Then .Item(Uniq) = Empty
         End If
      Next Cl
      For Each Ky In .Keys
         Ws.Range("A2:O2").AutoFilter 1, "*" & Ky & "*"
         
    Sheets("Template").Select
    Sheets("Template").copy Before:=Sheets(1)
    Sheets("Template (2)").Move Before:=Sheets(1)
    Sheets("Template (2)").Name = Ky
  
    
         Intersect(Ws.AutoFilter.Range.EntireRow, Ws.Range("A:B,O:O")).copy Range("A6")
      Next Ky
      Ws.AutoFilterMode = False
   End With
End Sub
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,223,713
Messages
6,174,039
Members
452,542
Latest member
Bricklin

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