Hi all,
I have, hopefuly, a simple question;
In a string I have the column letter in which the data needs to come
So I need something like;
I think I need to use Indirect but I wouldnt know how.
Any help will be welcome!
Mathijs.
I have, hopefuly, a simple question;
In a string I have the column letter in which the data needs to come
So I need something like;
Code:
dim ws as Worksheets
dim ws2 as Worksheets
dim StartCLM as string
set ws = Worksheets("Sheet1")
set ws2 = Worksheets("Sheet2")
StartCLM = ws.range("A1").value
'Now StartCLM is "D" (in text)
ws2.range(StartCLM & "2").value = ws.range("A1").value
'So I would want to change the value of WS2.range("D2")
I think I need to use Indirect but I wouldnt know how.
Any help will be welcome!
Mathijs.