+ Reply to Thread
Results 1 to 6 of 6

Run time error 70 Permission denied.

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    Run time error 70 Permission denied.

    Hi all,

    Tried Many a times solving this error , however i know this forum is very useful and people really help each other,

    My code mentioned below: I am getting the error at Me.Pricing_Owner.AddItem ws.Name,

    I want to add a new sheet if any1 from the Pricing_Owner.combobox is new and it should automatically rename with the username.

    but its showing run time error 70 permission denied while adding new sheet...


    Private Sub UserForm_Initialize()
    For Each ws In ThisWorkbook.Worksheets
    Me.Pricing_Owner.AddItem ws.Name
    Next ws
    End Sub


    It would be really appreciable if any1 can help me with this....

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Run time error 70 Permission denied.

    You may be having REFERENCE in Row Source Property of that Combobox, please check and confirm


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Run time error 70 Permission denied.

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Run time error 70 Permission denied.

    Hi Sixth,

    Thank you for your reply, however the Combobox rowsource is alright and its working fine.


    Hi Andy,

    Thanks to you also for your kind help howevert I have tried this also , but not working ... I m not able to recognize why is the error arriving ....

    Many thanks in advance.

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Run time error 70 Permission denied.

    You cannot have a rowsource set and use AddItem, you must use one or the other

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Run time error 70 Permission denied.

    Yes ... but I am just adding sheet ... I am familiar with VB...

    Can u please let what will be code ...

    I want if a combobox is selected then it should 1st check within all the worksheet in workbook whether it contains the sheet name of that combobox value & if it is available then it should directly divert to that sheet .... ... and if not then it should insert a new sheet along with the value of the combobox ...

    I hope this information will help you to assist me ...

    Many thanks,

    Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1