DonAndress
Active Member
- Joined
- Sep 25, 2011
- Messages
- 362
- Office Version
- 2019
- 2016
- Platform
- Windows
Hello.
I'd like to use such a simple code but I get Type mismatch error.
In this example "lastFund" returns 32. It doesn't matter if I put 32 instead of "lastFund".
This code passes if I make a reference to one cell only instead of a range.
Where do I go wrong?
I'd like to use such a simple code but I get Type mismatch error.
In this example "lastFund" returns 32. It doesn't matter if I put 32 instead of "lastFund".
This code passes if I make a reference to one cell only instead of a range.
Code:
Range(Cells(14, 4), Cells(lastFund, 4)) = UCase(Range(Cells(14, 4), Cells(lastFund, 4)))