Private Sub Worksheet_SelectionChange(byVal Target As Range)
With Worksheet("Sheet1").Columns("A:M")
.EntireColumn.AutoFit
.HorizontalAlignment=xlCenter
.VerticalAlignment = xlCenter
.WrapText=True
End with
End Sub
Private Sub Worksheet_SelectionChange(byVal Target As Range)
With Worksheet("Sheet1").Columns("A:M")
.EntireColumn.AutoFit
.HorizontalAlignment=xlCenter
.VerticalAlignment = xlCenter
.WrapText=True
End with
End Sub
Administrative Note:
Welcome to the forum. Please note two issues with your post. Please take steps to fix these issues.
We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however you need to include code tags around your code.
Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.
Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks