+ Reply to Thread
Results 1 to 6 of 6

Convert all Tables to Range

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Convert all Tables to Range

    Hi all,

    I've currently got some data linked in from a database in several different sheets. They seem to be held is some special Excel Tables which, if i right click anywhere in them it gives me the option of Table -> Convert to Range.

    I also currently have a macro that attempts to remove all formulas and data sources, which works. But it also doesn't allow what were the data tables to be filtered unless i convert them to a range. (macros and VBA are very new to me so it's probably really badly coded), below is what my macro is doing so far.

    Please Login or Register  to view this content.
    I have done some searching but can't find a way to hunt down any excel "tables" and convert them to range in the above macro. Is this possibe?

    Thanks a lot for any help!!

    Mathew
    Last edited by mfrost; 10-11-2010 at 11:31 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Convert all Tables to Range

    Something like:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    10-11-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Convert all Tables to Range

    Quote Originally Posted by romperstomper View Post
    Something like:
    Please Login or Register  to view this content.
    Well that worked a treat, thanks ever so much. Super fast, and exactly what I was after! Kudos to you . Strangely i'm sure i tried almost exactly the same code myself earlier but failed miserably. Cheers!

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Convert all Tables to Range

    Glad to help.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Convert all Tables to Range

    Hey I am having the same problem as this user. I know the thread is old, but I can't find any info online to help me!

    How do I use this piece of code you provided?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Convert all Tables to Range

    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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