Hello, can anyone help me out? I want to init one big date array that could not use loop. And it has multilines. The compile failed.
The code looks like below:
ThanksPlease Login or Register to view this content.
Craig
Hello, can anyone help me out? I want to init one big date array that could not use loop. And it has multilines. The compile failed.
The code looks like below:
ThanksPlease Login or Register to view this content.
Craig
Last edited by AliGW; 09-30-2024 at 12:40 AM. Reason: Code tags added - please review the forum guidelines.
remove highlighted from all lines.#10/7/2024#, # _
But IMHO better to put the data in a sheet :easier to change than if in code.
Last edited by JohnTopley; 09-30-2024 at 03:10 AM.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
I couldn't agree more!
But IMHO better to put the data in a sheet :easier to change than if in code.
It is hard enough trying to identify a wrongly-entered date on a worksheet (where dates can be entered in a single column and sorted etc.) but it is many times harder to identify such a date within several long lines of code.
You don't need to use a loop to assign cell values to an array - you can assign values en bloc with a statement such as the following:
Please Login or Register to view this content.
Regards,
Greg M
Thanks all!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks