ich brauch bitte mal eure Hilfe.
Ich möchte gerne einen Export via VBA machen.
Dabei möchte ich meine ganzen Buttons auf dem exportierten Sheet entfernen.
' Save the new workbook
export_day = Format(Now(), "mm/dd/yyyy")
export_day = Replace(export_day, "/", "_")
supp_path = export_folder & "\" & supplier & "_" & export_day & ".xlsx"
'lock the file name and remove buttons
cop_temp_shet.Shapes("insert_row").Delete
cop_temp_shet.Shapes("insert_column").Delete
cop_temp_shet.Shapes("delete_row").Delete
cop_temp_shet.Shapes("Export").Delete
cop_temp_shet.Shapes("update_quantity").Delete
bei allen cop_temp_shet.Shapes("name").Delete hängt sich der Code auf.
z.B. beim Export - der Button heisst export als auch das Makro selbst!
was ist hier falsch?
Dankeschön
grüße
Johannes