In microsoft, I have a vba program A in ThisDocument, I have another method B in NewMacros, how to call method B in program A?

Just as what the title says

Where does the NewMacros come from? Is a separate module?
Try to use the prefix in the following format:
NewMacros.B
See
Call a Subroutine from a different Module in VBA for more information.

Similar Messages

  • Creation of pdf-files from a VBA programming of a database application

    In a kind of form letter practice through a modular programming in Microsoft Access individual invoices created as PDF files shall be sent as serial e-mails.
    Example: After a seminar, for example 50 people shall receive individual invoices with invoice number and the respective address.
    After creation we don’t want the pdf-documents to be displayed on the screen. It should be automatically transferred through our MS-Access-programming to Outlook for serial e-mails.
    The functionality of the automation is positioned in a VBA module (Visual Basic for Application) of a MS Access form.
    At this point Acrobat PDF should be controlled by MS-Access VBA programming (and not manually by the user).
    To implement such an automatic, we need a documentation of the interfaces for the later in the text referred Acrobat objects, which can be addressed in the MS-Access VBA Programming.
    References in Microsoft Access:
    Adobe Acrobat 10.0 Type Library
    Acrobat Access 3.0 Type Library
    Acrobat Distiller
    Objects according to Microsoft Access Object Browser:
    AcroApp
    AcroAVDoc
    AcroAXDoc
    AcrobatAccessLib
    ACRODISTXLib
    AcroHiliteList
    AcroPDDoc
    AcroPoint
    AcroRect
    AcroTime
    Among the listed objects and their properties and methods, we need a comprehensive description.
    Are there special *. DLL or *. chm or *. hlp - files
    which can be addressed by MS-Access directly to automatically generate PDF files?

    Google the following:
    Software\Adobe\Acrobat Distiller\PrinterJobControl\
    I have done this using a Report I designed in MS Access, you basically print to the 'ADOBE PDF' printer. No need to use any of the References you listed.
    I loop thru a recordset of Customer IDs and generate my reports. I do the Outlook piece after I have generated the pdf files.
    My Access report has no RecordSet, it is set on the fly, using the following:
    Private Sub Report_Open(Cancel As Integer)
    Me.RecordSource = sqlReport
    End Sub
    sample code:
    sub genReports
    Dim lRC
    Dim sReg
    Dim emailPath As String
    Dim accessPath As String
    Dim strKey As String
    Dim rsCust As New ADODB.Recordset
    Dim rsRecs As New ADODB.Recordset
           emailPath = currentproject.path & "\email\"
           accessPath = SysCmd(acSysCmdAccessDir)
           accessPath = accessPath & "MSACCESS.EXE"
           strKey = "Software\Adobe\Acrobat Distiller\PrinterJobControl\"
            Set sReg = GetObject("winmgmts://./root/default:StdRegProv")
           'PrinterJobControl key
           lRC = sReg.CreateKey(HKEY_CURRENT_USER, strKey)
           'query to get Customer IDs     
           rsCust.Open "qryReportCust", CurrentProject.Connection, adOpenStatic
           Do Until rsCust.EOF
            strCust =rsCust!CustID
            'sqlReport is a function that uses CustID as parameter
            rsRecs.Open sqlReport, CurrentProject.Connection, adOpenStatic
            If Not rsRecs.BOF Then
               lRC = sReg.SetStringValue(HKEY_CURRENT_USER, strKey, _
                                         accessPath, emailPath & strCust & ".pdf")
                DoCmd.OpenReport "rptCustomerInvoice", acViewNormal
            End If
            rsRecs.Close
            Set rsRecs = Nothing
       rsCust.MoveNext
        Loop
       rsCust.Close
    end sub

  • Is it possible to run a excel with vba program in IPAD

    Hi,
    I would like ask if it is possible to run a excel with vba program/macros in IPAD?
    Thanks

    I am not sure, but the best Free App is Google Drive, you get 15 GB free storage which you can upload photos , videos and files, pretty much amazing, also I have read news that Microsoft is planning to have iOS office 365 but cost annual subscription fees almost 99$ kinda lame, try also Cloudon App, is very nice app , you can use word , power point and Excel

  • Error of VBA program

    Hi,allI have a VBA program developed in Excel 2000.When this program running,EssVConnect() and EssVSetSheetOption() are OK,but EssVZoomIn() has an error occured.It alerted a message "The range is not valid" and return a local failure "5" which can not be finded in the Essbase spreadsheet service help.Here is the code:Declare Function EssVZoomIn Lib "EESADDIN.XLL" (ByVal sheetName As Variant, ByVal range As Variant, ByVal selection As Variant, ByVal level As Variant, ByVal across As Variant) As Longy = EssVZoomIn("data", Null, range("A3"), 3, False)Does anyone know about this error?Essbase's version is 7.1.3.The web application server is WebSphere.

    In looking back at your first post, three things struck me.1) Your definition for EssVZoomIn varies sufficiently from mine to warrant checking out (I don't have version 7.1, I'm on 6.5, so it may be a change that is okay). Below is my definition, but beyond the version, the language change may also have an influence. Either way, I'd recommend you look at the API supplied with the installed version of Essbase to see if it's valid. FWIW, here is the definition from the English 6.5 version, as you can see, the XLL name is entirely different -- again, this may not be relevant, so it's something to look at.Declare Function EssMenuVZoomIn Lib "ESSEXCLN.XLL" () As Long2) Your call uses the sheet name without a fully qualified workbook name. This works under some situations, and not under others. Try defining a string and range variable to see if that helps (if nothing else, it may help point out why the call fails). Here's the snipet (periods are for formatting):Dim strSheet as String, oCell as Range....Set oCell = ActiveSheet.Range("A3")....strSheet = "[" & ThisWorkbook.Name & "]" & ActiveSheet.Name & "!" & oCell.Address....y = EssVZoomIn(strSheet,Null,oCell,3,False)3) The cell A3 itself is curious, but not necessarily wrong. Perhaps there is something in the language or version that makes Essbase suspect that it's part of the page area instead of a row label. As a test, try lining the page members up in cells A1, A2, etc..., move the row labels down, make sure there is at least one blank row before your column labels, and that you have at least one column label. This just gives Essbase a better chance of interpreting your layout properly.If it's not any of the above, well, you may be right, it could very well be a version dependent bug. It wouldn't be the first time, but in general the Essbase API is fairly solid, just a bit quirky at times.Hold on here... I just realized something. The message isn't saying that the selection isn't valid, it's the range. Perhaps it is literally referring to the range parameter -- your "Null" may need to be removed to make it just:y = EssVZoomIn("data",,range("A3"),3,False).I normally use a fully defined range, "ActiveSheet.UsedRange" should work, too, although it may truncate the output if it doesn't include the rows beneith in the zoom.An alternative would be to just select cell A3 and call EssMenuVZoomIn, after setting the zoom level to 3, etc... It's not a pretty workaround, but it's a workaround.Good Luck, again :)

  • Microsoft Visual C   Runtime Library Program C:\Program Files (x... error

    Today I tried to use my Photoshop Elements 10 editor, the main screen launched but the following error message appeared and the application stopped functioning:
    "Microsoft Visual C   Runtime Library Program C:\Program Files (x...  This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."
    Should I reinstall my software?
    Where can I consult the step by step re-install process?
    I have Windows 7 64 bits operating system.
    The organizer is working fine.
    This is the Application Error information taken from the Windows 7 administrative tools
    Nombre de la aplicación con errores: PhotoshopElementsEditor.exe, versión: 10.0.0.0, marca de tiempo: 0x4e70c16d
    Nombre del módulo con errores: AXEDOMCore.dll, versión: 3.3.402.1, marca de tiempo: 0x45f081f6
    Código de excepción: 0x40000015
    Desplazamiento de errores: 0x0005d9b1
    Id. del proceso con errores: 0xa70
    Hora de inicio de la aplicación con errores: 0x01d029aba00bc6c5
    Ruta de acceso de la aplicación con errores: C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe
    Ruta de acceso del módulo con errores: C:\Program Files (x86)\Adobe\Photoshop Elements 10\AXEDOMCore.dll
    Id. del informe: eb0bfb92-959e-11e4-8e37-14feb5b08bab
    Message was edited by: VICTORIA BATRES
    Message was edited by: VICTORIA BATRES

    Re-installation was required to be done according to Technical Service chat.

  • VBA programming within a BEx Report

    Hello Gurus,
    I have a report and would like to represent a comment below. This comment is simple text but keeps changing every now and then. It is saved as a text file in some folder. The task at hand is following....
    Each time I refresh the Query, this comment should also get refreshed, i.e. its contents should get copied from the text file into the comment area below the report.
    As far as I know, I think this can be done with VBA programming but would involve an extra click of a button. Still i am not too certain. What I wish to know is whether I could get this process running in the background upon refreshing the Query?
    b.t.w. i am using BW 3.5
    Thanks,
    SD

    Hi Sebastian,
    You can place a VBA code into the SAPBexOnRefresh module (it is executed every time you (or the system) refresh the query). Te code may read any text file and place the data read into the worksheet.
    You don't need an extra click on a button. The click is a refresh process.
    But I'm not sure if it would be a background process.
    Best regards,
    Eugene

  • VBA Programing Question - Very Basic - One Field Maps to Another Field

    I have a MS Project schedule where I created some custom fields.  I have one custom field for the number of items required to complete the task and then another custom field for the remaining "open" items.  I am using those two fields
    to make a calculated third column which calculates the "% completed"...I couldn't call it "% complete" since that is one of the built-in fields. 
    The problem is then I have to go down through and manually type in the "% complete" values so that they match my calculated "%completed".  It sure would be slick if I had a macro that would automatically make all of the "% complete"
    fields match the "% completed" fields. 
    Seems simple, but I have zero experience in VBA programming.
    Thank you in advance for your help.
    Bill

    Try:
    Sub UpdateCompleteStatus()
    Dim Job As Task
        For Each Job In ActiveProject.Tasks
        If Not Job Is Nothing Then
            If Not Job.Summary Then
                If IsNumeric(Job.Number3) Then
                    If Job.Number3 >= 0 And Job.Number3 <= 100 Then
                        Job.PercentComplete = Job.Number3
                    End If
                End If
            End If
        End If
        Next Job
    End Sub
    Number 3 being zero is not a problem, but being an error value or <0 or >100 is a problem.
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

  • How to return success/failure message in a VBA program that uses ADODB

    I have this little VBA program that uses ADODB to execute a SQL Server Agent job remotely.  How do I add a message box at the end that would give some feedback to the user, if the execution command was successfully sent to the server or if it failed?
    Sub Test_SSIS()
    Dim conn As Object
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Properties("Prompt") = adPromptComplete
    conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub

    Hi Tim,
    When I looked up the BOL about the ADO.Connection
    EXECUTE method, something came to my sight.
    "An ExecuteComplete event will be issued when this operation concludes." You may reference the
    ExecuteComplete. A quick glance at the event, it contains the execute result set and errors if occured.
    Regarding your description, your question is more relevant about VBA, I suggest you post your question on a dedicated VBA forum. It is appropriate and more experts will assist you.
    Here is a relevant link you can reference
    Visual Basic of Application
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • Your firefox profile cannot be loaded. It may be missing or inaccessible. Firefox will not open and I don't have another internet program on my computer. How can I get the profile back?

    Everytime I try to open firefox on my desktop it says "Your Firefox profile cannot be loaded. It may be missing or inaccessible." So now I cannot open firefox at all and I can't figure out how to get a profile. I just had to delete some programs to gain memory on my system and that is when the problem started. I don't have another internet program

    Hi crmn,
    Have you looked at the Knowledge Base article [[Recovering important data from an old profile]]? There are steps in there that might help you. You might just want to create a new profile and start fresh.
    Hopefully this helps!

  • When i open my i3tunes on my computer i get an error message telling me that iTunes has stopped working..the message is as follows...Microsoft Visual C  runtime library Program C:\program files (86) iTunes\iTunes.exe  R6025 -Pure virtual function call..

    when i open my i3tunes on my computer i get an error message telling me that iTunes has stopped working..the message is as follows...Microsoft Visual C  runtime library Program C:\program files (86) iTunes\iTunes.exe  R6025 -Pure virtual function call.. How do i fix this

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • I keep getting the following message:  Runtime Error...Microsoft Visual C + Runtime Library  Program C:\Program Files\iTunes\iTunes.exe  R6034 An application has made an attempt to load the C runtime library incorrectly and can't open iTunes now.  Help!!

    I keep getting the following message:
    Runtime Error...Microsoft Visual C++   Runtime Library  Program C:\Program Files\iTunes\iTunes.exe
    R6034 An application has made an attempt to load the C runtime library incorrectly and can't open iTunes now.
    Please could someone help with this query as I am at a loss as to why this problem is now occurring?  Thank you.

    Check the user tip below.
    https://discussions.apple.com/docs/DOC-6562

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • I have Adobe Acrobat 6.0 Pro  how do i get it to work on my microsoft surface 3

    I have Adobe Acrobat 6.0 Pro  how do i get it to work on my microsoft surface 3

    Hello nnicora19a,
    I am sorry but Acrobat 6 is not compatible to run on Microsoft Surface 3.
    Moreover, Acrobat 6 is a very old version so Adobe also recommends you to install and use latest version (Acrobat XI) which is more compatible with OS on Microsoft Surface 3.
    Regards,
    Anubha

  • Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Why not? Are there error messages? Where are the files located? Why are you deleting MicroSoft Word files?

  • Why do microsoft users have difficulty in opening my PDF files

    Why do some microsoft users have difficulty in opening my PDF files

    1. They are just Microsoft users!
    2. Do you include the file suffix? Windows likes file suffixes!

Maybe you are looking for

  • I have 100's of photos in Window Live Photo Gallery, hoe can I stream them to TV via App TV?

    I have 100's of photos in Window Live Photo Gallery, how can I stream them from computer to TV via App TV?

  • Using url with username and password in URL class

    Hi, I'm writting an applet in which I use getAppletContext().showDocument with an URL. The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http

  • Any sailors out there?

    My wife and I are taking our sailboat into the South Pacific and need some advice on which Mac Pro we should upgrade to, and our needs are extremely specific. First and foremost, I want to integrate it with our ship's systems - as in HAM radio email,

  • Having issues installing windows

    I have a GT60 2QD-1066US notebook, installed a new SSD in the open HD slot but having issues reinstalling windows on it, i cant seem to get any cloneing program to copy it properly, and when i install my other windows 8 media and use the key off of j

  • Why are photos so blurry inside and so clear outside

    My photos that I take inside are most of the time blurry and the ones I take outside are not. Why is this? How can I make the photos not blurry?