+ Reply to Thread
Results 1 to 5 of 5

Macro Buttons

  1. #1
    Registered User
    Join Date
    08-16-2007
    Posts
    50

    Macro Buttons

    Attachment 20693Hello,

    I would like create a spreadsheet where I can click a button called "Choose Rm Type" on one sheet, which will take me to another sheet called "Room Type List", where I could then select a button from a list next to the room type that I choose and the corrisponding information from that list would atomatically be entered into the appropriate cells in the first sheet, and the final view would also be the first sheet.

    I have attached an example spreadsheet that will clarify the expanation above. I would really appreciate it if someone would show me how to do this.

    Thank you!
    Attached Files Attached Files
    Last edited by mcclanat; 04-03-2008 at 11:22 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello mcclanat,

    You don't need to use VBA macros for this. It can be done simply using Data Validation, Named Ranges, and a worksheet formulas. I have done this to the attached workbook. Simply click on the the Room Type and drop list will present the choices. In the adjacent cell to the right, a formula does a look up to find the square footage associated with the room choice.

    Sincerely,
    Leith Ross
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Why don't you just use an incell data validation selection list? Much less complicated.


    rylo

  4. #4
    Registered User
    Join Date
    08-16-2007
    Posts
    50
    Thank you. I know I could use data validation for this spreadsheet, but I need the buttons and macros in a much larger and more complex spreadsheet where it would make sense. The large spreadsheet contains sensitive information that I can't put out for the public to view, so I just made a simple small example speadsheet to show the concept.

    Would somebody please show me how to create the macros I need to attach to the buttons in order to make my example spreadsheet work?

    Thank you

  5. #5
    Registered User
    Join Date
    02-28-2008
    Posts
    36
    The easiest way for you to do this is to make your macro using the macro recorder. Turn the macro recorder on, name the macro, do the steps that you want performed and turn the recorder off.

+ Reply to Thread

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