Problem with ribbon buttons and macros

I made my first custom Ribbon tab, with the following code:
Code Block
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon>
        <tabs>
            <tab id="Adnet" label="Adnet" insertAfterMso="Add-ins">
                <group id="NetVision" label="NetVision alati">
                    <button id="Brisanje" label="Brisanje" size="large" onAction="Brisi()" imageMso="Delete" />
        </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>
That puts a new tab and a button in my ribbon. But when i click the button, it executes the Brisi() macro twice (?!) and then it shows a mesage box with only "400" written in it (link to picture of message box). If I run the macro alone, without the button, it executes fine.
What's the problem?

Excel is the program in question.
I made an add-in with one module and with the altered ribbon. In the module there is a Sub routine Brisi() and it has the following code:
Code Block
Sub Brisi()
    Debug.Print ("Opened.")
End Sub
When I click the button, the debug window shows "Opened." twice. And the before mentioned "400"
When I remove the "()" from the .xml it results in this.
I'll put the whole extension on the net, and then You can try. I would be extremely grateful

Similar Messages

  • Problem with Ribbon button "Download a copy"

    Hi everyone,
    I've seen lately a curious problem with one of ours SharePoint Farms. The button Download a copy in the ribbon doesn't appear to work anymore. If you click it, he will redirect you to the internal page "/_layouts/download.aspx", but the file won't
    be downloaded and the page will show nothing but a blank page with the master page.
    In our farm we have three Web Applications with different sites. Each one presents the same problem and the ULS logs doesn't show anything specific.
    Best regards!
    Wiliam Rocha

    Hi Wiliam,
    I wonder if you are downloading a copy of file from external machine, if that is the case, please test the issue on an internal domain machine.
    Please also check if there is any settings that can prevent files from being download to client, such as:
    https://support.office.com/en-us/article/Apply-Information-Rights-Management-to-a-list-or-library-3bdb5c4e-94fc-4741-b02f-4e7cc3c54aa1?ui=en-US&rs=en-US&ad=US
    In addition, please test the issue with other browsers.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Problem with home button and "messages" app after upgrade to iOS 4.1

    Hello,
    I have noticed two interesting problems with my iPhone 4. I am not sure if it is in conjunction with the upgrade to the iOS 4.1 software, but I did not notice the problem prior to this. Both of these problems are very odd and are hit or miss. I have tried restoring and the problem is still present. Also, since both problems have presented at the same time, that is why I am starting to believe it is not hardware...
    Problem 1: The home button has become considerably unresponsive. This is not all the time, but it does happen a lot. Sometimes it won't work for about 5-8 clicks and I have to use the power button to access the phone.
    Problem 2: When composing a new text message the cursor would always default into the "To:" section of the app which allows you to easily type what contact you are trying to message. However, I am having the issue now occasionally when I am in the messages app and select to compose a new text message that the cursor now defaults into the chat box (where you type your actual message). This is very annoying and I know that this is not the intended behavior of this.
    Please let me know if anyone has experienced similar issues and can provide me with some feedback.

    I have not experienced the same.
    I have tried restoring and the problem is still present.
    You restored from your iPhone's backup, or as a new iPhone or not from your iPhone's backup?
    If whatever software problem is causing this is included with your iPhone's backup, restoring from the backup will also restore the problem.
    Try restoring as a new iPhone or not from your iPhone's backup to see if this makes any difference. If not, more than likely your iPhone has a hardware problem.

  • Problem with radio button and labels

    Hi Team,
    I have defined the LOV for a form field as STATIC:yes;y,no;n and in 2 columns.
    This is what I get at runtime
    <table>
    <tr><td nowrap="nowrap"><input type="radio" name="p_v07" value="n" id="P18_USED_PRODUCTS_0" />
    <label for="P18_USED_PRODUCTS_0">no</label></td>
    <td nowrap="nowrap"><input type="radio" name="p_v07" value="y" id="P18_USED_PRODUCTS_1" />
    <label for="P18_USED_PRODUCTS_1">yes</label></td>
    </tr>
    </table>
    I want Yes to be the first button. How can I do that? I can with a LOV, but "static" is easier for trivial things like y/n etc.

    Raymond,
    You can use the keyword STATIC2 instead of STATIC to render the options in the order you code them.
    - Scott

  • Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart

    Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart help me

    - Reset the iOS device. Nothing will be lost.
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                       

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • Keyboard Problem with C button on my Satellite L40

    (Sorry for mistakes)
    Hello
    I had a problem with my keyboard and the FN function:
    I installed windows XP on my L40. I have also installed all drivers from the download page. All drivers work well, also the hotkey driver.
    My problem:
    If I want to write normal with it the "c" button doesn't work, I must press FN to make a "c".
    Can anyone help me? It can not be normal.
    Thanks

    Hi again,
    I updated the Bios for XP.
    After That the Problem with the keyboard and the c button is gone.
    All works fine. Thanks.
    For all have Problem with keyboard.
    1. Bios check ( the one for xp or vista)
    2. ckeck if num(numlock) is activate ( if num(can be deaktivate with FN + F11) is on you can get problems with installing the Fn hot key utilitie and driver)
    3. reinstall the hot key driver and utilitie.
    sorry for misstakes in the language!!

  • Gallery with Paypal buttons and drop-downs on the index page?

    I'm looking for a LR gallery where I can have thumbnails with Paypal buttons and drop-downs on the index page.
    I would prefer to keep my galleries interface streamlined and don't want to clutter it up with dropdowns and cart. I would like to have 1 page for ordering that has all my images as thumbnails with drop downs for price and size, rather than right-clicking on and image which opens in another page like the LRG Gallery with Paypal.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    I'm familiar with LRG Complete gallery, but don't see that it has the ability to not require a right click to order.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    Any thoughts, ideas, or help?
    Thanks,
    Reid

    Maybe some could try this out, and has experienced the same problem.
    It is on the site http://www.fonetix.biz
    and then push the German flag in the top Right corner, and further click on the Button "Contact info". It will give the eroor.

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • Cutom ribbon button and valid RegistrationId for an External Type List

    I'm developing a custom ribbon bar command for my particular External Content Type list. I know that for the command to be shown correctly I need a valid RegistrationId which would correspond to my list. But it seems to be unclear for me what to set there
    if I use the button against an Extarnal Content Type list because RegistrationId=101 or 100 doesn't work there .  Any suggestions?

    Hi,
    For your requirement, here are three workarounds for your reference:
    1. Use JavaScript to hide the button accordingly.
    Add custom ribbon button for this kind of list, then add a JavaScript snippet to the list views or different forms to hide that button according to the checking result
    of the list name.
    2. Create a custom list definition and create list with ribbon button based on it.
    After the site provisioned, delete the original list and create a new list with based on this list definition with similar columns.
    3. Make another site template contains this list with the custom ribbon button.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Problem with Information button in WAD

    Dear Mates,
    I have a problem with Information button in WAD template.
    I have two queries in web template. those two queries are in two tabs( i used Tabstrip ) respectively.
    if i press first tab it shows query1 and if i press second tab it shows query2 absolutely.
    problem
    when i am in first tab, if i click information it will show information about query1, but when i am in second tab,
    if i click information it will show information about query1 only..
    i need it to show information about second tab.
    Please help. Its urgent. Full Reward points will be given.
    Thanks in advance.
    Regards,
    Ranganath

    check out this link
    http://www.mhprofessional.com/downloads/products/0071640266/0071640266_chap01.pdf

  • I am using iPhoto 11 and my library has 736.5mb on disk. I have problems with iPhoto stalling and needing to force quit. I have rebuilt my library. Can you suggest anything else?

    I am using iPhoto 11 and my library has 736.5mb on disk. I have problems with iPhoto stalling and needing to force quit. I have rebuilt my library. Can you suggest anything else? Thanks, Rose

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If that does'nt help log into another user account on your Mac and try iPhoto from there. 

  • I'm having problems with iPad 2 and my smart cover.  The attachment seems to be depolarized and it moves around causing the device to toggle and flash like its coming on or shorting.  Anyone having problems?

    I'm having problems with iPad 2 and my smart cover.  The attachment seems to be depolarized, trys to connect using the back (curved) edge of the magnetized bracket.  When I try to attach it, it moves around causing the device to toggle in a way that looks like the camera flash.  Anyone having problems? Help.

    Update. My carrier says the antenna of my iPhone 4s is not so good as the one in the iPhone 3G. They can't solve the problem. Their signal is too weak for the 4s at places I spend most of my time. Not the answer I expected, but I'm free to choose an other carrier. Hope this will help.
    This was not the correct answer, I accidentially clicked the button..
    Message was edited by: vasch

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

