The sub writes messages in Outlook to an Excel file. I need the script to select to lastRow in the excel file but the line "rInt = xlWks.Range("A65536").End(xlUp).Row" errors. ol-xl-error.txt
OutlookMicrosoft Excel
Last Comment
spitcha
8/22/2022 - Mon
nutsch
dim rInt as a long instead, you probably have more than the 32 some thousands supported by the integer data type.
spitcha
ASKER
Thanks for the reply. I get the same error after changing rInt to long
Flyster
See if this will work:
rInt = .Cells(.Rows.Count, "A").End(xlUp).Row
Flyster
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
spitcha
ASKER
Nope. Still getting the same error.
spitcha
ASKER
The issue is with end(xlUp). I'm able to select or get any value, leaving this query out.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.