Good Afternoon,
I'm writing a little program for my school and I've run into a small problem.
The code in question is:
Where I've written "this is where I'm stuck" I'd like to have a reference to another cell, it will just duplicate the value in that cell by referencing it. However, I cannot figure out how to do that.
I don't think I'm being clear enough, so I'll give you an example. Other code in my project adds a pre-formatted area where a user would input a number of values and it would sum them in a "totals" cell underneath the area. The cell I am stuck on will replicate this value in another part of the sheet.
I've tried, foolishly, I discovered,
but that obviously didn't work. (15 + (Count * 8), 11) is the location of the cell that I want to reference at all times. As I add areas, count increases.
I'm writing a little program for my school and I've run into a small problem.
The code in question is:
Code:
Range(Cells(19, 1), Cells(19, 3)).Copy
Range(Cells(19 + Count, 1), Cells(19 + Count, 3)).PasteSpecial (xlPasteFormats)
Cells(19 + Count, 1).Value = Cells(18 + Count, 1).Value + 1
Cells(19 + Count, 2).Value = CompleteString
Cells(19 + Count, 3).Formula = "(this is where I'm stuck)"
Where I've written "this is where I'm stuck" I'd like to have a reference to another cell, it will just duplicate the value in that cell by referencing it. However, I cannot figure out how to do that.
I don't think I'm being clear enough, so I'll give you an example. Other code in my project adds a pre-formatted area where a user would input a number of values and it would sum them in a "totals" cell underneath the area. The cell I am stuck on will replicate this value in another part of the sheet.
I've tried, foolishly, I discovered,
Code:
Cells(19 + Count, 3).Formula = "=Cells(15 + (Count * 8), 11)"