Results 1 to 10 of 10

VBA code needed for calling RegEDIT windows function

Threaded View

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    VBA code needed for calling RegEDIT windows function

    HI,
    I am using Win 7 ultimate and MS Excel 2007 at home and 2010 at work.
    In my form,
    I managed to place the VBA code for calling a Windows remote assistance and remote desktop connection, using the same code but I am stuck trying the same code for REGEDIT function.
    Anyone managed to do that in home and/or working environment?

    Any help or advice (code) appreciated.
    Regards
    Private Sub CommandButton31_Click()
    Dim x As Variant
    Dim Path As String
    Dim File As String
    
        Path = "C:\windows\regedit.exe"
    
        x = Shell(Path + " " + File, vbNormalFocus)
    
    End Sub
    I also tried System32 directory path, but no success
    Last edited by JBeaucaire; 05-28-2013 at 10:26 AM. Reason: Added CODE tags, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

Thread Information

Users Browsing this Thread

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

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