V vicky Dec 28, 2009 #1 I need a vba code to MOVE the COPY of sheets from input.xls To thisworkbook . "VBA code For Moving The Copy oF sheeets"
I need a vba code to MOVE the COPY of sheets from input.xls To thisworkbook . "VBA code For Moving The Copy oF sheeets"
H Harald Staff Dec 28, 2009 #2 Sub test() ActiveSheet.Copy after:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count) End Sub HTH. Best wishes Harald
Sub test() ActiveSheet.Copy after:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count) End Sub HTH. Best wishes Harald
V vicky Dec 28, 2009 #3 hey thanks ... hey can you give a vba code to delete all the sheets whose sheet name are not coloured .......
hey thanks ... hey can you give a vba code to delete all the sheets whose sheet name are not coloured .......
H Harald Staff Dec 28, 2009 #4 Code like that is really dangerous. Where is the coloring? Sheet names in colored spreadsheet cells, or colored sheet tabs?
Code like that is really dangerous. Where is the coloring? Sheet names in colored spreadsheet cells, or colored sheet tabs?
V vicky Dec 28, 2009 #5 hey i got figure it out thru macro recording. thanks .... For Each wksSheet In ThisWorkbook.Sheets If wksSheet.Tab.ColorIndex = -4142 Then wksSheet.Delete End If
hey i got figure it out thru macro recording. thanks .... For Each wksSheet In ThisWorkbook.Sheets If wksSheet.Tab.ColorIndex = -4142 Then wksSheet.Delete End If