+ Reply to Thread
Results 1 to 4 of 4

Need help to connect two functions variables to each other

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Need help to connect two functions variables to each other

    Hi guys,

    I have wrote following scripts,

    the first one LoopFiles

    It loops through files in a folder
    if the filename contains: "NoTrans.xls" filter then the name
    example of files can have name:
    Test_sv.xls
    Test_sv_NoTrans.xls
    then the script open Test_sv.xls


    see code below:

    Please Login or Register  to view this content.

    The thing is I want to merge the data from "Test_sv_NoTrans.xls" into the file "Test_sv.xls"


    I have wrote this function to do this:

    Please Login or Register  to view this content.

    now is the problem.

    while I run the script LoopFiles()

    I need to connect the variable
    MYLangFile

    to the variable in Contentpaste()
    SourceFile

    and also connect the variable from Loopfiles()
    myNoTransfile to the variable TargetFile.


    see picture

    bilden.jpg



    I tried to this but I dont get it work,


    Could someone help me to modify the code so the script works?

    Thank you in advance

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Need help to connect two functions variables to each other

    How about:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Re: Need help to connect two functions variables to each other

    Could you please write the whole code correct I don't make it work?

    Thank you in advance.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Need help to connect two functions variables to each other

    Try:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using variables in VBA formula functions
    By eric_deltour in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2013, 08:07 AM
  2. [SOLVED] variables for ranges and their use in functions.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2013, 04:02 PM
  3. Using variables within functions in a macro.
    By Talofa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2012, 10:33 AM
  4. Using Variables in Functions
    By bucket7200 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2011, 07:46 PM
  5. Count functions with variables
    By JohnathanC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2010, 12:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1