+ Reply to Thread
Results 1 to 3 of 3

Application.Caller to get worksheetName where button is placed

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Application.Caller to get worksheetName where button is placed

    Hi Guys,

    in worksheet i have button and assigned macro to it (in module):

    Please Login or Register  to view this content.
    Code is not working.

    When i try to set up called_by i am getting Type Mismatch error (13).
    How can i do this?

    Please help,
    Jacek

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,063

    Re: Application.Caller to get worksheetName where button is placed

    Application.Caller returns the name of the button, not the button object. Since you can't click a button without its sheet being active, I can't really see why you don't just use activesheet?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Re: Application.Caller to get worksheetName where button is placed

    Ooo thank you.

    So simple...

    Best,
    Jacek

+ 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] Filter based name button as criteria (Application.Caller)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2014, 10:06 AM
  2. [SOLVED] Using Application.caller with Shapes
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 05:07 AM
  3. [SOLVED] Public variables/declarations not passing to UserForm from Application Caller Button
    By Lungfish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2013, 06:11 PM
  4. [SOLVED] Application.Caller with Command Buttons?
    By RBee in forum Excel General
    Replies: 3
    Last Post: 08-15-2006, 01:45 PM
  5. [SOLVED] application caller
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2006, 07:35 AM
  6. [SOLVED] Application.Caller
    By Marcelo in forum Excel General
    Replies: 6
    Last Post: 06-23-2006, 10:10 AM
  7. [SOLVED] Row = Application.Caller.Row
    By Charles Woll in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-28-2005, 10: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