Results 1 to 5 of 5

Excel 2007 : Macro, repeat keystroke

Threaded View

Graydoggy Macro, repeat keystroke 12-01-2009, 05:36 PM
shg Re: Macro, repeat keystroke 12-01-2009, 06:02 PM
Graydoggy Re: Macro, repeat keystroke 12-05-2009, 07:31 AM
Palmetto Re: Macro, repeat keystroke 12-05-2009, 09:38 AM
Graydoggy Re: Macro, repeat keystroke 12-06-2009, 09:27 AM
  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:
    With ActiveCell
    If Len(.Value) > 3 Then
    .Value = Left(.Value, Len(.Value) - 2)
    .Offset(1, 0).Select
    End If
    End With
    End Sub
    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.

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