*osh.ListObjects(1).UnList* Regards
Sam Mathai Chacko On Wed, Mar 7, 2012 at 12:34 AM, dguillett1 <dguille...@gmail.com> wrote: > try > Sub removetableSAS() > dim i as integer > for i = 1 to 3 > activesheet. osh.listobjects("Table" & i ).unlist > next i > End sub > > Don Guillett > Microsoft MVP Excel > SalesAid Software > dguille...@gmail.com > > *From:* yogananda muthaiah <yogananda.mutha...@gmail.com> > *Sent:* Tuesday, March 06, 2012 11:38 AM > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Unlist - Table to be constant for every macro > to run > > * > > 1. > > Hi, > > I am running several times of same macro with listobjects .unlist > where " Table1" is not constant. it keeps changing when i run the same > macro again.. > > Please anyone help me to make table as constant. > > ("Table1") --- 1st time > ("Table2") --- 2nd time > ("Table3") ---3rd time > > > > here is the code > > > Sub removetable() > Dim osh as worksheet > set osh=activesheet > osh.listobjects("Table1").unlist > End sub > > > * > > > Regards > Yogananda Muthaiah > Ph : 973 123 7267 > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Sam Mathai Chacko -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com