Closed Thread
Results 1 to 4 of 4

Macros and templates IM CONFUSED

  1. #1
    Registered User
    Join Date
    09-14-2014
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    17

    Macros and templates IM CONFUSED

    i need too know where too put this code? do put it in excel somewhere? and where too enter the line: Msg = Msg + vbCrLf, can someone tell me how too do this?


    Sub Test2()

    Dim Answer As String
    Answer = MsgBox("Test 2", vbAbortRetryIgnore, "Test")
    End Sub

    Sub Test3()

    Dim Msg, Style, Title, Response, MyString
    Msg = "Do you want to continue ?" ' Define message.

    Msg = Msg + "This is an extra long line. Will the box get"
    Msg = Msg + " bigger or will it wordwrap ??"
    Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.
    Title = "MsgBox Demonstration" ' Define title.

    Response = MsgBox(Msg, Style, Title)

    If Response = vbYes Then ' User chose Yes.
    MyString = "Yes" ' Perform some action.
    Else ' User chose No.
    MyString = "No" ' Perform some action.
    End If

    Response = MsgBox("You pressed " & MyString, vbOKOnly, "Response")
    End Sub

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Macros and templates IM CONFUSED

    why start a 2nd thread? the answers in your 1st one (or at least enough to make you actually think a bit about doing your own homework)

    http://www.excelforum.com/excel-prog...-confused.html
    If someone has helped you then please add to their Reputation

  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: Macros and templates IM CONFUSED

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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
    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: Macros and templates IM CONFUSED

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macros and templates IM CONFUSED
    By Jerome19961996 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2014, 08:56 PM
  2. Replies: 1
    Last Post: 10-03-2012, 10:32 PM
  3. [SOLVED] Macro executes but not giving results :confused::confused::confused:
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 10:49 AM
  4. I'm confused whether of not to use VBA, macros, or a formula.
    By xITzEpic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2010, 01:18 PM
  5. macros Vs templates
    By mita in forum Excel General
    Replies: 1
    Last Post: 04-04-2006, 03:20 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