The strangest thing has happened. I have simple Userform.Show codes in a module which I have assigned to shapes on a spreadsheet. Some of them still work but others throw a Run Time 381 Error Code?
Any suggestions.
The strangest thing has happened. I have simple Userform.Show codes in a module which I have assigned to shapes on a spreadsheet. Some of them still work but others throw a Run Time 381 Error Code?
Any suggestions.
bump for help
Need to have a look..
So
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and use the paperclip icon to open the upload window.
View Pic
Regards,
Vikas Gautam
Excel-buzz.blogspot.com
Excel is not a matter of Experience, its a matter of Application.
Say Thanks, Click * Add Reputation
DRAFT PLT-50-B Contractor Variance Database.xlsm
See above attached file.
Essentially when you enter be sure you are on worksheet "Home" and click on the dashboard text that says "Print Variance" (i.e. this is actually an object with an assigned macro) The macro itself is just to stimulate a userform but at this point is currently not working....???? at a loss as to why.
see UserForm CVF14
Please Login or Register to view this content.
Regards, John55
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.
...enjoy -funny parrots-
Last edited by jaredmccullough; 03-09-2015 at 08:21 AM.
There's only one value in column A on the sheet 'Variance Database'.
To populate a listbox with a single value you need to use AddItem instead of List.
So try this code for the form's Initialize event.
PS Don't seem to have a problem with Edit Variance but you can use the above code for Approve Variance.Please Login or Register to view this content.
If posting code please use code tags, see here.
Jared
I believe it's because a range consisting of more than one value will return an array whereas a range of only one value will only return the value.
Hi
Norie is right!
I saw that you have one item in column A, so initially I tested it with more items (such as "aaa", "bbbb", etc) and it worked.
I wish you success!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks