Vapaa kuvaus

Isaan Rules WFF CCC If you walked away smiling-then for you the price was right Keep Exceling Suosikkibändit/artistit: Queen, Rammstein, genesis, Bruce Bringsteen, Kino, Mandref Mann Earth band Who Lempikirjat: ohjelmointi... Suosikkipalstat Suomi24 Keskusteluissa: EXCEL, Kivitalot, EPS En pidä: pakkanen ja loskakelit Ruoka & juoma: loimulohi ja valkkari Linkit: http://www.kundepuu.com, Khorat Koulutus: --- Ammatti: Tiede/teknologia Työskentelen: freelancer Ase tai siviilipalvelus: yliluutnantti Siviilisääty: Varattu Lapset: --- Hakusanat: Thaimaa, korat, Excel, VBA, ACAD, CNC, Polyurea, EPS, MgO elementti

Aloituksia

7

Kommenttia

1374

  • Uusimmat aloitukset
  • Suosituimmat aloitukset
  • Uusimmat kommentit
  1. Muuttele+nimet+ja+polut+oikeaksiSub+Makro1()Dim+polku+As+StringDim+tiedostonnimi+As+StringDim+lähde+As+Workbookpolku+=+"C:\"tiedosto+=+"malli_02"Worksheets("Taul1").Range("A:P")+=+""Set+lähde+=+Workbooks.Open(polku+&+tiedosto)ThisWorkbook.Worksheets("Taul1").Range("A1:P1000").Value+=+lähde.Sheets("Taul1").Range("A1:P1000").Valuelähde.Close+FalseRange("A1").SelectActiveWorkbook.Worksheets("Taul1").Sort.SortFields.ClearActiveWorkbook.Worksheets("Taul1").Sort.SortFields.Add+Key:=Range("A1:A20"),+SortOn:=xlSortOnValues,+Order:=xlAscending,+DataOption:=xlSortNormal++++With+ActiveWorkbook.Worksheets("Taul1").Sort++++++++.SetRange+Range("A1:P1000")++++++++.Header+=+xlGuess++++++++.MatchCase+=+False++++++++.Orientation+=+xlTopToBottom++++++++.SortMethod+=+xlPinYin++++++++.Apply++++End+WithEnd+SubSub+Makro2()Worksheets("Taul1").Range("A:P")+=+""Worksheets("Taul1").Range("A1:P1000").Value+=+Worksheets("Taul2").Range("A1:P1000").ValueRange("A1").SelectActiveWorkbook.Worksheets("Taul1").Sort.SortFields.ClearActiveWorkbook.Worksheets("Taul1").Sort.SortFields.Add+Key:=Range("A1:A20"),+SortOn:=xlSortOnValues,+Order:=xlAscending,+DataOption:=xlSortNormal++++With+ActiveWorkbook.Worksheets("Taul1").Sort++++++++.SetRange+Range("A1:P1000")++++++++.Header+=+xlGuess++++++++.MatchCase+=+False++++++++.Orientation+=+xlTopToBottom++++++++.SortMethod+=+xlPinYin++++++++.Apply++++End+WithEnd+SubSub+Makro3()Dim+vika+As+LongDim+löydetty+As+RangeDim+löydetty2+As+RangeDim+polku+As+StringDim+tiedostonnimi+As+StringDim+lähde+As+WorkbookDim+solu+As+RangeApplication.DisplayAlerts+=+FalseOn+Error+Resume+NextWorksheets("Huuhaa").DeleteOn+Error+GoTo+virheWorksheets.Add(After:=Worksheets(Worksheets.Count)).Name+=+"Huuhaa"polku+=+"C:\"tiedosto+=+"malli_04"Set+lähde+=+Workbooks.Open(polku+&+tiedosto)ThisWorkbook.Worksheets("Huuhaa").Range("F1:I1000").Value+=+lähde.Sheets("Taul1").Range("A1:D1000").Valuelähde.Close+FalseThisWorkbook.Worksheets("Taul1").Range("A1:D1000").Copy+Worksheets("Huuhaa").Range("A1:D1000")With+Worksheets("Huuhaa").Range("E1")++++.FormulaR1C1+=+"=RC[-4]&RC[-3]&RC[-1]"++++.AutoFill+Destination:=Range("E1:E20")End+WithWith+Worksheets("Huuhaa").Range("J1")++++.FormulaR1C1+=+"=RC[-4]&RC[-3]&RC[-1]"++++.AutoFill+Destination:=Range("J1:J20")End+Withvika+=+Worksheets("Huuhaa").Range("J65536").End(xlUp).RowFor+Each+solu+In+Worksheets("Huuhaa").Range("J1:J"+&+vika)++++Set+löydetty+=+EtsiJaSiirrä(solu,+Columns("E:E"))++++If+Not+löydetty+Is+Nothing+Then++++++++If+löydetty2+Is+Nothing+Then++++++++++++Set+löydetty2+=+löydetty++++++++Else++++++++++++Set+löydetty2+=+Union(löydetty2,+löydetty)++++++++End+If+++++End+IfNextWorksheets("Taul1").Range(löydetty2.Address).EntireRow.Deletevirhe:ThisWorkbook.Worksheets("Huuhaa").DeleteApplication.DisplayAlerts+=+TrueEnd+SubFunction+EtsiJaSiirrä(Hakuehto+As+Variant,+HakuAlue+As+Range)+As+RangeDim+solu+As+RangeDim+EkaOsoite+As+StringWorksheets("Huuhaa").ActivateWith+HakuAlueSet+solu+=+.Find(+_What:=Hakuehto,+_LookIn:=xlValues,+_LookAt:=xlWhole,+_SearchOrder:=xlByRows,+_SearchDirection:=xlNext,+_MatchCase:=False,+_SearchFormat:=False)If+Not+solu+Is+Nothing+ThenSet+EtsiJaSiirrä+=+soluEkaOsoite+=+solu.AddressDoSet+EtsiJaSiirrä+=+Union(EtsiJaSiirrä,+solu)Set+solu+=+.FindNext(solu)Loop+While+Not+solu+Is+Nothing+And+solu.Address+<>+EkaOsoiteEnd+IfEnd+WithEnd+FunctionKeep+EXCELing@Kunde