+ Reply to Thread
Results 1 to 4 of 4

Macro function has been passed to me. not sure its exact function

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    21

    Macro function has been passed to me. not sure its exact function

    I have been given the task of fixing a macro that has been written by somebody else.
    The macro is supposed to search the worksheets within the wb for certain data types extract this information then transfer it to a table.
    As it stands when I run the macro it appears to search through all the worksheets then does nothing.
    I would greatly appreciate it if somebody could tell me what this macro is actually doing.
    There is also a second macro which appears to do nothing at all.
    Macro 1
    Please Login or Register  to view this content.
    Macro 2
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Macro function has been passed to me. not sure its exact function

    Actualy it searches all sheets for formulas containing the string "Item No.:".
    Then selects some area on the sheets searched and prints the value of the cells found to the Immediate Window.
    That's about it. So indeed it seems to do nothing. Certainly not writing anything to a table. Doesn't make sense to me.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    21

    Re: Macro function has been passed to me. not sure its exact function

    Yeah that's what I thought. I don't really understand it either. Thanks for taking the time to get back to me.

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Macro function has been passed to me. not sure its exact function

    I did notice an error when the search text is not found. Where you supposed to fix that?
    If so check for the text first with
    Please Login or Register  to view this content.
    If you like I can take a further look with the actual workbook.
    Will be away for 2 weeks though.

+ 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] VBA: Array of User Defined Type passed as parameter to function
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 07:08 AM
  2. Wildcards passed to custom function
    By drmartell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2013, 06:27 PM
  3. [SOLVED] Arrays passed into function
    By ChrisHag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 09:46 AM
  4. [SOLVED] Issue with array created from value passed from function
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 08:32 PM
  5. [SOLVED] Modify range variable passed through Function
    By spyd3r in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-14-2006, 07:25 PM

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