Combining 2 Ranges in a Single WITH Statement

  • Thread starter Thread starter Ken Loomis
  • Start date Start date
K

Ken Loomis

I am formatting a totals column and a totals row with exactly the same set
of formats.

Currently I use these two 'with' statements:

With .Range(.Cells(mRow + 1, 1), .Cells(mRow + 1, 6))

With .Range(.Cells(6, 6), .Cells(mRow, 6))

Since the formatting statements in each 'with' block are identical, I think
there must be a way to combine those into a single 'with' block.

Can anyone let me know if that can be done, and, if so, what that the 'with'
statement would look like?

thanks,
Ken Loomis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top