Post NOW() in column that has header of todays month

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
579
Office Version
  1. 2016
In Row/Column B5:b16 I have months, Apr, May, June, July, August...... etc

What I need is when my VBA Code is run, for whatever row I am in (say row D) , I want it to look at the correct column header for that month (so today is June) and then place a timestamp

Many thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are the month names in Rows or Columns? There is no "(say row D)" as the rows are labeled with numbers.
What are the column headers? The month names? Are the headers in row 5 or row 1?
 
Last edited:
Upvote 0
Hi

The months are in Row 2, from column 5 onwards (b5). and are all in row 2.

Column Headers are month names in full, starting APRIL (B5), MAY (B6), JUNE (B7), JULY (B8) , AUGUST (B9), SEPTEMBER (B10), OCTOBER (B11) , NOVEMBER (B12), DECEMBER (B13) , JANUARY (B14) , FEBRUARY (B15) , MARCH (B16)


Are the month names in Rows or Columns? There is no "(say row D)" as the rows are labeled with numbers.
What are the column headers? The month names? Are the headers in row 5 or row 1?
 
Upvote 0
If the column headers are in ROW 2 starting in COLUMN B, then APRIL would be in B2, MAY would be in C2, etc. Is that what you mean?
 
Upvote 0
*** PLEASE IGNORE, CANNOT DELETE, INCORRECT POSTING ***
Hi, no, April is in B5, May is in B6 etc.
In C4, D4, E4 will be the references. When I am in a cell (say D4) and I run the macro, I want it to carry on along that row until it finds the correct cheader (June would be B7), so it puts todays date in D7
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

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