Edgarvelez
Board Regular
- Joined
- Jun 6, 2019
- Messages
- 197
- Office Version
- 2016
- Platform
- Windows
VBA Code:
Sub Macro4CreatSplShpmpSht()
'
' Macro4CreatSplShpImpSht Macro
'
'
Sheets("Dashboard").Select
Dim sh1 As Worksheet, sh2 As Worksheet
Set sh1 = Sheets("Dashboard")
Set sh2 = Sheets("Split Shipment Import")
Set wb = ActiveWorkbook
Set wsDashboard = wb.Sheets("Dashboard")
Set wsData = wb.Sheets("Split Shipment Import")
Set wsDest = wb.Sheets("Split Shipment Import")
'--------------------------Single or Multiline Check----------------------------
sh1.Range("C10").Select
Select Case Join(Application.Transpose(Active.Sheet("B22:E22").Value), "|")
Case "Yes"
sh1.Range("B24").Select
Case "NO"
sh1.Range("C24").Select
'Empty---------
Range("B29").Select
ActiveCell.FormulaR1C1 = "Empty"
Range("B30").Select
'Full-----------
Range("B29").Select
ActiveCell.FormulaR1C1 = "Full"
Range("B30").Select
End Select
Hi All, I have a bit of code that I can't get to work, kind of simple what I want to do, if any part of the range is empty then run the empty code if not then run the other.
I have used case before but I am missing something here.
Any help is appreciated and thanks in advance.
Attachments
Last edited by a moderator: