Blue Prism Product

last person joined: 7 minutes ago 

Chat about Blue Prism products
Expand all | Collapse all

Last cell value of an excel coulmn where we have different lengths of coulmns

Jump to Best Answer
  • 1.  Last cell value of an excel coulmn where we have different lengths of coulmns

    Posted 11-23-2020 23:28
    Hi Team, I am trying to retrieve the last cell of a column and in my excel sheet I have different lengths of column… so I am not able to use the get row number action from Microsoft Excel VBA, as it will count the row numbers where each column have same number of rows.

    I want to get the count of the rows for a specific column as I have columns with different row counts. Any help will be much AppreciatedPost


    ------------------------------
    Mithun Nahak
    ------------------------------


  • 2.  RE: Last cell value of an excel coulmn where we have different lengths of coulmns
    Best Answer

    Posted 11-24-2020 07:08
    Hi Mithun,

    Please use below code to get your last row.

    Dim LR As Long

    LR = Cells(Rows.Count, 1).End(xlUp).Row (Put your column number where 1 is mention)

    I hope it will help you.

    Thanks
    Nilesh

    ------------------------------
    Nilesh Jadhav
    Senior RPA Specialist
    ADP
    India
    ------------------------------



  • 3.  RE: Last cell value of an excel coulmn where we have different lengths of coulmns

    Posted 11-24-2020 11:16
    You should guard against the last cell in the worksheet having data.

    Dim lastCell As Object
    'Please arrange sheet names and column indexes for user input
    lastCell = Sheet1.Cells(Sheet1.Rows.Count, 1)

    Dim lastRow As Integer
    lastRow = IIf(lastCell.Value <> "", lastCell.Row, lastCell.End(-4162).Row)

    ------------------------------
    Anton Hosang
    RPA Developer
    Smart Automation Services
    Europe/London
    ------------------------------



Share


FAQ

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.