Macro - Press Button to Fill in a row under a certain category

Excelina1234

New Member
Joined
Nov 10, 2014
Messages
23
Hi All,

I'm going to try to explain this as best I can.

I've created an Excel spreadsheet, in which there is an Inputs tab. In order to keep the sheet tidy and organised, I have created a row at the top, where I can add the hardcoded information. The idea is that, upon pressing a button that is linked to a macro, this information is A) automatically fed into the relevant section in the input sheet and B) that the cells, into which I hardcoded the original data become empty (i.e. clean and ready for someone else to add their information, push the button, and so on).

For example:

I have veterinary data on different pets that were treated (cats or dogs). The top of the sheet will have the empty cells that I need to fill in with information (1. Category (Dog/Cat), 2. Name, 3. Age). Once I have entered the following information into the cells...

Category Name Age
Dog Stella 4

... I will push the button and the data is added to a list of all the other dogs that visited the clinic. If I add a cat's information, I want the information to flow into the cat directory. Both directories are on the same page, separated by a couple of empty rows.

Unfortunately I cannot upload any excel myself, but hopefully these instructions are clear enough. Just spent the entire morning trying to figure this out and *any* help will be much appreciated.

Many many thanks,
Claudia
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Alternatively, if you could just point me to a website or another spreadhseet that is publicly available where the macro is not hidden I would really appreciate it.
 
Upvote 0

Forum statistics

Threads
1,215,376
Messages
6,124,593
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top