Range("A7").Entirecolumn.Insert
CopyOrigin:=xlFormatForm
Right Or Below
Rows.Group
Rows.Ungroup
Range("A2:A7").ClearContents
Range("A2:A7")=""
Range(Activecell.Offset:=Count).EntireRow.Delete
Range("B2").Activate
Activewindow.FreezePanes=True
With sheets("読み込み").Range("C1").AutoFilter Field:=1,Criteria1:=Range("品名!A2").Value
.Range("C1").CurrentRegion.Copy
sheets("チェックシート").Range("A1").PasteSpecial Paste:=xlpastevalues.AutoFilter=False
End width
Application.CutCopyMode=False
Range("A1").AutoFilter
Activecell.CurrentRegion.select
MsgBox Range("C1").CurrentRegion.Address
Range("A3:A5").Borders.LineStyle:=xlCountinous
Dim Foundcell As Range
Set Foundcell=Range("1:1").Find("6月")
If Not Foundcell Is Nothing Then
Foundcell.Offset(0,1).Entirecolumn.Insert
End If
Worksheets(1).Range("A:C").RemoveDuplicates
Rows:=Array(1,2,3).Header=xlYes
Range("A1:A"& Activecell.Row-1).EntireRow.Delete
Range(セル範囲).Sort Key1:=Range("A1"),Order1:=xlAscending
Range(セル範囲).Sort Key1:=Range("A1"),Order1:=xlDescending
Application.CutCopyMode=False
Range("B:C").ColumnWidth=25
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression,Formura1:="=MOD(Row(),2)=0"
Selection.FormatConditions(1).Interior.ColorIndex=35
Dim i As Long
Dim 最終行 As Long
Dim 最終列 As Long
最終行=Cells(Rows.Count,1).End(xlUp).Row
最終列=Cells(1,Columns.Count).End(xlToLeft).Column
For i=1 To 最終行 Step2
Range(Cells(i,1),Cells(i,最終列)).Interior.color=15794160
Next
Dim ListLastRow As Long
Dim Delete Rows As Range
Dim ws As Worksheet
Set ws=Activesheet
ListLastRow=ws.cells(Rows.Count,1).End(xlUp).Row
For i=2 To ListLastRow
If IsEmpty(ws.cells(i,2))Then
Set DeleteRows=ws.Rows(i).EntireRow
Else
Set DeleteRows=Union(DeleteRows,ws.Rows(i).EntireRow)
End if
End If
Next
If Not DeleteRows Is Nothing Then
DeleteRows.Delete
Range("A1").CurrentRegion.specialcells(xlcellTypeVisible).Select
With Range("A1").CurrentRegion.Resize(,Rows.count-1).offset(1,0).specialcells(xlcellTypeVisible).Select
Activesheet.showAllData
Dim i As Integer,j As Integer
j=1
For i=2 To Range("B"& Rows.count),End(xlUp).Row
If(Range("B"& i).Rows<>"")or
(Range("D"& i).Rows<>"")Then
j=j+1
Range("B"& i).Resixe(,3).Copy
Range("B"& j)
Range("B"& i).Resize(,3)=""
End if
Next