+ Reply to Thread
Results 1 to 4 of 4

general syntax question re: "open ended" macros

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Greece, NY
    MS-Off Ver
    365
    Posts
    63

    Question general syntax question re: "open ended" macros

    I think this should be a new thread ...

    I often want to simplify the steps to get to a particular window so I can make specific choices. Yesterday, it was getting to the Custom Color tab. The steps are Format Cells, Fill, More Colors, Custom. Since there's no way to stop recording the steps when I get there, it needed VBA language, which cantosh - God bless him - came up with for me.

    This leads me to ask what the general syntax would be for this kind of macro - one that you can't stop recording when you get to your destination. I know virtually nothing about VBA, nor do I have the time or interest to become proficient. I just wonder if there's a syntax template of sorts that I could use so as not to be asking for a new macro every time I need one!

    Inquiring minds want to know!

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: general syntax question re: "open ended" macros

    Hello Nardar,

    I find the following somewhat contradicting.

    ...I know virtually nothing about VBA, nor do I have the time or interest to become proficient..
    and then,

    ...Inquiring minds want to know!..
    Practice makes perfect. You are referring to other Posts you may have been helped with, without adding a link to same for some clarification. As much as I would like to help you, and maybe convert you to an Excel enthusiast, I find myself at a slight disadvantage here with the information you have made available.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,375

    Re: general syntax question re: "open ended" macros

    I don't know the specific answer to your question, but here's how I see learning about it:

    1) Start here: https://msdn.microsoft.com/en-us/lib.../ff194068.aspx This is a common starting page for me in the help files.
    2) Find the desired collection/object in the left hand navigation pane (in this case, you are looking for the "Dialogs" collection and or the "Dialog" object).
    3) From there, find the desired property/method that does what I want (It might be under the "object Members" link). In this case, you will be looking for the Dialog.Show method.
    4) See what it tells me about using that property/method. In this case, the "Dialog.Show" method says that there may be arguments applicable to each specific dialog box. Since I cannot readily find any documentation of the arguments for the specific dialog under consideration, then it will come down to researching (and maybe some trial and error) to figure out what arguments are available to the dialog and which ones might lead to the "custom" tab (https://msdn.microsoft.com/en-us/lib.../ff838781.aspx ).
    5) Recognize that there may not be a way to do exactly what you want using the built in dialogs, at which point, you can decide if it is worth the effort to create your own dialog or not.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    12-27-2012
    Location
    Greece, NY
    MS-Off Ver
    365
    Posts
    63

    Re: general syntax question re: "open ended" macros

    Re: comment 1 - I generally use Excel for tables of data, and they don't often need more than some basic functions which I can get from buttons & menus. However, I do get tired of making 6 or 7 clicks each time I want to make a specific, not common change. That's why I don't need or want to become a VBA guru.

    Re: comment 2 - On the other hand, I do like to learn specific things in small increments, as much for the mental stimulation as for the end result of the work.

    Does that clarify?

    So, here's the link to the thread from yesterday:

    http://www.excelforum.com/excel-prog...mat-macro.html

+ 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. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. [SOLVED] "open-ended" format macro
    By Nardar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2016, 11:08 AM
  3. Replies: 5
    Last Post: 07-16-2015, 10:14 AM
  4. [SOLVED] Convert from "general" (YYYYMMDD) to specific "custom" format (YYYY.MM.DD)
    By Ella_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 02:23 AM
  5. Replies: 2
    Last Post: 11-01-2012, 04:35 PM
  6. general programming question about "how to do somethings"
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2011, 10:08 AM
  7. disregard 12/19/05 ".XValues syntax problem" question. Answer fou
    By JF_01 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-19-2005, 04:25 PM

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