+ Reply to Thread
Results 1 to 3 of 3

Working Only With Selected Workbook in a Userlist

  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    Brighton, England
    MS-Off Ver
    Excel 97
    Posts
    49

    Working Only With Selected Workbook in a Userlist

    Hello,

    I am struggling to wrap my head around why this doesn't work though it's probably quite obvious.

    I have populated a listbox with all open workbooks and selected a workbook from that list. This workbook is then given the name ClassBook, using a msgbox I have confirmed that this works up until here.

    Moving forward how do I then work only on that workbook for example deleting rows etc.

    Please Login or Register  to view this content.
    Rather than only deleting rows on the selected workbook in the userlist the above code simply deletes rows on whichever workbook is open. How do I fix this? Any help would be greatly appreciated.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Working Only With Selected Workbook in a Userlist

    Put a dot in front of Worksheets.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-14-2009
    Location
    Brighton, England
    MS-Off Ver
    Excel 97
    Posts
    49

    Re: Working Only With Selected Workbook in a Userlist

    Thank you!

    Knew it would be something simple.

+ 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. Can I use a Hyperlink to send a Workshheet from a selected workbook to a selected E Mail A
    By daviddavid in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 05:14 PM
  2. [SOLVED] Vba code working in workbook module but not working from personal.xlb
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-19-2014, 05:47 AM
  3. Loop through data on a workbook, selected it and paste in current workbook
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2012, 08:59 AM
  4. Delete Selected Row Not Working
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-11-2008, 03:21 AM
  5. [SOLVED] working with selected cells
    By Vishnu Prasad Ramachandran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2006, 03:45 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