Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a macro that opens another spreadsheet (spreadsheet B).
This second spreadsheet is named: "Projections 2006". I create a var called WB2 which contains the name of this spreadsheet: WB2 = ActiveWorkbook.Name The macro then does some sorting and formatting on this spreadsheet. I now want to add a formula in Spreadsheet A that points to a specific cell in spreadsheet B (wb2) I've tried several variations of the formula below and nothing works. ActiveCell.FormulaR1C1 = "='[wb2]projections'!R3C5" Can someone point me in the right direction? Thanks, El Bee |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about something like this?
Activecell.value = workbooks(wb2).sheets("projections").Range("E3").f ormula Regards, Paul "El Bee" wrote in message ... I have a macro that opens another spreadsheet (spreadsheet B). This second spreadsheet is named: "Projections 2006". I create a var called WB2 which contains the name of this spreadsheet: WB2 = ActiveWorkbook.Name The macro then does some sorting and formatting on this spreadsheet. I now want to add a formula in Spreadsheet A that points to a specific cell in spreadsheet B (wb2) I've tried several variations of the formula below and nothing works. ActiveCell.FormulaR1C1 = "='[wb2]projections'!R3C5" Can someone point me in the right direction? Thanks, El Bee |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
THANKS Pual; that did the trick!!!!!
"PCLIVE" wrote: How about something like this? Activecell.value = workbooks(wb2).sheets("projections").Range("E3").f ormula Regards, Paul "El Bee" wrote in message ... I have a macro that opens another spreadsheet (spreadsheet B). This second spreadsheet is named: "Projections 2006". I create a var called WB2 which contains the name of this spreadsheet: WB2 = ActiveWorkbook.Name The macro then does some sorting and formatting on this spreadsheet. I now want to add a formula in Spreadsheet A that points to a specific cell in spreadsheet B (wb2) I've tried several variations of the formula below and nothing works. ActiveCell.FormulaR1C1 = "='[wb2]projections'!R3C5" Can someone point me in the right direction? Thanks, El Bee |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
error when running cut & paste macro | Excel Worksheet Functions | |||
Runing a macro in a workbook from another macro in other workbook | Excel Discussion (Misc queries) | |||
Protect Workbook vs Worksheet?? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) |