VBA code to select particular tab....

Closed
PM - Apr 21, 2010 at 09:45 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Apr 21, 2010 at 09:59 AM
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 January 28, 2010 Status Contributor Last seen May 5, 2022 766
Apr 21, 2010 at 09:59 AM
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
0