If you want to save the filtered data in an array using VBA.
Here is the code-
Application.DisplayAlerts = False
Dim ap As Workbook, i As Long
' copy the filtered data
' add a new workbook
Set ap = Workbooks.Add
' paste data to new workbook
' store data to an array
z = Range("a1:c" & Range("a1").End(xlDown).Row)
' close the new workbook without saving as we don't require it.
' use the data stored in an array
For i = LBound(z) To UBound(z)
MsgBox z(i, 1)
MsgBox z(i, 2)
MsgBox z(i, 3)
Application.DisplayAlerts = True
Sunday, February 19, 2012
Save Filtered Data in a Array
Subscribe to: Post Comments (Atom)
Import data from SQL
Macro to import data from SQL using ADO connection string: Sub Import_data_from_SQL() ' Tools -> References -> Microsoft Active...
If you want to add a new menu on mouse right click "Workbook Navigation showing you the list of all open workbooks and worksheets in ea...
Macro to Export Range in Json Format Option Explicit Sub export_in_json_format() Dim fs As Object Dim jsonfile Dim rangetoex...
Thant's owsome sharing. Like it.ReplyDelete
Dear kindly share some Examples on IE Automation as well.
check these links for ie automationReplyDelete