0

In my code I have the following statement that works just the way I want it. The question is how would I rewrite this to work for columns?

lastRow = Sheets(sName).Range("C" & Rows.count).End(xlUp).row

so far I have...

partNumber = Sheets("RM_RESULTS").Range(Columns.count & 1).End(xlLeft).Column

It's obviously something so simple but everything I try...no luck.

0

1 Answer 1

1
partnumber = Cells(1, Columns.Count).End(xlToLeft).Column

Set Cells(1 as needed with your cellnumber

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.