Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey folks,
(Excel Noob here) I need to give certain cells a formula through code. I need it to grab the formulas from another Excel spreadsheet's cells. I think I'm pretty close here, but the following errors out. Do you see what's wrong? For i = colStart To colEnd ActiveWorkbook.Worksheets("MyWorksheet").Cells(i, rownum).Formula = "='" & otherExcelFilePath & "'!OrigSheet:$A" & CStr(i) Next i So I want the cells in row rownum from cols colStart to colEnd to contain the formulas in the other Excel spreadsheet. The other Excel Spreadsheet should use it's worksheet OrigSheet, row A, cols colStart to colEnd. Thx! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining cell name / giving multiple cells a name | Excel Discussion (Misc queries) | |||
Macro that opens a window giving you info in a few cells | Excel Discussion (Misc queries) | |||
looping through an giving values to cells in vba | Excel Discussion (Misc queries) | |||
My formula Is giving me a #NAME! | Excel Worksheet Functions | |||
giving cells a nice color | Excel Programming |