+ Reply to Thread
Results 1 to 2 of 2

Convert text to numbers and delete blank rows

  1. #1
    Registered User
    Join Date
    11-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Convert text to numbers and delete blank rows

    I was wondering if anyone could help. I need a macro that does the following:

    Convert all text in column K to numbers (apart from the headings in row 1)
    Delete all rows in column K that are blanks / have no numbers.
    Move data up so there are no blank rows
    Copy all data in the sheet (apart from the headings) to the clipboard.

    Another question as I am new to macros. How would I make this code available to be run in any sheet with a shortcut (ctrl-M)? Can a dialogue box pop up and ask me if I want to run it (if I mistakenly press ctrl-M).

    Thanks in advance.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Convert text to numbers and delete blank rows

    Something like this should work.
    Please Login or Register  to view this content.
    To link it to Ctrl-M, in the Developer tab, click Macros, select the FixData macro, select Options, and enter an m or M (it is case-sensitive) for the shortcut key.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Convert text to numbers and move appropriate rows to another sheet.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2013, 07:55 AM
  2. [SOLVED] How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows
    By raw_geek in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-16-2012, 03:17 PM
  3. [SOLVED] Delete blank rows after filter - if no blank rows exit sub
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 10:00 AM
  4. Replies: 1
    Last Post: 05-10-2012, 04:58 PM
  5. delete blank rows and text formatting
    By vamshi57 in forum Excel General
    Replies: 2
    Last Post: 04-04-2010, 03:27 PM

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