Hi,
I'm trying to write code to select a cell based on the result of a previous sub (which gives me a column) + row number, and copy the contents of that cell. I have tried referencing a cell and moving a certain number of rows down to reach the desired cell but then the copy function will only select the initial cell.
I'm new to this (started last Thursday) so if this code is a mess then you know why:
Sub Cheese()
Dim Column As String
Column = "AD"
If OptionButton47 = True Then
Call M2
ElseIf OptionButton46 = True Then
Call M25
End If
End Sub
Sub M25()
Sheet83.Range("D8") = LengthTextBox.Value
Sheet83.Range("Column", 8).Select
Call CopyCell
End Sub
In this instance I'm trying to select AD8 (which changes based on the value of D8), but there are many more permutations.
If anyone could help I'd be super grateful!
I'm trying to write code to select a cell based on the result of a previous sub (which gives me a column) + row number, and copy the contents of that cell. I have tried referencing a cell and moving a certain number of rows down to reach the desired cell but then the copy function will only select the initial cell.
I'm new to this (started last Thursday) so if this code is a mess then you know why:
Sub Cheese()
Dim Column As String
Column = "AD"
If OptionButton47 = True Then
Call M2
ElseIf OptionButton46 = True Then
Call M25
End If
End Sub
Sub M25()
Sheet83.Range("D8") = LengthTextBox.Value
Sheet83.Range("Column", 8).Select
Call CopyCell
End Sub
In this instance I'm trying to select AD8 (which changes based on the value of D8), but there are many more permutations.
If anyone could help I'd be super grateful!