+ Reply to Thread
Results 1 to 8 of 8

Select data without formulas and paste to another tab

  1. #1
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Select data without formulas and paste to another tab

    Hi,

    I need to copy a table that starts at M6:U6. The table is dynamic so the length changes daily. Sometimes its longer/shorter.

    When using the following code:
    Please Login or Register  to view this content.
    It selects all the data including the formulas at the bottom of the table. Is it possible to not select the empty cells that only include formulas and then copy the table to another tab?

    Tab with the table is: "Dump"
    Tab where the table needs to be pasted: "Time Database" (first empty cell in Column A)

    Thanks.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Select data without formulas and paste to another tab

    Try
    Please Login or Register  to view this content.
    Get used to NOT using select or activate. Very seldom required.

  3. #3
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Select data without formulas and paste to another tab

    This copied the correct field and pasted it into the correct area; however, it copied only the formulas and the formatting of the cell and not the actual data. I need the exact opposite.
    All cells in the table contain formulas that are not visible if there is no data to be displayed. I used "Iferror" to have the cells blank.

    After messing with it and using your code, I was able to get this to work:
    Please Login or Register  to view this content.
    Last edited by YuriyBaron; 09-17-2020 at 01:25 AM.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Select data without formulas and paste to another tab

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Select data without formulas and paste to another tab

    Yes, both worked.
    Thanks.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Select data without formulas and paste to another tab

    Please Login or Register  to view this content.
    in your Post #3 does exactly that what you say you don't want in Post #1

  7. #7
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Select data without formulas and paste to another tab

    Yes, I know, your Sub MaybeB() works much better.

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Select data without formulas and paste to another tab

    Thanks for the feedback and good luck

+ 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: 1
    Last Post: 04-23-2018, 05:21 PM
  2. [SOLVED] select non empty data and paste to another sheet
    By hanif in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2016, 08:47 AM
  3. VBA Specific data select and paste across worksheets
    By SamPPG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2016, 09:26 AM
  4. [SOLVED] Select ThisWorkbook and paste data
    By Hood in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-15-2013, 09:17 AM
  5. Search, select,cut and paste the data into a new sheet
    By Arun7777 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2012, 05:50 AM
  6. Copy and Paste select data to another workbook.
    By tanyhart in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2006, 01:10 PM
  7. [SOLVED] macro to select data/paste/print
    By Anthony in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2005, 05:06 AM

Tags for this Thread

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