+ Reply to Thread
Results 1 to 5 of 5

VBa code to delete column data and resize table

  1. #1
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    225

    VBa code to delete column data and resize table

    Hello friends,

    have a workbook which has 2 worksheets.
    1 is called "Packing List" and the other "Data".

    Now in Sheet Packing List have used formulas in column B, C, D to fetch data from sheet Data based on the value in ColumnA.

    Now would like to create a macro that will delete the data from column A in sheet "packing List", and resize the table as well.

    Please note that formula in column B,C and D should not be deleted atleast for row2,

    Also the data can be more that 100 rows, cant tell exact figure now.

    Any help on the same please??

    Regards

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: VBa code to delete column data and resize table

    Now would like to create a macro that will delete the data from column A in sheet "packing List", and resize the table as well.
    Column A should be delete or contents are to be erased. Resize for how many columns.
    Instead of many formulas, formula in B2 to be copied to full range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 03-06-2024 at 06:55 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    225

    Re: VBa code to delete column data and resize table

    Quote Originally Posted by kvsrinivasamurthy View Post
    Column A should be delete or contents are to be erased. Resize for how many columns.
    Instead of many formulas, formula in B2 to be copied to full range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Contents of column A to be erased
    And table to be resized

    No. of columns will always remain the same as in the workshet Packing list

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: VBa code to delete column data and resize table

    Criteria for number of rows to be resized.

  5. #5
    Forum Contributor
    Join Date
    08-15-2015
    Location
    India
    MS-Off Ver
    Office 2016
    Posts
    225
    Quote Originally Posted by kvsrinivasamurthy View Post
    Criteria for number of rows to be resized.
    Depends on how many rows are filled

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Resize rows in a table. Resize only values and ignore functions inside the table.
    By Fishtail in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-24-2022, 10:14 AM
  2. Resize table based on column B count
    By Dbroek in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2022, 11:26 AM
  3. Replies: 1
    Last Post: 09-19-2021, 08:29 PM
  4. [SOLVED] How to resize table range according to Column A last row
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2017, 11:09 AM
  5. Code to delete column data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2016, 12:43 AM
  6. vba code to delete specific data from Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-22-2012, 09:41 AM
  7. macro code to delete table data
    By Traymond in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2011, 07:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1