When range "bg1" is copied from sheet "LB Rack" to the new sheet, It is pasted in column "BH". Why does it not paste into column "BG"?
Private Sub ComboBox1_Change()
Dim xlbook As Excel.Workbook
Dim j as Integer
Dim n as Variant
Dim xlapp As Excel.Application
Dim xlSheet As Excel.Worksheet
Set xlbook = GetObject("C:\07509\LB_RACKTMC.xlsx")
Set xlSheet = xlbook.Sheets("LB Rack")
Set xlapp = xlbook.Parent
xlapp.Visible = True
Set src = xlSheet.Range("bg1").CurrentRegion.SpecialCells(xlCellTypeVisible)
Set sh = xlbook.Sheets.Add
src.Copy sh.Range("bg1")
End Sub
Private Sub ComboBox1_Change()
Dim xlbook As Excel.Workbook
Dim j as Integer
Dim n as Variant
Dim xlapp As Excel.Application
Dim xlSheet As Excel.Worksheet
Set xlbook = GetObject("C:\07509\LB_RACKTMC.xlsx")
Set xlSheet = xlbook.Sheets("LB Rack")
Set xlapp = xlbook.Parent
xlapp.Visible = True
Set src = xlSheet.Range("bg1").CurrentRegion.SpecialCells(xlCellTypeVisible)
Set sh = xlbook.Sheets.Add
src.Copy sh.Range("bg1")
End Sub