+ Reply to Thread
Results 1 to 5 of 5

Copying line of data between tabs

  1. #1
    Registered User
    Join Date
    08-17-2023
    Location
    Stevenage, England
    MS-Off Ver
    365
    Posts
    7

    Copying line of data between tabs

    I'm a beginner when it comes to VBA so any help would be really appreciated.

    I'm trying to copy a line of cells into another tab within the same workbook. I need the code to find the first empty cell in a row and then paste the data as values in that empty cell. I have added in the range as it is as previously I was having errors with using "B:B"

    I have done the below but keep getting the Application-defined or object-defined error

    Please Login or Register  to view this content.
    Last edited by AliGW; 08-17-2023 at 08:03 AM.

  2. #2
    Registered User
    Join Date
    08-17-2023
    Location
    Stevenage, England
    MS-Off Ver
    365
    Posts
    7

    Re: Copying line of data between tabs

    I have also tried Range("b" & Rows.Count).End(xlUp).Select instead of the if statement, but receive the same error which makes me believe that the issue is within the sheet selection

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: Copying line of data between tabs

    Welcome to the forum.

    Please review the forum rules.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    08-17-2023
    Location
    Stevenage, England
    MS-Off Ver
    365
    Posts
    7

    Re: Copying line of data between tabs

    My apologies, I forgot to add the code into a coded view. New to all of this.

  5. #5
    Registered User
    Join Date
    08-17-2023
    Location
    Stevenage, England
    MS-Off Ver
    365
    Posts
    7

    Re: *Solved* Copying line of data between tabs

    This is what I ended up going with
    Please Login or Register  to view this content.

+ 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. MACRO Help - Pulling data from multiple tabs all to 1 tab in 1 line
    By Tybudd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2019, 07:15 PM
  2. Copying data to tabs with similar names
    By Jacobg38 in forum Excel General
    Replies: 1
    Last Post: 01-10-2017, 08:02 PM
  3. Copying data to tabs with similar names
    By Jacobg38 in forum Excel General
    Replies: 0
    Last Post: 01-10-2017, 04:54 PM
  4. Replies: 45
    Last Post: 03-12-2015, 12:46 PM
  5. Copying data from multiple TABS to one TAB in a list
    By pat brown in forum Excel General
    Replies: 2
    Last Post: 09-19-2011, 02:55 PM
  6. Replies: 3
    Last Post: 04-16-2010, 10:41 AM
  7. Copying the data from tabs to consolidated tab
    By raghunaik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2009, 08:24 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