VBA code to select particular tab....

Closed
PM - 21 Apr 2010 à 09:45
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 21 Apr 2010 à 09:59
Hi

does anyone know the vba code to find particular tab if it is todays date.

e.g. i have a list of tabs on a spreadsheet dated from 1st to 31st, but only the numbers are shown, the month and year is not.

I need to know how i can open the spreadsheet and then and search and select the tab with todays date and paste information into it.

Hope someone can help!

Thanks in advance


Excel 2003
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
21 Apr 2010 à 09:59
dim dt as string

' if dates/sheet names are like 01, 02 03.. then use "dd" instead of "d"
dt = format(date, "d")


sheets(dt).select