+ Reply to Thread
Results 1 to 3 of 3

Recorded macro missing paste commands

  1. #1
    Registered User
    Join Date
    11-13-2008
    Location
    Dunfermline, Scotland
    Posts
    25

    Recorded macro missing paste commands

    Hi there. This is my first post on this forum. From the looks of what I have seen on the forum this one should be childs play for anyone who has a good knowledge of vb script in excel.

    EDIT: This is Excel 2003

    Basically I have been using the "record macro feature". What I want the macro to do is as follows.
    1. cut all data from column C and paste it into G.
    2. Use the textTocolumns feature to split a comma delimited string into 2 seperate columns.
    3. user the textToColumns feature to remove any leading spaces from column G.
    4. cut columns d-H and shift them left startign in column C.

    I can do all of this find bu using the GUI while recording the macro but when I check the vb script it's completely missing the paste commands.

    When I try and run the macro it, quite rightly, returns "run-time error '1004':No data was selected to parse.

    Below is the resulting recorded macro.

    How do I amend this macro do include pasting the cut data?

    Please Login or Register  to view this content.
    Last edited by dopple; 11-13-2008 at 09:12 AM. Reason: Solved

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Use this as yopur first line

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-13-2008
    Location
    Dunfermline, Scotland
    Posts
    25
    You the man Roy. Thanks for your help. That worked perfectly.
    Graham

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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