I do not know why this does this. But I was able to work around the problem. Please try this...
Maybe try declaring the FSO as Object. "Dim FSO" without a declaration declares the FSO as a variant. Just a...
Each block is a named range. There are 6 Key colors which are based on the information in column “Y”(Rental...
I cleaned up the code. This will place next month and year in cell A1. So today is Sep30 2018...
This was tested in a blank worksheet (no data). The macro will place next Month and Year in cell A1....
Updated the code to include the possibility of blank cells in the raw data. If a blank cell is found...
Lets try this again. You will need 3 sheets. Sheet1, Sheet 2 and Sheet3 Sheet1 your raw data Sheet2 is...
Hey Thank you so much. Apologies for not been very clear on the question. Using your example, in the output...
This is the actual requirement
I tried this code but it is not working..please help me
Hi, You are not looping through each row in the data sheet (=x, you have not defined what is x in your code).
I am not quite understand your data in the data sheet, I have written the below code by assuming your data, hope this works:
Private Sub CommandButton1_Click()
lastrow = Sheets("Config_InputAllocation_Weekly").Cells(Rows.Count, 1).End(xlUp).Row
iCntr = 1
For x = 1 To lastrow
If Sheets("Config_InputAllocation_Weekly").Cells(x, 3) = Sheet1.Range("B2") Then
Sheet1.Range("A" & iCntr + 5) = Sheets("Config_InputAllocation_Weekly").Cells(x, 3)
Sheet1.Range("B" & iCntr + 5) = Sheets("Config_InputAllocation_Weekly").Cells(x, 7)
Sheet1.Range("C" & iCntr + 5) = Sheets("Config_InputAllocation_Weekly").Cells(x, 8)
iCntr = iCntr + 1
Please share using the share button above.
If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.
Found the answer useful and wants to credit the user, then vote the answer (vote up).