Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Range("B1:B65000").Formula="=Round(A1,0)"
Sub GetIntegers()
With Range("B1:B100")
.FormulaArray = "=INT(RC[-1]:R[99]C[-1])"
.Value = .Value
End With
End Sub
There are better ways to do what you describe. One way is MS Query. faq68-5829.In majority of my macros there is always that part where i have to open a spreadsheet or get all the values from column C and paste them into new sheet, delete duplicates or records i don't want etc
Select Int[i]([Col A Field])[/i]
From [i][YourSheet[/i]$]
Where [i]SomeFilterExpression[/i]
These two steps cannot work together! You are taking Range("a1:a65000") and Array.Transpose. Excel only has 256 columns. TILT!1. Grab that data
- variant array vaData=Range("a1:a65000")
- Dim sText (1 to 65000) as String, Loop
- Range("a1:a65000").Copy
- other
- does it really matter?
2. Return data
- from variant array
- Array.Transpose
- Range(...)Paste.Special Values/Formats