excel-tables

How to efficiently import multiple excel tables located in one sheet into an R list?

ε祈祈猫儿з 提交于 2019-12-11 18:46:07
问题 Task I am trying to import tables situated in a single excel sheet into an R object as efficiently as possible ( list will be fine, as I can take the rest of the calculations from there). Nuance The tables are actually excel ranges not excel tables , but they are structured and look like tables: here is an example of an excel range that should be imported as a table in R: Ranges(In a table form) are not of the same length and can be situated anywhere in the same sheet. Reproducible Example

Excel ListObject Table - Remove filtered / hidden rows from ListObject table

主宰稳场 提交于 2019-12-11 00:37:55
问题 I am banging my head to find a way to delete filtered/hidden rows from a ListObject table. The filtering is not performed trough the code, it's performed by the user using the table header filters. I want to remove the filtered/hidden rows before unlisting the ListObject Table and perform Subtotal operation. If I don't delete the filtered/hidden rows before unlisting the Table, these rows reappear. Current Code : Sub SubTotalParClassification(ReportSheetTitle) Dim ws As Worksheet Dim drng As

Delete Table Row Based on Criteria VBA

[亡魂溺海] 提交于 2019-12-08 11:58:05
问题 I am attempting to delete a specific table row based on values in two columns. I attempted to apply filters to the table columns to narrow my criteria, but once I click delete, the ENTIRE ROW is deleted causing values outside of the table to be deleted. Also, the macro recorder isn't as dynamic as I'd like it to be, since it ONLY selects the cell I clicked while recording. Sub Macro2() ' ' Macro2 Macro ' ' ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=1, Criteria1:= _ "Apple" \

How to link a Table and a Pivot Table using Slicers in Excel?

自古美人都是妖i 提交于 2019-12-01 14:48:50
Well. I have a table named "ALL_INFO" on a Sheet in Excel and I made a Pivot table in other sheet, its name is "PIVOT_INFO". And I would like to know the way to link a table, and a pivot table using Slicers to filter information and it be reflected in both tables. Anybody knows how I can do it? Thank you in advance. Create a Slicer for the PivotTable, and one for the Table. Make sure the PT Slicer is visible, and the Table Slicer is hidden somewhere where users can't see it. Then put this code in the Sheet Module corresponding to the worksheet where your PT is: Option Explicit Private Sub

Add/Modify/delete calculated column formula in Excel Listobject/Table via VBA

两盒软妹~` 提交于 2019-11-28 00:14:34
If I manually enter a formula into a column in an Excel table (i.e. ListObject), AutoCorrect applies this formula to the whole column. Is there any way to control the this behavior via VBA, i.e. can I somehow modify/delete/add this formula? I know I can simply change the formula of the ListObject.ListColumns(1).DataBodyRange object - but this will overwrite any manually values entered before - while changing the formula in the UI will leave this untouched... Thanks to Doug's and bonCodigos comments/answers, I found the simple answer: ListObject.ListColumns("Column name").DataBodyRange

How do I reference tables in Excel vba?

风流意气都作罢 提交于 2019-11-27 13:30:28
Is it possible in Excel VBA to reference a named table? Hypothetically this could be... Sheets("Sheet1").Table("A_Table").Select I have seen some mention of tables being a list object but I'm not sure if that is the same thing... Bgvv1983 Maybe this can help you Creating a table Converting a range to a table starts with the same code as in Excel 2003 (as described in this answer ): Sub CreateTable() ActiveSheet.ListObjects.Add(xlSrcRange, Range("$B$1:$D$16"), , xlYes).Name = _ "Table1" 'No go in 2003 ActiveSheet.ListObjects("Table1").TableStyle = "TableStyleLight2" End Sub The OP asked, is it

How do I reference tables in Excel vba?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 16:25:55
问题 Is it possible in Excel VBA to reference a named table? Hypothetically this could be... Sheets("Sheet1").Table("A_Table").Select I have seen some mention of tables being a list object but I'm not sure if that is the same thing... 回答1: Maybe this can help you Creating a table Converting a range to a table starts with the same code as in Excel 2003 (as described in this answer): Sub CreateTable() ActiveSheet.ListObjects.Add(xlSrcRange, Range("$B$1:$D$16"), , xlYes).Name = _ "Table1" 'No go in