Consulting

Results 1 to 2 of 2

Thread: Add macro button to worksheet - tricky

  1. #1
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    294
    Location

    Add macro button to worksheet - tricky

    Hi Experts

    A tricky one. How would you add a macro button to the tool bars section of the workbook. So that when the and excel workbook is opened (with a pariticular name - the name cannot be changed at all by the user) the macro button is visible for the user to click and run the vba.

    What i am trying to do is when the user click in MS Access a specific Report and runs it via the Analysis it with MS Excel, it populates a report in excel and the name of this rreport is ALWAYS "TurnaroundReport_by_PlanName" when the information filter through into MS Excel.......

    how would you tackle this????

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    In that workbook's activate event, make the toolbar button visbible. And make it not so in the deactrivate event.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •