+ Reply to Thread
Results 1 to 3 of 3

looking to paste information into different lines via a macro

  1. #1
    Registered User
    Join Date
    12-20-2007
    Posts
    2

    looking to paste information into different lines via a macro

    okay so i a have a bunch of random information on one sheet, i have created a macro that copies the information i want and pastes it into row 1 of an alternate sheet.

    When i open another sheet and perform my macro again it will overwrite this information onto row 1 of my alternate sheet making me lose all my previous information. what i am looking to do is have my macro switch to row 2 when row 1 has information then row 3 when row 2 has information and so on.

    Sub export_deviation()
    '
    ' export_deviation Macro
    ' Macro recorded 12/20/2007 by Matt_s
    '
    ' Keyboard Shortcut: Ctrl+d
    '
    Range("C11:CN11").Select
    Selection.Copy
    ActiveWindow.WindowState = xlMinimized
    Windows("CAPDUMP.xls").Activate
    ActiveWindow.WindowState = xlMaximized
    Range("B1").Select
    ActiveSheet.Paste
    Range("B2").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = ""
    Range("M8").Select
    End Sub

    is my current macro. any help would be appreciated, thanks!

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    You may be able to reduce this macro to one line:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-20-2007
    Posts
    2
    works perfectly, thanks alot!

+ 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