+ Reply to Thread
Results 1 to 3 of 3

Gathering sheet names and displaying them in a specific sheet column

  1. #1
    Registered User
    Join Date
    08-26-2016
    Location
    england
    MS-Off Ver
    ms office
    Posts
    26

    Gathering sheet names and displaying them in a specific sheet column

    Hi,

    I want to display my results in a Cell/column in a specific sheet(test) on a button click.

    I have this piece of code below. Which is giving the names of all visible sheets but i need them to go to a specific place in that sheet.

    Dim ws As Worksheet, ws1 As Worksheet
    Set ws1 = Sheets("Test")
    i = 1

    Please Login or Register  to view this content.
    Any help would be much appreciated.

    Many thanks
    Last edited by LePig; 09-01-2016 at 07:02 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Gathering sheet names and displaying them in a specific sheet column

    LePig, so you are saying the code works but the names are being put in the wrong place? where do you want them to go?

    If the rows are ok but you want to change the column then this line:

    Please Login or Register  to view this content.
    needs to change. The 1 in "(i,1)" represents the column (A), so just change that number to the column you want (B is 2, C is 3, and so on)
    Last edited by Arkadi; 09-01-2016 at 09:22 AM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Gathering sheet names and displaying them in a specific sheet column

    i need them to go to a specific place in that sheet
    I'm guessing you mean your list of sheet names. Whereabouts do you want the list to go?
    ws1.Cells(i, 1) allows you to choose the start row and column.
    Frob first, tweak later

+ 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. Replies: 3
    Last Post: 11-06-2014, 01:23 AM
  2. [SOLVED] Search for Identifier in Column (different sheet) and Displaying Results in Specific Cells
    By Velocir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 11:37 AM
  3. Replies: 18
    Last Post: 04-26-2012, 10:38 AM
  4. Replies: 2
    Last Post: 12-30-2009, 02:35 PM
  5. displaying sheet names in worksheet
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2009, 08:25 PM
  6. [SOLVED] Range names are displaying in big blue letters on sheet
    By Katie in forum Excel General
    Replies: 4
    Last Post: 11-02-2005, 06:17 PM
  7. Displaying Sheet Tabs Names in Cells
    By Cardin Smith in forum Excel General
    Replies: 5
    Last Post: 04-25-2005, 07:06 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