Shrinking List Boxes

Jamm_027

Board Regular
Joined
Sep 10, 2007
Messages
249
I have a spreadsheet that I originally built in Excel 03. It ran fine in '03 and '07 but now that some of the users have excel 2010 there is an issue I can't figure out.

Below is my code. When the macro is ran. Everything works correctly however, there are 2 list boxes on the spreadsheet that shrink in size each time the macro runs. If the user makes about 6 - 8 entries the list boxes are almost completely gone. This never happened before. I stepped thru the code and the boxes shrink when the formats are pasted.

Not sure where to even begin. Any help is greatly appreciated.

jamm

Code:
Application.ScreenUpdating = False
Range("RecordBookmark").Offset(1, 0).EntireRow.Insert shift:=xlDown
Range("RecordBookmark").Offset(-1, 0).EntireRow.Copy
Range("RecordBookmark").Offset(1, 0).EntireRow.PasteSpecial xlPasteValues
Range("RecordBookmark").Offset(1, 0).EntireRow.PasteSpecial xlPasteFormats
Range("RecordBookmark").Offset(1, 0).EntireRow.Hidden = False
Range("RecordBookmark").Offset(1, 0).EntireRow.Locked = False
Range("Inputs").ClearContents
Application.CutCopyMode = False
Range("inputs").Cells(1, 1).Select
Application.ScreenUpdating = True
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

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