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...
Need help with a VB on this, I have a sheet which contains the list of employees(exhibit-1) and another sheet which contains compensation details of these employees (exhibit-2), once the user inputs the ID of the employee in the General Information tab (exhibit-3), i want the macro to go to Exhibit-2 and retain information only for that assignee and delete the other assignee information.
Here is what I came up with.
Dim ID As Variant
Dim wsC As Worksheet
Dim wsG As Worksheet
Dim rng As Range
Dim lops As Integer
Dim i As Integer
ID = Worksheets(“General_Info”).[B9]
Set wsC = Worksheets(“Compensation”)
Set wsG = Worksheets(“General_Info”)
Set rng = wsC.Range(“A:A”)
lops = Application.CountA(rng) – 1
Application.ScreenUpdating = False
For i = 1 To lops
If ActiveCell <> ID Then
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).