View Single Post
 
Old 02-29-2024, 04:22 AM
viewtost viewtost is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Jul 2021
Posts: 35
viewtost is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
You are getting a runtime error because your are trying to set a string variable to a variant variable.


Change ctrlTitle() as String to just ctrlTitle
or
Change Array("Name", "Position" , "Etc") to Split("Name,Position,Etc", ",")


Now sure you don't want a msgbox popping up every time your code finds a CC with content.
I thought that variant variable could hold strings?
Reply With Quote