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 9030419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:29:12+00:00 2026-06-16T07:29:12+00:00

I have multiple spreadsheets that I need to copy column starting at S4, on

  • 0

I have multiple spreadsheets that I need to copy column starting at “S4”, on a specifically named worksheet, and I need only the cells in that column (starting at S4 and everything below it) that contain data.

I need to copy that data and paste it into my “main” spreadsheet starting at A2 on a specific worksheet. I can do this with one spreadsheet, but the problem I’m running into I need VBA to find the last cell in column A that has a value and start pasting new data into the cell below it, etc… Otherwise, when it’s looking at the other spreadsheets, it’s just overwriting the data in my main spreadsheet.

You’ll notice the specified range of S4:S2000 – its purpose was for a single spreadsheet, which worked fine because I never had data past 2000, but I really just need it looking for cell values and grabbing those.

This is the chunk of code where I’m having the trouble. I want it to search starting at A2 (skipping the column header), look for the last cell that has a value and paste cells with values starting at S4 on the other worksheet.

On Error Resume Next
        Set wbkCS = Workbooks.Open(strCutSheetFile(i))
        On Error GoTo 0
    If Not wbkCS Is Nothing Then
        With wbkVer.Sheets("Cutsheets")
             .Range(.Cells(2,1)).End(xlUp).Row = wbkCS.Worksheets("Cut Sheet").Range("S4:S2000").Value

I had to tweak yours a little because I’m working with protected files, but this worked:

Set copyRng1 = Worksheets("Cutsheets").Range("A2")

If copyRng1 = "" Then
        wbkCS.Worksheets("Cut Sheet").Range("S4:S2000").Locked = False
        wbkCS.Worksheets("Cut Sheet").Range("S4:S2000").Copy Destination:=wbkVer.Worksheets("Cutsheets").Range("A2")
    Else
        wbkCS.Worksheets("Cut Sheet").Range("S4:S2000").Copy Destination:=wbkVer.Worksheets("Cutsheets").Range("A" & wbkVer.Worksheets("Cutsheets").Range("A65536").End(xlUp).Row + 1)

    End If
  • 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-16T07:29:14+00:00Added an answer on June 16, 2026 at 7:29 am

    Here’s an example that may push you in the right direction…

    Suppose I want to aggregate my data in Sheet1 using data from S4:S2000 in all other worksheets in the workbook.

    Sub CopyAndStack()
        Dim wkShtIndex As Integer, copyRng As Range
    
        Set copyRng = Worksheets(1).Range("A2")
    
        For wkShtIndex = 2 To Worksheets.Count
            If copyRng = "" Then
                Worksheets(wkShtIndex).Range("S4:S2000").Copy Destination:=copyRng
            Else
                Worksheets(wkShtIndex).Range("S4:S2000").Copy Destination:=Range("A" & copyRng.End(xlDown).Row + 1)
            End If
        Next wkShtIndex
    End Sub
    

    I check if A2 is empty and if so I paste the first lot of data.

    If A2 is not empty I get the next empty cell in column A and paste it there.

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

Sidebar

Related Questions

I have a set of Excel spreadsheets with multiple tabs which contains each one
I have multiple ajax requests with javascript code as response, and I need to
I have a spreadsheet with multiple columns, one of which is an owner_id column.
I need to find a way to have the multiple choice options in a
I have a c# WinForm application that I need to generate TabPages at runtime.
I have a google spreadsheet with multiple columns that have variable row counts in
I have multiple objects that inherit from a base class and am trying to
I have a spreadsheet that I'd like to sort by multiple columns many times
I have data from two spreadsheets where I need to compare the quantities of
I have a complex SQL query that joins multiple tables. Here's a watered down

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.