Anyone have code to implement a grid on a user form?

chuckbo

New Member
Joined
Feb 10, 2010
Messages
22
I'm looking for a way to add something like this in my UserForm.

Option 2.png


A long time ago, I used to use an ActiveX component that would let me build a grid. But that stopped working like with Excel 2010. This solution has to run on Windows and Mac (and probably in the browser, too), so no Windows-specific objects. I'm going to need to be able to lock the first two columns. Columns 3 and 4 can be edited. Ideally, column 5 would be a pulldown, And there has to be a way to add new rows (in which case they would have to be able to enter a value in column 1. And there might be more lines than the window displays, so the scrollbars have to work.

Does anyone have any code to share that would work as the foundation for this grid simulator?
I built something like. that when my app that used the grid stopped working, but that app & code have been gone for a long, long time.

Chuck
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The only ones I know about are 3rd party grid controls. See this link


At the bottom there is a discussion about alternative free solutions.
 
Upvote 0
Thanks, Riv01.
I'd found iGrid a couple of days ago when I was searching. But as you saw, it's an ActiveX control and won't work on all of our platforms.
The free alternatives it lists don't permit in-grid editing. So, I'm rolling my own.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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