I have made a VB macro that has more than one output but I am having trouble getting the two outputs into the correct cells. I have one cell whose formula is =Function(A, B). That one works fine but the Function also needs to put data into a cell that is two cells to the right (ie, Function is supposed to output data to both B5 and D5 and only B5 gets anything). I get data from the spreadsheet using the line:
windim(Direction, Direction) = Sheet3.Cells(20, 2).Value
Or something similar but I can't get the macro to output data in a similar way. I hope this question is clear, if not, let me know.
windim(Direction, Direction) = Sheet3.Cells(20, 2).Value
Or something similar but I can't get the macro to output data in a similar way. I hope this question is clear, if not, let me know.