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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:59:00+00:00 2026-06-13T14:59:00+00:00

How is it possible to create a range in vba using the column number,

  • 0

How is it possible to create a range in vba using the column number, rather than letter?

  • 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-13T14:59:01+00:00Added an answer on June 13, 2026 at 2:59 pm

    Below are two solutions to select the range A1.

    Cells(1,1).Select '(row 1, column 1) 
    Range("A1").Select
    

    Also check out this link;

    • http://www.excel-vba.com/vba-code-2-6-cells-ranges.htm

    We strongly recommend that you use Range instead of Cells to work with
    cells and groups of cells. It makes your sentences much clearer and
    you are not forced to remember that column AE is column 31.

    The only time that you will use Cells is when you want to select all
    the cells of a worksheet. For example: Cells.Select To select all
    cells and then empty all cells of values or formulas you will use:
    Cells.ClearContents

    —

    "Cells" is particularly useful when setting ranges dynamically and
    looping through ranges by using counters. Defining ranges using
    letters as column numbers may be more transparent on the short run,
    but it will also make your application more rigid since they are "hard
    coded" representations – not dynamic.

    Thanks to Kim Gysen

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

Sidebar

Related Questions

Possible Duplicate: Create an Array of the Last 30 Days Using PHP I am
Possible Duplicate: Create categorical variable in R based on range Given a range and
Is it possible using Linq to create a group where items fall into more
Possible Duplicate: Generating random number in a range with Java This feels pretty silly,
It is possible in SQL Server 2005 to create a computed column that is
I've created list-range partitioned table: CREATE TABLE WHREST_PRT( RCNUM NUMBER NOT NULL, WHNUM NUMBER
Is it possible to create script for the next task: select range in spreadsheet
I am wondering, if it is possible to create variables and name the using
Possible Duplicate: How to create a type bounded within a certain range I have
Possible Duplicate: Java: generating random number in a range I need a little help.

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.