+ Reply to Thread
Results 1 to 10 of 10

Assigning macro to control box on phone log sheet

  1. #1
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Assigning macro to control box on phone log sheet

    I had a log sheet I created to log calls by year. On the main page there was a button that was created that opened a box that I could enter all the data into. On the bottom in the control box then where you could email to supervisors, save to logsheet that you selected from the drop down list by year you were saving to. I went to open the file today and am getting an error and not sure what happened to the macro that was assigned to the button and not sure what happened. I have attached the file, but I can't find the macro assigned and don't remember who helped me create the macro before. Can someone tell me what is error is and help me to fix if possible?
    Last edited by alansidman; 07-30-2019 at 02:29 PM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Assigning macro to control box on phone log sheet

    I am a bit confused because all the code is present in your file.

    When and what is the error message your getting ?
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Assigning macro to control box on phone log sheet

    @blinhart

    Your attachment contained multiple instances of personal information which is inappropriate for public dissemination. As such, I have removed the file from the forum. Would you please attach a new file which anonimizes the personal information that was in the file you posted. I am sure you understand our concerns with the public dissemination of personal information in today's world of hacking such type of data.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Assigning macro to control box on phone log sheet

    Can't find project or library. It won't open the control box or let me make changes to the file and save.

  5. #5
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Assigning macro to control box on phone log sheet

    I was going to do that but it won't let me save the file if I delete any information and try to save as a blank copy. Sorry - I guess I will have to try to figure out and recreate something. I keep getting the same "can't find project or library" error and it then shuts all my excel files that I have open.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Assigning macro to control box on phone log sheet

    Have you opened the VBE and clicked on tools-->References and determined if there are missing items. Then making sure that the missing items are located and clicked so that you have the references installed.

  7. #7
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Assigning macro to control box on phone log sheet

    I did try that and it won't open the reference box. I looks like when excel is "not responding" and the reference box only half way appears and never fully opens to be able to see the code. I don't see anything but the frame of the box.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Assigning macro to control box on phone log sheet

    In VBEditor go to Tools - References.

    Is there any Reference that says missing ?

    If so uncheck it and save the file.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Assigning macro to control box on phone log sheet

    Have you tried closing Excel and Windows and rebooting your machine. I wonder if your copy of Excel has become corrupted. Do all other Excel Workbooks open and work as designed??

  10. #10
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: Assigning macro to control box on phone log sheet

    I did try all that first. I had to restore to a previous version by right clicking on the file and selecting to restore to a previous version, but file is fixed. Thanks for all your help on this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. assigning macro to a checkbox (form control)
    By Linus100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2014, 03:41 PM
  2. Assigning Macros to Macro created ActiveX Control Box
    By sm9748 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2013, 02:02 PM
  3. [SOLVED] Merge 2 sheets by common data? Ex: sheet 1 has address, no phone. Sheet 2 same and phone
    By KathleenTurnis in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-28-2012, 04:18 PM
  4. macro required to separate mobile phone no. from landline phone no.s
    By Poseidons-Palace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2012, 05:10 PM
  5. [SOLVED] Issue with assigning a macro to a button after the sheet is moved.
    By UsmanBPD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 10:44 AM
  6. [SOLVED] Assigning macro to Buttons in a Sheet
    By Howardiser in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-18-2012, 10:08 PM
  7. create control button and assigning it a macro
    By ers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2012, 01:24 PM
  8. Assigning Macro/Module to specific sheet
    By JOGIER in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2009, 03:35 PM

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