Macro won't select columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro that I want to select columns A & B, however it appears
because I have Merged cells in rows 1-3 it is selecting A thru P. Does anyone
know a way to prevent this from happening? My code is below.

Columns("A:B").Select
Selection.ColumnWidth = 5

Thanks
Vick
 
The way to avoid it is DO NOT MERGE CELLS. They are a pox on spreadsheets,
screwing up range selection, sorting, formatting, etc.

Virtually anything you can do with merged cells can be done WITHOUT merging
cells and without screwing up your spreadsheet
 

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