Macro Help

ai1094

Board Regular
Joined
Aug 23, 2018
Messages
92
Hello,

So I have a few macros that I recorded/created. I want to assign my macro to a button and when a user clicks that button, it will run on a specific worksheet within the workbook.

For example:

I downloaded an extract from a dashboard that converts the data into an excel file. The problem is that data is unorganized and hard to read. That is where my macro comes in play. My macro organizes the data accordingly. So what I want to do is download that data, copy it into a new worksheet where my macros are located and I want the user to be able to click one of my button options and it will format the data.

Does anyone know how to go about this? I know it's probably simple to do by declaring variables but I'm not sure how to write it myself.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You can get to a specific sheet in VBA like this:
Sheets("SheetName").Select

Is that what you are after?
 
Upvote 0
I wasn't sure if the original question was just how to get it to:
run on a specific worksheet within the workbook.
or if they were talking about the whole macro.

In any event, if it is the same question that was asked again and answered, please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules). If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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