Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7706337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:06:05+00:00 2026-06-01T00:06:05+00:00

I have a spreadsheet I’m using to compile text that changes all the time.

  • 0

I have a spreadsheet I’m using to compile text that changes all the time.

In column AD, Row 4(AD4) I put the contents of text, and it can have data going 1000 to 4000 rows down. It changes every time, so there is no static range name. I need a macro that

  • finds the final piece of data in that column,
  • then automatically “drags a box” from that spot two columns to the left (AB4)
  • and copies it… (A 3000 row piece of text would be AB4:AD3004) (Macro stops there, with text to be copied highlighted)

The current version finds the bottom cell correctly, but if I run the macro a 2nd time, with new data, it keeps trying to copy the same range. (I used the Formula Define.Name method, to name the cell, and then selected AB4:LastRow) but it is ALWAYS 3160 whether data goes to row 4000 or not…..

Sub Last_row()
Cells(Application.Rows.Count, 30).End(xlUp).Select
' following lines of code are useless
Range("AB4:AD3160").Select
Range("AD3160").Activate
Selection.Copy
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:06:06+00:00Added an answer on June 1, 2026 at 12:06 am

    To answer your question directly:

    With Sheet1
        .Range("AB4", .Cells(Rows.Count, "AD").End(xlUp)).Copy
    End With
    

    Copy to specific location WITHOUT using clipboard:

    With Sheet1
        .Range("AB4", .Cells(Rows.Count, "AD").End(xlUp)).Copy Sheet2.[A1]
    End With
    

    Copy and exclude formatting:

    With Sheet1
        With .Range("AB4", .Cells(Rows.Count, "AD").End(xlUp))
            Sheet2.Cells(1, "A").Resize(.Rows.Count, .Columns.Count).Value = .Value
        End With
    End With
    

    Note: Replace all sheet codenames (sheet1, Sheet2) above with your actual sheet codenames.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a spreadsheet that I am sorting based on an item number column.
I have been using the Spreadsheet::ParseExcel to list the contents of spreadsheet. I've seen
I have a spreadsheet that I'd like to compile into a form that I
I have a spreadsheet in Excel that connects to an internal DB using the
I have a spreadsheet that has information in groups. The header row contain company
I have a spreadsheet that has a list of video filenames in one column.
I have a spreadsheet that is using the WORKDAY() function in Excel (which I
I have a spreadsheet with text in column A. For example A1=MY TEXT1 A2=MY
I have an Excel spreadsheet with 1 column, 700 rows. I care about every
I have an OpenDocument spreadsheet with macros in StarBasic/OOoBasic that I want to convert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.