Help to write a macro in vba excel !

crazii

New Member
Joined
Aug 6, 2010
Messages
8
Hello,

I was wondering if someone can help me write a macro that does the following:

there are a list of questions:

Question 1

(other info)

Question 2

(more info)

Question 3

(info about Q3)

.. etc.

I want to create a macro which will find the cell containing "Question 1", "Question 2", etc..and make the entire row be highlighted grey and bolded in white and underlined. There can b upto 30 questions or more.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
crazii:

In this case no need to use Macro,
Try select the whole range with data,
Select filter -> AutoFilter -> Select the drop down autofilter box of column with the words contain Question-> Custom -> Contains: Question -> Select all the filtered row and change the format u want.

Other Useless data also can be clear by using autofilter

See if it is ok, thx.
 
Last edited:
Upvote 0
I tried that but it doesn't work as some questions itself contain the word 'questions'. Thanks for the suggestion though !
 
Upvote 0

Forum statistics

Threads
1,215,892
Messages
6,127,610
Members
449,389
Latest member
ChessManNaill

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