gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,341
- Office Version
- 365
- Platform
- Windows
I have a table [PQ_Material_Assoc_Costs] on a sheet named PQ Material Assoc Costs
The table headers are in Row 1 (Starting in A)
The table is dynamic so i dont know in advance how many columns there will be.
How can I find what is the last column in my table and then add these two "fields"?
(This is using Y and Z but as stated, i dont know what column will be the last one and where to add these so that they are add and are the last two)
Sheets("PT Material Assoc Costs").Range("Y1") = "Mtrl Consolidation"
Sheets("PT Material Assoc Costs").Range("Z1") = "Vendor Name"
Thank you for your help
The table headers are in Row 1 (Starting in A)
The table is dynamic so i dont know in advance how many columns there will be.
How can I find what is the last column in my table and then add these two "fields"?
(This is using Y and Z but as stated, i dont know what column will be the last one and where to add these so that they are add and are the last two)
Sheets("PT Material Assoc Costs").Range("Y1") = "Mtrl Consolidation"
Sheets("PT Material Assoc Costs").Range("Z1") = "Vendor Name"
Thank you for your help