Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2018, 05:22 AM
p45cal's Avatar
p45cal p45cal is offline Excel Macro: Run-time Error '91' Windows 10 Excel Macro: Run-time Error '91' Office 2016
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

The code doesn't expect to see multiple tables on Sheet1; for .currentregion to work properly here, every table needs to be separated from its neighbour by at least one completely blank/empty row. Deleting the text Table 4 in cell A22 satisfied that in this case.


Still, headers don't match:
You have Product Number in cell A23 of Sheet1, but Product in cell A1 of the Report sheet.
You have a trailing space in cell B23 of Sheet1, but none in cell C1 of the Report sheet.




In the userform you have a textbox called txtResMinC, but you have in the same place on the userform, another textbox called ResMinC, worse, you have a variable in the code ResMinC! I deleted the textbox ResMinC from the Userform.
Attached Files
File Type: xlsm msofficeforums39312 v2.xlsm (26.9 KB, 10 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2010 Run-Time error 4198 with Insert Picture with Caption and Fram Macro jstills116 Word VBA 0 06-24-2016 07:46 AM
Help Please: New VBA user trying to use a macro to split Mail Merge documents. Two Run-Time Error zipit189 Word VBA 7 03-18-2015 01:13 PM
Excel Macro: Run-time Error '91' Shift Excel Cell after executing a macro for second time LearningMacro Excel Programming 2 01-08-2015 03:05 PM
Excel Macro: Run-time Error '91' Run Time Error 4248 when opening Word Doc from Excel CIF Excel Programming 12 02-21-2014 02:27 PM
Excel Macro: Run-time Error '91' Run-time Error 5174: Open Word Documents from Excel tinfanide Excel Programming 3 10-01-2013 07:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft