+ Reply to Thread
Results 1 to 2 of 2

How to make a new excel shet using macros

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    Andhra Pradesh
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to make a new excel shet using macros

    Hi,
    i'm new to excel macros, and don't belong to programming fraternity, so right now i need to build a smart macro which can do the following:
    Let us say this is how my excel sheet looks
    sheet1:

    1 2 3 4 5
    A Aone Atwo Athree Afour Afive
    B Bone Btwo Bthree Bfour Bfive
    C Cone Ctwo Cthree Cfour Cfive
    D Done Dtwo Dthree Dfour Dfive
    E Eone Etwo Ethree Efour Efive

    above are the contents of my excel sheet, consider it as a matrix.
    now i want to create a new excel sheet which will contain a column with all my cell data mapped with their corresponding row column index, i.e., as shown below
    Column1 Column2
    Aone A1 // look above where is 'Aone', it is in row 'A' and column '1' so column 2 will contain 'A1' alongside
    Atwo A2 // look above where is 'Atwo', it is in row 'A' and column '2' so column 2 will contain 'A2' alongside
    Athree A3 // look above where is 'Athree', it is in row 'A' and column '3' so column 2 will contain 'A3' alongside
    Afour A4 // look above where is 'Afour', it is in row 'A' and column '4' so column 2 will contain 'A4' alongside
    Afive A5 // look above where is 'Afive', it is in row 'A' and column '5' so column 2 will contain 'A5' alongside
    Bone B1
    Btwo B2 and so on

    refer the above table to understand clearly the scenario..........
    Even now if u don't get it, then let me make it more clear:
    I need to create a macro which should do the following:
    1-- Creates a new excel sheet
    2-- should transfer all the data in each cell(from the current sheet) as a single column data in the new excelsheet.

    In furtherance i have attached an excelsheet which has two tables which will give you a clear picture, the table above is the current sheet( input table) and the new sheet should contain the data as described in second table (output sheet data) below .

    Please guide me with your invaluable inputs.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to make a new excel shet using macros

    Hi Bhavani

    try something like
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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