0

I am trying to clear a range of cells with the use of a variable. For some background I have values in A-G that will be updated regularly while the values in I-K need to remain constant.

I am trying to use the value stored in myCell (in this example A8) to guide my clear command to be everything from it to G100

Range(myCell, "G100").ClearContents

I have tried several variations of this but it never seems to take so there must be something I am missing.

Thanks for looking!

1 Answer 1

2

You're close.

Range(myCell, range("G100")).ClearContents
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.