lcoleman1412
New Member
- Joined
- Mar 25, 2025
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
My boss would like me to insert a button in cell C25. He wants to be able to click the button and be able to sort the data. When I tried to create and insert a button I plugged in a VBA code and it sorted it but it would move all of my data up. I need to be able to sort it while leaving rows 1, 2, 6,16 ,22, 23 with the headings, #'s 1,2,3,4, and CDT-Recall-8 in the same place. Could anyone please help me with a code that can sort the data on the sheet and be able to sort any new data inserted without moving those certain cells? My boss said he wants column B and C to sort and column C to be the key.
The first two images I have uploaded are images of my excel sheet. The last image is how my excel sheet turned out after I tried the VBA code.
The first two images I have uploaded are images of my excel sheet. The last image is how my excel sheet turned out after I tried the VBA code.