Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Pedro,
Use the Set statement to set the variables to range objects. E.g., SET fstRange = Worksheets(strSheet1).Range(Cells(RIndex2 - 35, CIndex2), Cells(RIndex2, CIndex2)) SET SndRange = Worksheets(strSheet).Range(Cells(RIndex2 - 35, CIndex3), Cells(RIndex2, CIndex3)) -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Pedro" wrote in message ... Hi What change should I made to the following code to work fstRange = Worksheets(strSheet1).Range(Cells(RIndex2 - 35, CIndex2), Cells(RIndex2, CIndex2)) SndRange = Worksheets(strSheet).Range(Cells(RIndex2 - 35, CIndex3), Cells(RIndex2, CIndex3)) strCorr = Application.WorksheetFunction.Correl(fstRange, SndRange) Thanks Pedro |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I change this code? | Excel Discussion (Misc queries) | |||
change forecolor with code | Excel Discussion (Misc queries) | |||
VBA Code to Change the Tab Name | Excel Discussion (Misc queries) | |||
VBA Code to Change the Tab Name | Excel Discussion (Misc queries) | |||
combo box on change code | Excel Discussion (Misc queries) |