Hi ive created the below code but get runtime error when it reaches the "Worksheets("EXPOSURE_REPORT_4_AA").UsedRange.Clear" line of code. Any ideas why
"
![]()
Please Login or Register to view this content.
Hi ive created the below code but get runtime error when it reaches the "Worksheets("EXPOSURE_REPORT_4_AA").UsedRange.Clear" line of code. Any ideas why
"
![]()
Please Login or Register to view this content.
Last edited by batchjb69; 12-20-2013 at 07:18 AM.
ClearContents instead of Clear
![]()
Sub Reputation() Dim Problem as Variant Dim Reputation as Integer For Each Problem in Forum.Threads If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1 Next Problem End Sub
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
Never use Merged Cells in Excel
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks