Choose macro by celle.value / generate rang

blaksnm

Well-known Member
Joined
Dec 15, 2009
Messages
554
Office Version
  1. 365
Platform
  1. Windows
Hi
I have 2 questions
1) In cell A1 I choose value from a dropdownlist to start the macro named according to this value
How do I do this?
Value: "Adm" runs macro "adm" etc

2) I have at table (A2:M100)
My macros does some input in column B, some B's are blank
I want to make a macro to make a "rang" number in column A where value in B excists - numbered as the next rang nr is last + 1 (skip blanks) - Like this

Column A Column B
Row 1 1 Some input
Row 2 Blank Blank
Row 3 Blank Blank
Row 4 2 Some input
Row 5 3 Some input
etc

Will anybody guide me on this one?
Best Regards
Snoopy
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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