+ Reply to Thread
Results 1 to 2 of 2

Clear Table content and paste new content

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Clear Table content and paste new content

    Looking to VBA code for these steps

    1- clear table content
    2 - paste value only in the first cell in the table for the copied data (data will be 4 columns)
    3 - delete the first pasted row because it will contain unwanted data (delete only table row, not sheet entire row)
    4 - resize the table to fit new content
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Clear Table content and paste new content

    Try something like this (copied data in M1:P4). If you load the wanted data, without the first row directly in to the variable "ar", you don't have to delete the first row afterwards.

    Please Login or Register  to view this content.
    Last edited by JEC.; 09-28-2023 at 12:45 PM.

+ 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. Replies: 2
    Last Post: 12-24-2018, 11:27 AM
  2. [SOLVED] RangetoHTML to paste cell content instead of table with content
    By moe15243 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2018, 07:13 PM
  3. Clear content of all table but one column
    By simonplus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2017, 12:12 PM
  4. [SOLVED] RangetoHTML to paste cell content instead of table with content
    By moe15243 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2017, 11:08 AM
  5. [SOLVED] Clear content referencing another cell's same content
    By papusale in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2015, 05:21 AM
  6. [SOLVED] Clear Content in one sheet and copy & paste value from another sheet
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 11:23 AM
  7. How to clear content up to row 2?
    By simplyfocus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2012, 02:17 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