In exce VBA, I want to copy the format from A1 to the cell end with "*end" to another sheet. All I know is use the code below, how to change the 'A301' to the cell end with "*end".
thanks
Code:
worksheets("sheet1").Range("A5:A301").Copy worksheets("sheet2").Range("C4:C300").PasteSpecial Paste:=xlPasteFormats
Comment