F
Frank Owen
Hi,
I am looking for assistance in amending some VBA code in a macro which copies data from one worksheet to another worksheet within the same workbook.
At present the macro code (shown below) copies data to a cell identified asColumn “K” and a ROW reference which varies according the value of a cell within my worksheet (in my case named cell reference being “R_matchtask”). The “R_matchTASK” value is derived using a search using the MATCH function. The code works.
Is it possible to amend the code so that the COLUMN reference (“K” in the case below) is also set by the value in a cell, that value also being derived by use of a MATCH function. The amendment will allow me to insert columns without having to amend the “K” reference in my macro code.
Selected code extracts are as follows …………….
Sheets("R-Output").Select
Range("K" & Range("R_matchtask").Value).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks :=False, Transpose:=False
Any advice will be appreciated.
Frank
I am looking for assistance in amending some VBA code in a macro which copies data from one worksheet to another worksheet within the same workbook.
At present the macro code (shown below) copies data to a cell identified asColumn “K” and a ROW reference which varies according the value of a cell within my worksheet (in my case named cell reference being “R_matchtask”). The “R_matchTASK” value is derived using a search using the MATCH function. The code works.
Is it possible to amend the code so that the COLUMN reference (“K” in the case below) is also set by the value in a cell, that value also being derived by use of a MATCH function. The amendment will allow me to insert columns without having to amend the “K” reference in my macro code.
Selected code extracts are as follows …………….
Sheets("R-Output").Select
Range("K" & Range("R_matchtask").Value).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks :=False, Transpose:=False
Any advice will be appreciated.
Frank