WildBurrow
New Member
- Joined
- Apr 5, 2021
- Messages
- 41
- Office Version
- 365
- Platform
- Windows
I fear I have bloated code that is causing Excel to seize up under certain conditions.
Workbook Purpose:
I have created a workbook that is used to create inspection reports. While each report has about 50 similar fields, each form may also have up to 50-75 additional cells of information. Because of the size of data collection, I did not utilize the User From function in Excel.
Data Flow:
Information is collected on a worksheet, which is referred to as a form (e.g. "Initial Inspection Form"). The "form" has a large number of blank cells and is formatted to look like a user form/database screen. With macros, the data is pushed to two locations: 1) a "Master Form" which pushes select information to a separate worksheet, and 2) to a "report", which has been formatted to look like a properly typeset report (referred to as "Initial Report").
There is a form/report that can require multiple site visits. To prevent having to copy/paste about 45 fields (mostly text), I've created a macro that would replicate the worksheet (via copy/paste special values). The user is required to enter a site visit date, which is used to rename the sheet. Once crated, the User can simply change/update the cells as needed.
Excel Seizures started after multiple worksheet replication.
I can replicate the forms about 15 times. Excel will save the information and will close properly. However, upon relaunch, Excel will seize up...even is Safe Mode. I've tried replicating the sheets with the macro AND I've also manually copied the worksheet (right click on worksheet tab, select Move or Copy). Each time, the workbook will open but will seize up after a simple navigation, such as clicking the first tab in the workbook. I am forced to Ctrl+Alt+Del to close the program.
The template (without replicated sheets) is about 3 MB large. The workbook (WITH replicated sheets) is about 6 MB large. I have looked at the following to determine if something is in error, and could find nothing: Checked constants/formulas, conditional formatting, objects, data validation, and Name Manager.
General workbook info
1) The workbook ALWAYS loads slowly....probably due to my code. My code is very much like a square wheel, but not knowledgeable enough to fix it.....to this point, its been getting the job done.
2) I have a Form navigation function that allows the user to select sheets from the "Dashboard" (first sheet in the workbook). Sadly, even this this macro removed, the workbook will still seize up the moment I try to navigate to any page.
Any suggestions as to where I might look for a remedy to this issue?
Workbook Purpose:
I have created a workbook that is used to create inspection reports. While each report has about 50 similar fields, each form may also have up to 50-75 additional cells of information. Because of the size of data collection, I did not utilize the User From function in Excel.
Data Flow:
Information is collected on a worksheet, which is referred to as a form (e.g. "Initial Inspection Form"). The "form" has a large number of blank cells and is formatted to look like a user form/database screen. With macros, the data is pushed to two locations: 1) a "Master Form" which pushes select information to a separate worksheet, and 2) to a "report", which has been formatted to look like a properly typeset report (referred to as "Initial Report").
There is a form/report that can require multiple site visits. To prevent having to copy/paste about 45 fields (mostly text), I've created a macro that would replicate the worksheet (via copy/paste special values). The user is required to enter a site visit date, which is used to rename the sheet. Once crated, the User can simply change/update the cells as needed.
Excel Seizures started after multiple worksheet replication.
I can replicate the forms about 15 times. Excel will save the information and will close properly. However, upon relaunch, Excel will seize up...even is Safe Mode. I've tried replicating the sheets with the macro AND I've also manually copied the worksheet (right click on worksheet tab, select Move or Copy). Each time, the workbook will open but will seize up after a simple navigation, such as clicking the first tab in the workbook. I am forced to Ctrl+Alt+Del to close the program.
The template (without replicated sheets) is about 3 MB large. The workbook (WITH replicated sheets) is about 6 MB large. I have looked at the following to determine if something is in error, and could find nothing: Checked constants/formulas, conditional formatting, objects, data validation, and Name Manager.
General workbook info
1) The workbook ALWAYS loads slowly....probably due to my code. My code is very much like a square wheel, but not knowledgeable enough to fix it.....to this point, its been getting the job done.
2) I have a Form navigation function that allows the user to select sheets from the "Dashboard" (first sheet in the workbook). Sadly, even this this macro removed, the workbook will still seize up the moment I try to navigate to any page.
Any suggestions as to where I might look for a remedy to this issue?