Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
Dim objXLPurchase As Object Dim objBKPurchase As Object Dim objSHPurchase As Object ''Purchase Detail Set objXLPurchase = CreateObject("Excel.Application") Set objBKPurchase = objXLPurchase.Workbooks.Open("\\Production\Costings\Purchase_Detail.xlsx") Set objSHPurchase = objBKPurchase.Worksheets.Item("qryPurchase_Detail_Export") lngRow = 1 lngNumRows = 0 With objSHPurchase Do While .Cells(lngRow, 1) <> "" lngNumRows = lngNumRows + 1 lngRow = lngRow + 1 Loop End With strRange = "A1:P" & lngNumRows With objSHPurchase.Range(strRange) If IsNumeric(.Value) = True Then .Value = .Value * 1 End If End With objXLPurchase.DisplayAlerts = False objBKPurchase.Save objXLPurchase.Quit Set objSHPurchase = Nothing Set objBKPurchase = Nothing Set objXLPurchase = Nothing
With objSHPurchase.Range(strRange) If IsNumeric(.Value) = True Then .NumberFormat="General" .Value = .Value * 1 End If End With
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.