25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1KB

  1. Sub Shazam_Import()
  2. '
  3. Columns("A:A").Select
  4. Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
  5. TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
  6. Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
  7. :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
  8. TrailingMinusNumbers:=True
  9. Rows("1:1").Select
  10. Selection.Delete Shift:=xlUp
  11. Columns("A:F").Select
  12. Selection.AutoFilter
  13. Range("A1:F1").Select
  14. With Selection.Interior
  15. .Pattern = xlSolid
  16. .PatternColorIndex = xlAutomatic
  17. .ThemeColor = xlThemeColorDark2
  18. .TintAndShade = 0
  19. .PatternTintAndShade = 0
  20. End With
  21. Columns("A:F").Select
  22. ActiveSheet.Range("$A$1:$F$99999").RemoveDuplicates Columns:=6, Header:= _
  23. xlYes
  24. Columns("E:E").Select
  25. Dim Cell As Range
  26. For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
  27. If Cell <> "" Then
  28. ActiveSheet.Hyperlinks.Add Cell, Cell.Value
  29. End If
  30. Next
  31. End Sub