Consulting

View Poll Results: How many save to the personal.lxb

Voters
2. You may not vote on this poll
  • All the time

    0 0%
  • Most of the time

    0 0%
  • Rarely

    0 0%
  • Never

    2 100.00%
Multiple Choice Poll.
Results 1 to 8 of 8

Thread: Can not view macros in Personal.xlsb from macro dialog box

  1. #1
    VBAX Regular
    Joined
    Aug 2012
    Posts
    13
    Location

    Can not view macros in Personal.xlsb from macro dialog box

    Hello,

    I need help.

    :) The Good
    1. Personal.xlsb opens when I start excel and is unhidden
    2. I can open VB Editor and see the macro just fine
    3. I can select the module from the VB Editor window, click run, and it works just fine



    :banghead: The Problem
    1. I cannot see the marco saved to my Personal.xlsb from the Macro Dialog box in Excel (Developer>Macros)
    2. The short cut only works after I have ran the macro (by pressing play)
    Attached Images Attached Images

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    That isn't a macro, it's a function and they don't appear in the macro list.
    Be as you wish to seem

  3. #3
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    You'd better not use a function to change the layout of a worksheet.

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    You can if you are not calling it from a cell.
    Be as you wish to seem

  5. #5
    VBAX Regular
    Joined
    Aug 2012
    Posts
    13
    Location
    So what should I do if a function is not the best solution?

  6. #6
    VBAX Regular
    Joined
    Aug 2012
    Posts
    13
    Location
    Hit post to soon. We need to set the print format for 5 files that are all identical. I need a simple macro to that will perform this function. The print setting will always be the same, but the tabs in each file are named something different.

    Ex: I want to set the print options to 1 page long and 1 page wide for each of the files below without having to create a marco for each.

    File 1
    tab1 is named A
    tab2 is named B
    tab3 is named C

    File 2
    tab1 is named D
    tab2 is named E
    tab3 is named F

  7. #7
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    Use a Sub not a Function. Unless you are returning a value there is no point in using a function generally.
    Be as you wish to seem

  8. #8
    VBAX Regular
    Joined
    Aug 2012
    Posts
    13
    Location
    It worked. Thanks so much

Posting Permissions

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