+ Reply to Thread
Results 1 to 3 of 3

Set unknown worksheet name in different workboojk as "wsSrc"

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Set unknown worksheet name in different workboojk as "wsSrc"

    Having a "senior moment" in this.

    Have data held in worksheet with unknown name in file X that needs to be pulled across to a worksheet in the Active workbook.

    I set the "other" workbook as "wbSrc" and can open it automatically. I can get a MessageBox giving me the "worksheet name" that it opens at,

    What I can't manage is to define that worksheet as "wsSrc"?

    Please Login or Register  to view this content.
    Can't see why it goes wrong?

    All solutions, suggestions or alternatives welcome as ever


    Ochimus
    Last edited by Ochimus; 02-26-2022 at 09:45 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Set unknown worksheet name in different workboojk as "wsSrc"

    As you have set, you should define the variables as objects.

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Set unknown worksheet name in different workboojk as "wsSrc"

    AB33,

    Many thanks for instant solution.

    Can now mark this as Solved.

    NewRedwing

+ 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: 2
    Last Post: 04-11-2020, 12:13 PM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. [SOLVED] if in worksheet "test1" is in cell G2 to G1000 an entry"share sale" copy the row new sheet
    By torti111 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-22-2017, 12:28 PM
  5. Countif based on column header with "unknown" range position
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 11-28-2015, 04:21 AM
  6. Copying an unknown number of cells in Sheet1 to Sheet2 starting from "F2"
    By blurtoad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2007, 07:27 AM
  7. [SOLVED] Open multiple "unknown" filenames within a macro (array setup)
    By need_some_help in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-23-2005, 04: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