Asking for help...

B Squared

New Member
Joined
May 4, 2018
Messages
6
I have a worksheet that is used to request flight legs from my aviation department. At the top of the page, the user can enter the total number of legs (1-10) requested for the trip, and that will populate column A with the entered number of legs, and also through VBA, require that certain fields within those requested leg rows be populated before saving. I have been asked to see if it is possible to hide those rows that are not necessary for a given request. Example, I have 10 rows (with borders) available for the maximum of 10 legs requested; if only 2 legs are requested, is there a way to completely hide the remaining 8, thereby reducing the number of pages on which the request will print?

Thank you in advance for any help!
 
Caleeco,
This adjustment to the VBA seems to be exactly what the Dr. ordered!
Yes, I think I did this correctly; I have gone through each cell and confirmed locked vs. unlocked...but it still works the same after I protect the sheet; it allows me to add text to an autoheight cell, but once I click out of that cell and try to return it doesn't allow it. When I subsequently unprotect the sheet and review the locked vs. unlocked again for that cell, it is now showing locked...weird. Not a show stopper for this form as far as I'm concerned; I think the user can make reasonable accommodation by using this form as a master and "Saving As" right off the bat, so if they make a mistake, they would always have the master document on which to fall back. I greatly appreciate your help with getting this to where it is...you have been an outstanding and very patient resource!!

Thank You,
B Squared
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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