Hi All,
I was assigned to create a simple button macro used in Excel 2003. As I'm new to VBA, it took me a while to come up with a workable code.
Refer to the code below.
As stated above, I have two worksheets, ListSheet, and PasteSheet. The above coding works in PasteSheet when I assigned it to a button there. However when I assigned the code to a button in ListSheet, an error code of 400 appeared.
Basically, what does this button do is to copy a certain range of cells from ListSheet to a range of cells in PasteSheet. If the cells in PasteSheet are occupied, it will shift down and paste the copied cells on the new group of cells.
I have also planned in advance such that I will be creating more buttons for other cells. I'm wondering whether there is a code such that I don't need to recreate for different buttons via hyperlinking it to the cells I need it to copy.
Thanks!
Bookmarks