Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
wbName = Format(Date, "mmm-dd") & ".xls"
will give you the workbookname in the vairable wbName Try this to get the value in A1 from Mar-28.xls (if run today) Sheet1 A1 into the current worksheet A1 Sub getValue() wbname = Format(Date, "mmm-dd") & ".xls" ThisWorkbook.ActiveSheet.Cells(1, 1) = Workbooks(wbname).Worksheets("Sheet1").Cells(1, 1) End Sub "Dick (Learning To Write Macros)" wrote: I would like to write a marco in one Workbook (Master.xls), which copies data from cells in another open Workbook (Data March-28.xls). This second Workbook changes it's name each day to: Data March-29.xls, Data March-30.xls, etc. Thanx For Your Help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink that copies Data | Excel Worksheet Functions | |||
how to write a macro that copies adjustable hyperlinks into a sprd | Excel Discussion (Misc queries) | |||
Macro or Formula that copies and moves data? | Excel Discussion (Misc queries) | |||
A Macro that Copies from Excel & Pastes into a webpage | Excel Discussion (Misc queries) | |||
Keyboard Macro Just Copies Content of Previous Cell | Excel Discussion (Misc queries) |