Question : Extract Day of the month in Date VBA

hello experts

I want to extract Days in the month and store it to integer variable

for example if the shortdate is 26/07/2005 then I want to store 26 in variable

is there a way in VBA

thanks in advance

regards

Answer : Extract Day of the month in Date VBA

Hi mskichu33,

Sure.

MyVariable = Day()

Regards,

Patrick
Random Solutions  
 
programming4us programming4us