3

I'm trying to insert the number contained by the variable Row4Num -1 into the Active Cell, along with some text, but I can't quite figure out the syntax. Any help would be greatly appreciated-- Thanks!

      Range("I7").Value = "=""Teams:  & "" Row4Num - 1"

1 Answer 1

9

This:

Range("I7").Value = "Teams:  " & Row4Num - 1

When using VBA variables in a String they must be outside the "" and concatenated with &. Everything inside the quotes will be treated as a text string.

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

1 Comment

@reggie86 glad to help. Please mark as correct by clicking the check mark by the answer.

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.