+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Macro, repeat keystroke

  1. #1
    Registered User
    Join Date
    12-12-2008
    Location
    Cape Town, South Africa
    Posts
    11

    Macro, repeat keystroke

    Hi,
    I have a number of large tables that I have imported from a website. Unfortunately the text in the left column is such that if I import/paste special as text it makes it very difficult to get the data to columns.
    The data in the table has a comma if it is more than 3 chars (e.g. 27,349) and does not read as a number.
    So I need to go in and remove this comma.
    As the record macro does not record the actual keystrokes I know I need a bit of scrip that does something like this: move across 3 characters,backspace, enter.

    I have managed to run & test some script and the closest to my solution looks like this:
    Please Login or Register  to view this content.
    But that just deletes the last 2 characters. I don't understand what these formulas are really saying.

    Any help is appreciated!

    Thanks,
    Graeme
    Last edited by Graydoggy; 12-02-2009 at 02:54 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro, repeat keystroke

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-12-2008
    Location
    Cape Town, South Africa
    Posts
    11

    Re: Macro, repeat keystroke

    Ok,
    all fixed up!
    Any feedback on the query perhaps?

    Thanks,

    Graeme

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro, repeat keystroke

    Why not use the Find and Replace feature built into Excel? No VBA required and it is very fast and easy.

    Click the column header, press Ctrl + H, click the Replace tab and type a comma in "Find What" box. Leave the "Replace with" box blank.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Registered User
    Join Date
    12-12-2008
    Location
    Cape Town, South Africa
    Posts
    11

    Re: Macro, repeat keystroke

    Thanks,
    Yeah - eventually that's what I did!
    So simple - but I was trying all sorts of things like *'s in the 'replace' box.

+ 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