gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
To make things easier for the user, I have two tables on the same sheet. One (the bottom one) is refreshed based on a Power Query. The top one I am taking data from another table on another tab and pasting in the data. As an FYI: I am doing this under the assumption that I cannot refresh two tables on the same tab. I tried it and received error messages.
My question is how do I find the last row of the first table in column C? There is data in column C in the second table, which is below it, so this is giving me difficulties trying to figure out the last row in the first table. There should never be blanks in column B of the first table. and I have several rows separating the two tables.
I need to know the last row because in my VBA I want to delete all the rows (with the exceptions of the headers (it goes from Column B:L)
Then on a separate tab (PBoM Filtered to Part - table name PBoM_Filtered_to_Part) where I have the new source data for table 1 I need to count the number of rows, then go back to tab "3 Source Selection" and insert that number of rows into table 1 (which the header starts on row 15). Once the number of rows are inserted I want to copy the data from table: PBoM_Filtered_to_Part and paste it in to table 1.
I hope this explanation it clear. And Thanks for the help -your time and help is very much appreciated.
My question is how do I find the last row of the first table in column C? There is data in column C in the second table, which is below it, so this is giving me difficulties trying to figure out the last row in the first table. There should never be blanks in column B of the first table. and I have several rows separating the two tables.
I need to know the last row because in my VBA I want to delete all the rows (with the exceptions of the headers (it goes from Column B:L)
Then on a separate tab (PBoM Filtered to Part - table name PBoM_Filtered_to_Part) where I have the new source data for table 1 I need to count the number of rows, then go back to tab "3 Source Selection" and insert that number of rows into table 1 (which the header starts on row 15). Once the number of rows are inserted I want to copy the data from table: PBoM_Filtered_to_Part and paste it in to table 1.
I hope this explanation it clear. And Thanks for the help -your time and help is very much appreciated.