Active Cell Offset Entire Row Autofit Issue

LadyRave

New Member
Joined
Sep 14, 2016
Messages
41
Hello Everyone,

I have the following code below, however, when I run the code the words are cut off. What am I doing wrong?

Code -

Sheets("Active AGT").Range("B" & ActiveCell.Offset(3, 1).Row & ":D" & ActiveCell.Offset(3, 1).Row).Merge
Range("B" & ActiveCell.Offset(4, 1).Row & ":B" & ActiveCell.Offset(4, 1).Row).EntireRow.AutoFit


Table -


I tried to create a table to show the section where the words are cut off so hopefully this depicts a good image.


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Data A[/TD]
[TD="align: center"]This Part is the One Cut Off Even though I have AutoFit[/TD]
[TD="align: center"]Data B[/TD]
[TD="align: center"]Data C[/TD]
[/TR]
</tbody>[/TABLE]


May anyone please help?

Thank you!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I tried this code but I get an error on:

If Not Intersect(Target, Range(str01)) Is Nothing Then
Application.ScreenUpdating = False
On Error Resume Next
Set AutoFitRng = Range(Range(str01).MergeArea.Address)
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top