Excelnoub
Member
Good day everyone,
this is a little complicated. I have a workbook that has a find and match code. Works well and like a charm. Problem is with the following code:
[pre]
[/pre]
I need to search for the for the RptProjRowNum and offset the rows information, so an ActiveCell.Offset(1, 0).EntireRow.Insert But in my Column A add the ActiveCell.Row from the main sheet to add the Cells(ActiveCell.Row, 1).Value & "/" & retenderletter in my Report sheet
Let’s say that the ActiveCell.row, 1 = Test and the retenderletter = C (Sheet "Evaluation")
So it will change the Test to Test/C when I transfer the info to my MERX sheet.
On my Report Sheet I have Info until column 24, I need to offset the new row from column A to X but to add the "/" & retenderletter to my + 1 row to Column A
So that now my Report sheet will be
Test
Test/C
So hard to explain when you have the image in head but not in words
this is a little complicated. I have a workbook that has a find and match code. Works well and like a charm. Problem is with the following code:
[pre]
Code:
retenderletter = InputBox("What is the re-tender letter", "Re-Tender")
If retenderletter <> "" Then
'''''''''''''''''''''''''''''''''''''''''''''''
'This function will look for the requisition number in the Reports Sheet and...
RptProjRowNum = Application.WorksheetFunction.Match( _
ActiveSheet.Range("A" & ActiveCell.Row).Value, _
Worksheets("Report").Range("A5:A10000"), 0) + 4
'This function will replace the "Comments" on the same row
Worksheets("Report").Range("V" & RptProjRowNum).Value = _
Range("C" & ActiveCell.Row).Value
'This will copy the requisition number from the selected row and send it back in the MERX sheet
Cells(ActiveCell.Row, 1).Value = Cells(ActiveCell.Row, 1).Value & "/" & retenderletter
Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 2)).Copy
Sheets("MERX").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
‘I need also to do this to my Report Sheet
Sheets("Report").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
I need to search for the for the RptProjRowNum and offset the rows information, so an ActiveCell.Offset(1, 0).EntireRow.Insert But in my Column A add the ActiveCell.Row from the main sheet to add the Cells(ActiveCell.Row, 1).Value & "/" & retenderletter in my Report sheet
Let’s say that the ActiveCell.row, 1 = Test and the retenderletter = C (Sheet "Evaluation")
So it will change the Test to Test/C when I transfer the info to my MERX sheet.
On my Report Sheet I have Info until column 24, I need to offset the new row from column A to X but to add the "/" & retenderletter to my + 1 row to Column A
So that now my Report sheet will be
Test
Test/C
So hard to explain when you have the image in head but not in words