+ Reply to Thread
Results 1 to 3 of 3

Macro issue excel 2003

Hybrid View

  1. #1
    Registered User
    Join Date
    12-10-2009
    Location
    colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro issue excel 2003

    I'm having an issue with creating a macro... I received data that looks like this
    1
    2
    3
    4
    1
    2
    3
    4
    1
    2
    3
    4
    There is a lot of data.
    I want to the the series of data in the columns to spread to the rows like below.
    1234
    1234
    1234
    But when i create the macro, it will copy and paste everything into the first line. what can I do? Here is what my Macro looks like:

    Sub Macro1()
    '
    ' Macro1 Macro
    ' Macro recorded 12/10/2009 by ******
    '
    ' Keyboard Shortcut: Ctrl+q
    '
    Range("A2").Select
    Selection.Cut
    ActiveSheet.Paste
    Range("A3").Select
    Selection.Cut
    Range("B2").Select
    ActiveSheet.Paste
    Range("A4").Select
    Selection.Cut
    Range("C2").Select
    ActiveSheet.Paste
    Range("A5").Select
    Selection.Cut
    Range("D2").Select
    ActiveSheet.Paste
    Range("A6").Select
    Selection.Cut
    Range("E2").Select
    ActiveSheet.Paste
    Range("A7").Select
    Selection.Cut
    Range("F2").Select
    ActiveSheet.Paste
    Range("A8").Select
    Selection.Cut
    Range("G2").Select
    ActiveSheet.Paste
    Rows("3:8").Select
    Selection.Delete Shift:=xlUp
    Range("A3").Select
    End Sub

    Thanks in advance for your help.

  2. #2
    Registered User
    Join Date
    12-10-2009
    Location
    colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro issue excel 2003

    I dont want to create a macro to take care of all of this in one stroke. I figured that you can put in language that tells it to go to the next line down or something.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Macro issue excel 2003

    Good evening ejohnu

    ...and welcome to the forum!!

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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