In a Sub I have this code:
Application.Goto Reference:="myField" Selection.FormulaR1C1 = "=RC[-3]+RC[-1]"
Note that myField is a column (in a database area, myField is the field name of the column) so the formula is calulated on all cells in the column, and for each cell...
Hi!
I’m trying to do a macro that define a new database area from cell A1 to the cell at the r:th row and c:th column. How can I use a reference that takes variables as argument? Like for example, Cells(r, c)?
I can select the new area with this code.
range(Cells(10, 1), Cells(r, c)).Select...
Hi!
My main problem is how to convert a Range object into an Array without using any loops?
This is the background:
I need to write a user-defined function in VBA for Excel that takes a Range (2 cols and many rows) in an Excel-sheet as an argument and rearrange the rows so that the values in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.