Can some helpt to know what is wrong in the below code -
Please Login or Register to view this content.
Can some helpt to know what is wrong in the below code -
Please Login or Register to view this content.
It works fine for me when I run it like this:
It creates a new workbook out of the sheet. If you are getting that error I would check the name you have in there for your sheet.Please Login or Register to view this content.
Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.
<---Click * Add Reputation for all helpful comments. It's like giving a smile.
Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.
It means that there is no sheet with name : "ALL Brand Buyers Request form" exist in ActiveWorkbook.
1. I care dog
2. I am a loop maniac
3. Forum rules link : Click here
3.33. Don't forget to mark the thread as solved, this is important
wrong sheet name. double check the spelling.
Got help? Pls give rep.
If you do R&D learn VBA
Does the Sheet "ALL Brand Buyers Request form" exists in your workbook?
Make sure the is no extra or trailing spaces.
GC Excel
If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.
I am still getting the error-
Here is the entire code - 2 command button. first - to create the sheet and second - save the sheet to a location. Please check the code
Please Login or Register to view this content.
Please Login or Register to view this content.
Any Help??
The only thing I can think of is that when you click that second button, the activeworkbook, which is probably the one with the button that you just clicked, doesn't have a sheet called "ALL Brand Buyers Request form".
SHeet name is correct i checked it. There is some oroblem with the activesheet when i am using 2 command buttons. I achieve what i am seeking when i use both codes in one command button.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks