Jump to content

Recommended Posts

Posted

Cheers,

Hit a snag automating some excel stuff and I think this parameter could be what I need. Unfortunately cant find any examples/instructions on how to use it.

A shove in the right direction would be greatly appreciated. ;)

$iLookIn    [optional] Specifies where to search. Can be any of the XLFindLookIn enumeration (default = $xlValues)

Bill

Posted (edited)

If you look at the Excel Constants it says:

  Quote


; XlFindLookIn Enumeration. Specifies the type of data to search.
; See: http://msdn.microsoft.com/en-us/library/ff822180(v=office.14).aspx
Global Const $xlComments = -4144 ; Comments
Global Const $xlFormulas = -4123 ; Formulas
Global Const $xlValues = -4163 ; Values

Expand  

Edit: what are you looking for?  Maybe some more info on the problem?

Edited by Jfish

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Posted

But what are you then looking for?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

I was hoping for a parameter that would limit the search range,  for instance as a variable given from a previously found range.

I have a large excel sheet (made from a  PDF) with financial statements with information that will always be in a different row.

I need to search for a Facility and in that facility search for several different titles; sales, dop, income, depreciation...  and then grab cell info (numbers).

So basically limit the search range for the titles to whatever area of the worksheet  "name your Facility" is filling. The 'facility area' was the variable I was hoping to pass on to the range_find as a variable to search for those titles in each facility , one facility at a time.

Hope that makes sense...

Thanks for your interest :) 

 

 

Posted

Can you please post an (anonymized) sample of your data? Maybe setting a filter is all you need?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Just an FYI,

I ended up finding a way to get this done:

I had to set it up to find the first occurrence (there are 3) of the name of the first fac. and the first occurrence of the second fac. (-1)

Which gives me the chunk I was needing to pass on as a search criteria for the next section of code.

  Reveal hidden contents

Excel file: imagine a large financial statement with 10 fac. each fac. has 3 sections.

every month they are in different cells with empty cells added randomly. (tons of empty or useless information cells)

 

Thanks again :)

Bill

 

Edit: An example of the console output:

  Reveal hidden contents

 

Edited by l3ill

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...