Day Function Format VBA

vbanewbie68

Board Regular
Joined
Oct 16, 2021
Messages
171
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Sir or Madam
I am new to VBA in excel. I need your help please to see how to use the Day function VBA to focus on ‘Day’ only, rather than in the month and year format. Your help is much appreciated.

Please see some screenshots below – first one is my code for a test, and then the 2nd screenshot is the spreadsheet - Take a look at the Gift Day of the Month Column where I need to have just Day only, rather than the full format of date. I hope everything makes sense.

Best regards
vbanewbie68
 

Attachments

  • Day function VBA issue.png
    Day function VBA issue.png
    149.7 KB · Views: 11
If it is a new question, it is best to ask it in a new thread.
That way if I do not know the answer or am not available at the time to answer it, others will see it as a new unanswered question in the "Unanswered threads" list, and your chances of receiving assitance increase greatly.
Yes it is a new question so I will add it in a new thread.
Regards
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I changed the "Solution" post you had marked. Typically, you want to mark the actual post that contains the solution (not the one that acknowledges that the problem has been solved).
 
Upvote 0

Forum statistics

Threads
1,214,892
Messages
6,122,112
Members
449,066
Latest member
Andyg666

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