Maybe you are looking for

  • Using Polaroid HD-LCD tv as Mini display...NOT! :(

    Very similar symptoms as described in the post re: ENVISON wide scieen. Well, maybe not exactly...tv is 19" Poloroid TLA-01911C w/ oodles of inpiut options like most other brands. I opened the box attached a VGA cable to the tv, powered up tv and min

  • Expression Issue

    Hi All, I am from a Informatica background and new to ODI. Its overwhelming for a newbie like me grasp this ELT concept. ODI version - 11g. We are in process of loading data from MySQL to Oracle. We are using LKM SQL to Oracle and IKM Oracle incremen

  • Embed fonts in AIR Help?

    Hello, Is there any way to embed fonts in AIR Help? I've noticed that fonts used in the Help must be installed on the user's computer for them to be displayed correctly (like with CHM files). I know the pages are just HTML but I thought (wished) that

  • Coulun values shuffle while printing data with FM REUSE_ALV_GRID_DISPLAY

    HI Experts, I am using FM REUSE_ALV_GRID_DISPLAY to display values using ALV Grid. My requirement is to add the new column UOM price at 7th of field catalog. In order to get UOM price, I added UOM Price in field catalog and OUTTAB at position 7. When

  • CoverFlow Shows Icons Only

    I have deleted the thumbnails and now all I have are icon thumbnails. (.jpg) Help? Thanks!!