Something happened to my macro. I have a problem . I have a sheet with buttons for all "TO DO MACRO" macros. However, as for one, I press the button. I get an error "Method Select class Range ... 1004", but when I start from the sheet where the macro is, everything is ok. How to make it start from another sheet. Below is part where is bug its shown.
Rich (BB code):
Set wbMe = ActiveWorkbook
wbMe.Sheets("input_forecast").Rows("1:1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.NumberFormat = "YYYY-MM-DD"