in the below code, any suggestions on what could be causing this would be greatly appreciated.
Set FoundCell = RangeToSearch.Find(What:=sWhat, LookIn:=xlValues, LookAt:=xlPart).Activate
Dim wb As Workbook Dim sDir As String, sProj As String, sColBillable As String, sColProj As String, sColWBS As String Dim ArrBillable() As String, sWhat As String Dim i As Integer, iRow As Integer Dim RangeToSearch As Range Dim FoundCell As Range Dim lCol As Long sWhat = "Billing" Set wb = Workbooks.Open("\\xxxxx\xxxxx\_xxxxx\file.xlsm", False, True) With wb Rows("5:5").Select Set RangeToSearch = Selection Set FoundCell = RangeToSearch.Find(What:=sWhat, LookIn:=xlValues, LookAt:=xlPart).Activate If Not FoundCell Is Nothing Then lCol = RangeToSearch.Find("Billing").Column sColBillable = ColumnName(lCol) else End if
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE