Hey everyone!
I am running into an issue pasting a section from one sheet to another and the column height/width is not adjusting accordingly. The section pops up when I press a specific radio button but it's pretty spread out since the columns aren't adjusting. I have attached some photos to give you an idea. Section1 is the form the end user will be using. The Mileage sheet is where the data is coming from and what I want it to look like on Sheet1.
I must note, I am on my 4th day using VBA and have no clue what I am doing. Any help would be appreciated!
This is what my code currently looks like:
I am running into an issue pasting a section from one sheet to another and the column height/width is not adjusting accordingly. The section pops up when I press a specific radio button but it's pretty spread out since the columns aren't adjusting. I have attached some photos to give you an idea. Section1 is the form the end user will be using. The Mileage sheet is where the data is coming from and what I want it to look like on Sheet1.
I must note, I am on my 4th day using VBA and have no clue what I am doing. Any help would be appreciated!
This is what my code currently looks like:
VBA Code:
Private Sub OptAdd_Click()
Sheet2.UsedRange.Copy
Sheet1.Range("C11").PasteSpecial xlPasteAll
End Sub
Private Sub OptEdit_Click()
Sheet3.UsedRange.Copy
Sheet1.Range("C11").PasteSpecial xlPasteAll
End Sub