HELP with VBA code Please :(

usui

Board Regular
Joined
Apr 20, 2020
Messages
55
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi excel masters,

I hope you can help make create a code that can help resolve my problem. I'm using excel 2016 and we already have a added macro that auto hides the row 1 & 2. Please see the sample picture below.
1610135680219.png

what I'm hoping to make is to add a new macro that will auto unhide the Row 2, that will merge the Row 2A until the last column used with a background color of yellow with a note in the middle of it with a Font style (Calibri), BOLD, font size (14). Please see the sample picture below.
1610135892980.png

I hope you have a vba code that can make this possible to achieve, I really need this for my work :(

I hope someone can help me and thank you in advance masters.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
that will merge the Row 2A until the last column ....

You should avoid merged cells. Rather than using merged cells, have a look at "centre across selection"
Please check this out:
LINK
 
Upvote 0
You should avoid merged cells. Rather than using merged cells, have a look at "centre across selection"
Please check this out:
LINK
do you have a vba code that can do the centre across selection?
 
Upvote 0
Hi,
I am not sure why you not recording a macro to do just that?
i am sorry i dont know how to create a macro, i only know how to add it. that is why i am asking for help here for a vba code
 
Upvote 0
Hi,
i am sorry i dont know how to create a macro, i only know how to add it. that is why i am asking for help here for a vba code
Well look it up how to record a macro in Excel... that is what you should be your first step going towards VBA .. There are tons of videos on the web :)
Go and check them out.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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