+ Reply to Thread
Results 1 to 7 of 7

Recording a macro to copy from an Input Form

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    Southampton, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Recording a macro to copy from an Input Form

    I show users how to do thing simply. They don't want to write VB so after showing them how to create a user form, we would record a macro to copy the information from the captured data list to a database on another sheet.

    Select the data
    copy
    Go to sheet with other entries
    Control - down arrow
    Down arrow (into a blank row)
    Paste values

    This always worked in previous versions but for some reason, when its run it overwrites the last entry ie: its not stepping down to a blank row.

    If I perform these actions it works but for the macros when it runs it doesn't.

    Any ideas please (no VB scripts as these users can't write VB code),.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Recording a macro to copy from an Input Form

    May be keeping the recorder in Relative Mode instead of Absolute will help


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    Southampton, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Recording a macro to copy from an Input Form

    I tried that but got an offset error. Even if I re-ran the macro from exactly the same cell as I recorded it in!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Recording a macro to copy from an Input Form

    Please post your code for doing correction

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    Southampton, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Recording a macro to copy from an Input Form

    ActiveCell.Offset(1, 0).Range("A1").Select
    Range(Selection, Selection.End(xlToRight)).Select
    Selection.Copy
    Sheets("Place Order").Select
    Range("A1").Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 0).Range("A1").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Lookup").Select
    Range("A1").Select

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Recording a macro to copy from an Input Form

    Try this...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-22-2013
    Location
    Southampton, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Recording a macro to copy from an Input Form

    Hi Sixthsense! I'm sure your code will work but it doesn't solve my problem. I'm a trainer and they just want to know the keystrokes, not the code! ie: they just want to click "Record macro" and then do the keystrokes on the keyboard/mouse, stop recording. I'm sure this worked ok in earlier versions so i'm confused why it doesn't work now! Thanks for any support or advice..

+ 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