+ Reply to Thread
Results 1 to 8 of 8

Need a macro to pull info from ini files.

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    asdfasd
    MS-Off Ver
    Excel 2003
    Posts
    3

    Need a macro to pull info from ini files.

    Hi,

    Please see the attached file. I have multiple sheets like this, each has a column A with a list of part numbers. I'd like a macro to inspect each corresponding part number's ini file located in C:\inspections and place line 7's text in column B (Product=AUTOMIDDLE). Here is an example ini:

    Pnum=905-0133
    Picturea=BLANK
    PictureB=BLANK
    PictureC=AUTO
    PictureD=BLANK
    PictureE=BLANK
    Product=AUTOMIDDLE
    WireSensor=FALSE
    CameraStep=1
    UsePickBin=FALSE
    DistanceSensor=FALSE
    fixture=CP001
    insert=CPC001
    screwcheck=FALSE
    UseFilterReel=FALSE

    I'm not too familiar with writing macros so I need some help, I appreciate your time.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Need a macro to pull info from ini files.

    If you are not familiar with macros, why are you embarking on such a task?

  3. #3
    Registered User
    Join Date
    04-18-2012
    Location
    asdfasd
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need a macro to pull info from ini files.

    Is there an easier way to accomplish this?

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Need a macro to pull info from ini files.

    I don't know you, but I can only go on what I see. You have joined the forum, you have listed your name as 112233 and your location as asdfasd, and you want to know how to do something that is relatively complex. So my question is why are you embarking on a challenging task such as this if you don't have an understanding of how to do it, and can't even put in the effort to sign up to the help forum properly?

    Maybe a bit of context and effort from you would be motivating for someone to help you. JMO.

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Need a macro to pull info from ini files.

    I agree with Mallycat. A little online etiquette can go a long way. Your file that you have provided has nothing of the sort in your post, just numbers like 905-3511. In my corner of the world that isn't asdfasd, those numbers look like phone numbers, which have nothing to do with
    Pnum=905-0133
    Picturea=BLANK
    PictureB=BLANK
    PictureC=AUTO
    PictureD=BLANK
    PictureE=BLANK
    Product=AUTOMIDDLE
    WireSensor=FALSE
    CameraStep=1
    UsePickBin=FALSE
    DistanceSensor=FALSE
    fixture=CP001
    insert=CPC001
    screwcheck=FALSE
    UseFilterReel=FALSE
    except for your Pnum, which is definitely an mnemonic for phone number. This type of posting can make the volunteers of this site and other sites like this apprehensive about trying to help.
    Last edited by Mordred; 04-18-2012 at 02:42 AM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  6. #6
    Registered User
    Join Date
    04-18-2012
    Location
    asdfasd
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Need a macro to pull info from ini files.

    oh my god ******* forget it.

  7. #7
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Need a macro to pull info from ini files.

    If you ever read this, it's your loss regarding NOT adjusting your attitude towards help forums.

  8. #8
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Need a macro to pull info from ini files.

    Truly said and others do read words from Mallycat and Mordred fired.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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