Help w/behaivior button error _ presentation doc

Hi I'm learning action script but new to trouble-shooting.
set up a button on main presentation page of my flash 8 pro
presentation file.
used the behaivior:
>screen
>go to slide
then chose slide numbers. (works fine in a plain, new doc)
but on all of my ten buttons I get the following errors:
**Error** Screen=presentation, layer=buttons, frame=1:Line 4:
')' expected
if((this.01 != undefined) && (this.01 != null))
So trying to decifer this....went back and "named" each
botton thinking it was instance related. but still won't nav from
the ten individual buttons I've made to the ten different "slide"
pages.
any help you may be able to translat this to give me a place
to start to solve this....my file complete...looks good..and will
nav thru the two arrow buttons I've made "go to previous" and "go
to next" ....but the buttons that are supposted to allow a use to
go to any of the ten pages does nothing.
Thanks for your help

Hi Neo,
Having taken a 3-day, all-day actionscript class, I realize
how indepth this prgm is, and I know this is a simple thing, and
totally operator error.
heres the whole error window:
**Error** Screen=presentation, layer=buttons, frame=1:Line 4:
')' expected
if((this.01 != undefined) && (this.01 != null))
**Error** Screen=presentation, layer=buttons, frame=1:Line 4:
')' expected
if((this.03 != undefined) && (this.03 != null))
**Error** Screen=presentation, layer=buttons, frame=1:Line 4:
')' expected
if((this.02 != undefined) && (this.02 != null))
Total ActionScript Errors: 3 Reported Errors: 3
I've only assigned behaiviors to the first three buttons. The
individual "slides" in the flash 8 pro presentation are named
simply: 01, (for first slide) 02 (for second) 03, etc...I can see
them in the code. The instance names when I click on each "slide"
are also 01 (for first slide) 02 (for second) etc... The wierd
thing is the arrow keys. They are duplicates of the same buttons
that the numbers are, and they work with the "next" and "previous"
behaiviiors. but....also weird, I made a new (simple, clean, no
rollover) button on the "master" presentation page, and used the
>screen >go to slide feature....and it still did not work. I
thought it the buttons...but...now not sure...
any thoughts?

