Hi All,
I am currently using the Data>Filter to make my data look like a table.
The reason I don't like using a table is that I get errors when the data isn't consistent across the column etc.
To combat this in the past I used
This code helped me ignore all the errors that popped up in my table but put a massive strain on my CPU as it calculates after every Worksheet_Calculate() and Worksheet_Change(ByVal Target As Range).
it was very very slow on laptops as well but it worked "perfectly"
Is there a way to use structure references or something similar so I can stop using Tables?
I love that every code in my column is like eg:
Instead of every row formula being different because it uses 'B2' and 'H2' etc as the above is much easier to read:
Any help would great! Thanks in advance
I am currently using the Data>Filter to make my data look like a table.
The reason I don't like using a table is that I get errors when the data isn't consistent across the column etc.
To combat this in the past I used
VBA Code:
Dim r As Range: Set r = Range("A2:AY200")
Dim cel As Range
For Each cel In r
With cel
.Errors(8).Ignore = True 'Data Validation Error
.Errors(9).Ignore = True 'Inconsistent Error
.Errors(6).Ignore = True 'Lock Error
End With
Next cel
This code helped me ignore all the errors that popped up in my table but put a massive strain on my CPU as it calculates after every Worksheet_Calculate() and Worksheet_Change(ByVal Target As Range).
it was very very slow on laptops as well but it worked "perfectly"
Is there a way to use structure references or something similar so I can stop using Tables?
I love that every code in my column is like eg:
VBA Code:
=IF(ISBLANK([@[Surgery Date]]),"",
IF(NOT(ISNUMBER([@[Surgery Date]])),"Surgery Date TBC",
IF(AND(ISNUMBER([@[Pre-Book Set]]),ISNUMBER([@[Surgery Date]])),IFERROR(IF(AND(MONTH([@[Surgery Date]])=12,DAY([@[Surgery Date]])=25),"Surgery Date TBC",
"Create Calandar Invite"),""),"")))
Instead of every row formula being different because it uses 'B2' and 'H2' etc as the above is much easier to read:
VBA Code:
=IF(ISBLANK(B2),"",
IF(NOT(ISNUMBER(B2)),"Surgery Date TBC",
IF(AND(ISNUMBER(H2),ISNUMBER(B2)),IFERROR(IF(AND(MONTH(B2)=12,DAY(B2)=25),"Surgery Date TBC",
"Create Calandar Invite"),""),"")))
Any help would great! Thanks in advance