Jump to content

Read Excel Row Value


Recommended Posts

Hi,everybody

This is my trouble

I wanna take the value in a row but i wanna only take the word before the dot

Here is a example

This is my row value "Autoit forum is the best.com"

I wanna put in a variable only "autoit forum is the best" without the ".com"

$package2 = $oExcel3.Cells($search_cell.Row,3).Value

GUICtrlSetData ( $input7, $package2)

Thanks a lot for your help

Link to comment
Share on other sites

I think you can use a regular expression statement... after "$package2 = " and before "GUICtrlSetData". There could be an easier way but why can't I think of it??

$aTmp = StringRegExp($package2, "(.*)\.", 3)

ConsoleWrite($aTmp[0])

Edited by MrMitchell
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...