Similar Messages

  • ERROR when hitting the "helpful" or "solved" buttons

    Here's the message I get, any system admins know how to fix it?
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.

    KevinC & Others,
    This is a wide spread issue, caused by the recent Maintenance on the  Discussions system.
    See these previously posted Topics in Feedback About Discussions, posted below.
    Please review the responses.
    Error when attempting to click "Solved" button in forum
    Error when trying to mark a reply as "solved"
    Thank you for maintenance and another error
    This Thread ERROR when hitting the "helpful" or "solved" buttons
    ali b

  • IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error

    IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error,

    spacepilot wrote:
    i live in the WS10 / 0121 area and have been having similar problems. i have an up to 20mb services, but up to a month ago connected at 4800, then my line went dead for 6 days, and all indis could do was send me  new router, which came the day after my line was restored, but had dropped to 2418 and remained so for the past 3 to 4 weeks, then i dropped to 1963 yesterday, and 729 today.
    all speeds are far lower on my upto 20mb than they where on my upto 8mb link.
    foegot to add, i reported the problem via the report a problem link, which hopefully will be red by someone with  a firmer grasp of english that the normal call centre staff
    welcome to the forum    why don't you start your own subject and post the adsl stats from your router and also run btspeedtester and post the results and someone may be able to offer assistance
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Need help in analysing the error in JasperReportIntegration Test Applicatio

    Our DBA installed Jasper Reports Integration kit Version 1.1.0.0 in our test environment. Apex version is 3.2.1.00.12. Oracle database is 11g and Apache Tomcat is 7.0.26
    I was able to bring up the Jasper Reports Integration test application. When I navigate to "Report Tester" tab, changed the JasperReportIntegration URL to the correct localhost and then cklick the "Show report (directly)" button, I got this message:
    Jun 12, 2012 11:41:58 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
    Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
         at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
         at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
         at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
         at java.lang.Thread.run(Thread.java:736)
    Can anyone help me understand this error and let me know if this message is caused by installing the jasper report integration kit incorrectly?
    Thanks.
    Edited by: bratz69 on Jun 12, 2012 7:35 PM

    Hi Dietmar,
    Thanks for your reply.
    There's no jasperreports-fonts-3.7.4.jar file in the webapps/JasperReportsIntegration/WEB-INF/lib folder. The only font file available is jasperreports-fonts-4.5.0.jar. I've downloaded the 3.7.40 jar file and saved it in the same folder without deleting the 4.5.0.jar. I tried to run the Test application again and still give me the same error.
    Jun 13, 2012 3:58:26 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
    Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
         at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
         at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
         at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
         at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
         at java.lang.Thread.run(Thread.java:736)
    I also tried the suggestion from the link provided by Nick. However, the syntax is for SUN environment and we are using IBM so I searched the equivalent of that command in IBM. Our DBA added the Java system property in the startup script by adding these 2 lines. But it errored out on the first 2 lines. I'm not sure if I do have the right syntax.
    java.version=1.4
    java.awt.headless=true
    ----- Error
    27) ./startup.sh
    ./startup.sh[25]: java.version=1.4: not found
    ./startup.sh[26]: java.awt.headless=true: not found
    Using CATALINA_BASE: /dbfupg/apache-tomcat-7.0.26
    Using CATALINA_HOME: /dbfupg/apache-tomcat-7.0.26
    Using CATALINA_TMPDIR: /dbfupg/apache-tomcat-7.0.26/temp
    Using JRE_HOME: /usr/java6/jre
    Using CLASSPATH: /dbfupg/apache-tomcat-7.0.26/bin/bootstrap.jar:/dbfupg/apache-tomcat-7.0.26/bin/tomcat-juli.jar
    ----- Start up script
    27) cat startup.sh
    #!/bin/sh
    java.version=1.4
    java.awt.headless=true
    os400=false
    case "`uname`" in
    OS400*) os400=true;;
    esac
    # resolve links - $0 may be a softlink
    PRG="$0"
    while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`/"$link"
    fi
    done
    PRGDIR=`dirname "$PRG"`
    EXECUTABLE=catalina.sh
    # Check that target executable exists
    if $os400; then
    # -x will Only work on the os400 if the files are:
    # 1. owned by the user
    # 2. owned by the PRIMARY group of the user
    # this will not work if the user belongs in secondary groups
    eval
    else
    if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
    echo "Cannot find $PRGDIR/$EXECUTABLE"
    echo "The file is absent or does not have execute permission"
    echo "This file is needed to run this program"
    exit 1
    fi
    fi
    exec "$PRGDIR"/"$EXECUTABLE" start "$@"
    BTW, Thanks for the update on the new version.
    Thanks!
    Edited by: bratz69 on Jun 13, 2012 4:48 PM

  • NEED HELP IN RADIO BUTTON QUERY

    Hi, Friends
    I like to query to extract data from my table with the help of radio button but I am not able to think what I should write to query. Plz help.
    The radio button select jsp page code is-
    <form action="queryservice.jsp" method="post">
    <h3><strong>Services Available</strong></h3>
      <p>
        <label>
          <input type="radio" name="service" value="si"  />
          Institutions</label>
        <br />
        <label>
          <input type="radio" name="service" value="sc" />
          Corporate_Offices</label>
        <br />
        <label>
          <input type="radio" name="service" value="sr" />
          Restaurent_Cafe</label>
        <br />
        <label>
          <input type="radio" name="service" value="sb" />
          Bus_Stop</label>
        <br />
        <label>
          <input type="radio" name="service" value="sa" />
          Apartment</label>
        <br />
        <label>
          <input type="radio" name="service" value="sh" />
          Hotels</label>
        <br />
      </p>
      <label>
        <input type="submit" value="Submit" />
      </label>
    </form>And queryservice.jsp page is
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <sql:query var="xyz" scope="request">
       <% String var = request.getParameter("service"); %>
             if(var.equals("si")){ SELECT si FROM serviceTable}
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    </sql:query>Please correct it.
    Thanking you

    Error Report-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:
           if(var.equals("si")){ SELECT si FROM serviceTable }
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    : Non supported SQL92 token at position: 57: SELECT
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException:
           note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    Apache Tomcat/6.0.14

  • Hp pavilion dv6 6180 help me for this error when I am using my recovery disk

    hp pavilion dv6 6180 help me for this error when I am using my recovery disk
    The destination drive is not connected

    Hello Mohammadshamlou.  I understand that you're having some issues using your Recovery Disc.  It is giving you the error that the drive is not connected.  Is this correct?  How long have you had the notebook?
    What issue originally led you to want to try a recovery?
    The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive.  So, I feel the best thing to try first is verify that the hard drive is in proper working order.  Follow these steps and please post the result. 
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Lightroom 5: start button in the presentation module doesn't work properly

    Hi. I purchased LR 5 last week but the start button in the presentation mudule doesn't work properly. I get a black screen and nothing happens. I have to press the esc button several times to return to LR.Can you help me please
    Regards Eugene

    start button in the presentation mudule
    Can you clarify?
    There is no start button nor a presentation module.
    Do you mean the Play button in the Slideshow module?
    Which operating system?

  • PPT action buttons are not present in pdf file upon conversion

    Hi
    Am using Office 2003 (SP3) and Acrobat 8 (version 8.1.6).
    Have been using action buttons in the presentations for several years, works fine.
    When converting existing files, action buttons in both PPT show and pdf file just works, no problems.
    Newly generated presentations work fine as PPT show. But when converted to pdf file, the action buttons are simply missing.
    Have verified that all action buttons are "at front", same result.
    Have tried to avoid corporate templates by creating a blank presentation and building a small and simple navigating presentation. Again, works fine as PPT show. And again, upon conversion there are no action buttons present in the pdf file.Corporate changes thereby should be ruled out.
    Have checked all settings (including "Adobe PDF, Change Conversion Settings") between a working and a non-working PPT file, can't identify any differences.
    A colleague helped out (using Acrobat 6), same result. But upon activation of "Adobe PDF, Change Conversion Settings, Restore Defaults", the action buttons worked for him. Tried it with Adobe 8, no such luck.
    Have trialed the "Prep 4 PDF" tool, then the PDF file is complete and the "go to slide" keys appear and work again.
    All new updates available are installed, anyone experienced the same and found a fix for this trouble?

    Have tried both ways, same result.
    When working with new presentations, the pdf file is viewable, but the action buttons are not present.
    When working with past presentations, the action buttons are present and do work as expected.

  • Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". I've quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. HELP

    Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". As well as reloading, I've also quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. please help.
    System: Mac OSX 10.9.4. 3.4ghz intel core i7, 8gb ram

    Hello,
    Adobe has brought these new links in this matter:
    Troubleshoot Creative Cloud download and install issues and
    App doesn’t open; progress wheel spins continually
    Please have a look there. If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use chat, I had the best experiences. I quote from Preran: The chat button is activated as soon as there is an agent available to help.
    Good luck!
    Hans-Günter

  • ALC-WKS-007-074 - submit button error

    Hi Everyone, We are also experiencing problems submitting a form in Workspace.  The error is: ALC-WKS-007-074.  There is a submit button on the form that I think is the culprit of the error.  It's submitting as XDP and the data coding is UTF-8.    Are there any examples of submit buttons like this?  thanks in advance!

    Hi,
    this is the wrong forum to ask about Workspace.
    But, here's my little help.
    Check the Error Reference, it explains what the error means.
    http://help.adobe.com/en_US/livecycle/9.0/errorCodeRef/general_errors_frame.html
    You alos may check if there are all service packs installed in your LC enviroment.
    Otherwise you should goto the Workspace forums.
    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_workspace

  • Handle errors when makeing doc.submitForm()

    Hello,
    I am trying to submit PDF form by method doc.submitForm, example:
    doc.submitForm
            cURL: "http://localhost/reader_test.php?name=" + name.rawValue,
            cSubmitAs: "XML"
    A) With this approach, is it possible to handle connection errors and display custom error message (and cancel the original one) ?
    I have tried something like
    try{  doc.submitForm(...); } catch(e) { //handle code }
    but it seems to be run asynchronously.
    B) Is it possible to add custom HTTP headers to the POST ?
    I saw that FormCalc can do it in Post() funciton, but when using Post() function, the Reader displays Yello-bar security dialog, that made our previous SOAP-based solution too complicated for the end user.
    Appreciate any help.
    Radek

    Sofar I have not found the way how to handle errors when using doc.submitForms(), but there may be following workaround (mey be?):
    The server returns as a response to a submitForms() call a pdf content, which is displayed as a document in a new Reader's window. Is it possible to place some javascript into this new window, that would refer to parent window and send to it some message ? Or at least to detect at the "parent" window, that a "child" window was opened ?
    So is there any relation between the newly opened document with the response from server and the original document, that initiated calling of doc.submitForms()?
    Thanks.

  • + button is not present

    Hello,
    I have exchange 2013 and EXchange Online in hybrid mode. 
    When i go to EAC 2013 --> recipients --> resources the "+" button is not present. So i cant create room mailboxes
    any ideas?
    help

    [PS] C:\Windows\system32>(Get-Command New-Mailbox).Parameters.Keys.Contains("room")
    False
    [PS] C:\Windows\system32>(Get-Command New-Mailbox).Parameters.Keys | Sort
    AsJob
    Confirm
    Debug
    EnableRoomMailboxAccount
    ErrorAction
    ErrorVariable
    HoldForMigration
    IsExcludedFromServingHierarchy
    Name
    OutBuffer
    OutVariable
    PublicFolder
    Verbose
    WarningAction
    WarningVariable
    WhatIf
    All exchange administrators cant see "+" button
    What can we do?
    thanks again

  • Help with linking buttons to Scenes

    Hey,
    Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
    "stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(1, "Recipe");
    Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
    "stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
    gotoAndPlay(1, "MainMenu");
    So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
    Please help

    First, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
    stop();
    btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
         gotoAndStop(1, "Recipe");
    If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN.  MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
    As for the code to get you back home, where is it located on the timeline?  Are you getting any error messages when you try to use it?
    One thing you should learn to use is the trace() function.  It is useful for troubleshooting.  You can use it now to see if your second button is talking to the function at all...
    stop();
    btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
    function mouse5DownHandler(event:MouseEvent):void {
         trace("the button works okay");
         gotoAndPlay(1, "MainMenu");
    If you don't get that message in the output panel, you'll know the button is not properly coded to work.
    Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic.  Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both.

  • [HELP] VBA Currency NumberFormat Error - Excel

    [HELP] VBA Currency NumberFormat Error - Excel
    Hello,
    I've a worksheet with many cells formated as currency and i want modify the currency format through a combobox,
    First i use this code to get the inicial currency type/format,
    Private Sub ComboBox1_DropButtonClick()
    inicial = Me.ComboBox1.Value
    Select Case inicial
    Case "EUR"
    oldFormat = "#.##0 €"
    Case "GBP"
    oldFormat = "[$£-809]#.##0"
    Case "USD"
    oldFormat = "#.##0 [$USD]"
    End Select
    End Sub
    The oldformat variable is a global variable,
    Public oldformat As String
    After that i want to do a find using oldformat variable and a replace using a newformat variable,
    Private Sub ComboBox1_Change()
    Dim ws As Worksheet
    Dim newFormat As String
    'On Error Resume Next
    newValue = Me.ComboBox1.Value
    Select Case newValue
    Case "EUR"
    newFormat = "#.##0 €"
    Case "GBP"
    newFormat = "[$£-809]#.##0"
    Case "USD"
    newFormat = "#.##0 [$USD]"
    End Select
    'Set rNextCell = Application.FindFormat
    For Each ws In ActiveWorkbook.Worksheets
    Application.FindFormat.Clear
    Application.FindFormat.NumberFormat = oldFormat
    Application.ReplaceFormat.Clear
    Application.ReplaceFormat.NumberFormat = newFormat
    ws.Cells.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
    :=xlByRows, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
    Next ws
    End Sub
    I read the new value through the user choice on the combobox.
    But this not work at all, the variables oldformat and newformat receive the correct values but i got a error on,
    Run-time error '1004': Application-defined or object-defined error
    Application.FindFormat.NumberFormat = oldformat
    Application.ReplaceFormat.NumberFormat = newFormatIs there any way to pass the newformat and oldformat value to the Numberformat property?
    Or someone have another away to do this?
    Link for exemple file,
    https://www.dropbox.com/s/sdyfbddxy08pvlc/Change_Currency.xlsm
    I apreciate any help, i m a little bit new on .
    I apologize if there are any errors in English, is not my natural language.

    The number formats must already be present in the workbook, otherwise you'll get the error that you mention.
    The code for US$ is [$$-409]
    Here is the code:
    Public oldFormat As String
    Private Sub ComboBox1_Change()
    Dim ws As Worksheet
    Dim newValue As String
    Dim newFormat As String
    newValue = Me.ComboBox1.Value
    Select Case newValue
    Case "EUR"
    newFormat = "#,##0 €"
    Case "GBP"
    newFormat = "[$£-809]#,##0"
    Case "USD"
    newFormat = "#,##0 [$$-409]"
    End Select
    Application.FindFormat.Clear
    Application.FindFormat.NumberFormat = oldFormat
    Application.ReplaceFormat.Clear
    Application.ReplaceFormat.NumberFormat = newFormat
    For Each ws In ActiveWorkbook.Worksheets
    ws.Cells.Replace What:="", Replacement:="", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, _
    SearchFormat:=True, ReplaceFormat:=True
    Next ws
    End Sub
    Private Sub ComboBox1_DropButtonClick()
    Dim inicial As String
    inicial = Me.ComboBox1.Value
    Select Case inicial
    Case "EUR"
    oldFormat = "#,##0 €"
    Case "GBP"
    oldFormat = "[$£-809]#,##0"
    Case "USD"
    oldFormat = "#,##0 [$$-409]"
    End Select
    End Sub
    See https://www.dropbox.com/s/ax20vnmjpjny3h6/Change_Currency.xlsm
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • HELP!!! Error 3194 "This device isn't eligible for the requested build"

    HELP!!! Error 3194 "This device isn't eligible for the requested build"
    my iPhone 4 cannot restore on my mac...
    my iphone dead and no SHSH
    i updated my itunes and my mac osx to the latest version...
    i had on my firewall..
    i changed the file host...
    i buyed a new USB Cable...
    i restored on another computer and other internet connection...
    but the Error 3194 "This device isn't eligible for the requested build" still there and my phone still dead...
    HELP me please...

    Try a DFU restore.  Plug in your phone.  Hold the Sleep/wake button and the home button for 10 seconds.   Release the sleep/wake button and continue to hold the home button until Itunes detects a phone in recovery mode.  Now restore.

Maybe you are looking for

  • Indesign CS3 crashes when I try to print in Lion

    I installed Lion this morning and I'm unable to print from InDesign and Illustrator CS3. Both applications crash before the print dialogue opens. I really need to solve this problem. Everything I do as a designer goes through  InDesign.

  • Rh X5 VS Rh 8: Styles Mapping

    Hello, Is there any way we can map styles when importing from Word in Rh X5? I've searched everywhere but it does not seem feasible...! I know that we can in Rh 8 as I've tried the trial version. Thanks in advance Best Regards

  • Error reading label stock data ; Messag No: CBGL00103

    Dear Experts, I have created the Label Size and Label Stock SIze in 108 client and moved to 105 via SCC1 in same server DEV. Customizaiton is appering in 105 now. While creating the Label stock,  getting following error Error reading label stock data

  • Creating Graphs from a JTable

    Hello fellow coders, Im not too sure on how to implement a graph in swing and was looking for some help into creating a graph from a Jtable in my program. I have seen many suggestions to use JFreeChart, but i am not too sure how to use this. Any sugg

  • Can you create a table in adobe form central?

    Can you create tables within a form for entry?