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

  • SEARCH
  • Home
  • 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 8587315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:32:25+00:00 2026-06-11T22:32:25+00:00

I am trying to copy multiple ranges using Excel VBA. I understand that in

  • 0

I am trying to copy multiple ranges using Excel VBA. I understand that in order to select multiple ranges, syntax similar to that below is used:

Range("A1:B4000, F1:F4000").Select

This works fine in selecting the appropriate range. However, the following:

Range("A1:B4000, F1:F4000").Copy

…only copies the A1:B4000 range. This is the first problem I am facing.

Secondly, I would like to dynamically copy the data to the bottom row, which is not necessarily row #4000. If selecting a single range, the syntax is as follows:

Range("A1", Range("B1").End(xlDown)).Copy

The above code successfully copies everything from A1 to the bottom of the B column. I can’t find any material on the net explaining how to do this for multiple selections.

What I’m essentially trying to do is copy A1:B(bottom) and F1:F(bottom), but the above two issues are stopping me. I assume this is a syntax issue..?

  • 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-11T22:32:26+00:00Added an answer on June 11, 2026 at 10:32 pm

    @Scott Holtzman provided the solution in a comment:

    I would just adjust the following, since the OP asked for dynamic
    range names, Set range1 = Range(“A1:B” & Range(“B” &
    Rows.Count).End(xlUp).Row) to get the real last cell in column B. Do
    the same for column F as well

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

Sidebar

Related Questions

I am trying to copy multiple records using one query using insert select from.
I'm currently trying to copy data from table into another by using a SELECT
I'm trying to get data from multiple XML feeds and copy that data to
I'm trying to copy multiple files from a deep source tree that have the
I'm trying to copy a folder recursively to multiple destination folders using MSBuild's Copy
I am trying to copy files from a directory that is in constant use
I'm trying to copy files to C:\Windows\System32 using cygwin bash. When I copy files
I'm trying to copy the <options> HTML Codes from one select list to another.
I'm trying to run one SQL command to update multiple databases. If I copy
I am trying to set up pub-sub between 1 publisher and multiple subscribers using

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.