+ Reply to Thread
Results 1 to 2 of 2

Range to Columns and Rows

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Range to Columns and Rows

    Hello there,

    I would like to set up a macro that allows me to input a range (numerical or alpha numerical) and have it put that range into a specified number of columns and rows. The amount of columns, rows and range would be different each time. It would be great to do this from the quick access tool bar. I have attached an example which will explain what I'm talking about, hopefully.

    Example-02.xlsx

    Example 1.
    Range: 001 to 120
    Columns: 4
    Rows: 6

    Example 2.
    Range: 001 to 120
    Columns: 6
    Rows: 3


    Many thanks for any help/advice you can give me.

    Paul

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Range to Columns and Rows

    1.Below code will work for integers only
    2.Start Number Should be lesser compared to end number
    3.open excel press Alt+F11 then hit Alt+i+m copy paste code and then close opened window go to excel hit alt+F8 a window will open click ranging
    from there and click Ok
    Please Login or Register  to view this content.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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. Deleting a range of cells (rows and columns)
    By ketspatel in forum Excel General
    Replies: 5
    Last Post: 04-05-2011, 11:45 AM
  2. Extended Range (Columns & Rows) in Macros
    By hardeep.kanwar in forum Excel General
    Replies: 0
    Last Post: 07-16-2009, 03:58 AM
  3. Dynamic Range of Columns with fixed Rows
    By nms2130 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-05-2009, 05:24 PM
  4. Limited Range of Rows and Columns
    By eggplant77 in forum Excel General
    Replies: 2
    Last Post: 10-25-2005, 04:19 PM
  5. [SOLVED] Range naming columns and rows
    By Dean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2005, 10:06 PM

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