+ Reply to Thread
Results 1 to 2 of 2

Macro to Convert Selected Range to Table

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Macro to Convert Selected Range to Table

    Hey guys!

    I think I'm close... A simple macro to convert the selected cells to a table. Here's my code:

    Please Login or Register  to view this content.
    I'm getting Run-time error '1004':
    Method 'Range' of object'_Global' failed

    Cheers,
    Lucas

  2. #2
    Registered User
    Join Date
    10-25-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Macro to Convert Selected Range to Table

    Solved it myself. Needed to change Range(myRange) to just myRange. Also added an unlist to convert the table back to a range.

    Please Login or Register  to view this content.

+ 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] How to set range within a macro based on what range is selected on the worksheet
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2013, 12:49 PM
  2. Copy selected cells from a range of worksheets and paste in master table
    By simba3088 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:59 AM
  3. Macro to copy selected columns, convert to number and paste to new tab
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2011, 06:11 PM
  4. Determine Selected Pivot Table Page Range Filters
    By ShredDude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2010, 05:17 PM
  5. How do I convert a selected Cell address in a Range to Values?
    By MichaelC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2005, 09:05 AM

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