I have written a macro to post a record to a database but want to check if the record is already in the database before I post the record? I have attached a sample file.
Thanks in advance
I have written a macro to post a record to a database but want to check if the record is already in the database before I post the record? I have attached a sample file.
Thanks in advance
I have made an attempt at the code but besides being inelegant, it does not work?
Sub PostWeek()
Thanks in advancePlease Login or Register to view this content.
I am receiving an error message "Object variable not set" for the "IF Selection" line of code? Would really appreciate some guidance.
Thanks in advance
I have tried some different code but still can't figure this out? The logic I am trying to apply is that if the weeknumber has been posted, a vlookup will result in a positive number and if the week has not been posted, the vlookup will result in #NA.
Thanks in advancePlease Login or Register to view this content.
I have attached a sample file with new code that has a problem with the Vlookup line?
Thanks in advance
Is there an easy answer to this problem? I am hoping so.
Thanks in advance
Hi Aland2929
Try thisPlease Login or Register to view this content.
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
Thank you very much. Works perfectly. I added the following code at to de-select the range:
Please Login or Register to view this content.
Hi Aland2929
You're welcome...glad I could help. Thanks for the Rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks