+ Reply to Thread
Results 1 to 4 of 4

Dialog box for Macro # change

  1. #1
    Registered User
    Join Date
    09-24-2014
    Location
    Houston
    MS-Off Ver
    7
    Posts
    24

    Dialog box for Macro # change

    I have a macros which copies a group of columns x "n" times....

    I would like a dialogue box pop-up to numerical input...in below case I show 8 [Const ICount As Long = #]

    Sub ADD_COLUMNS()
    '
    Dim lNC As Long, i As Long
    Const lCount As Long = 8
    '
    For i = 1 To lCount
    With Sheets("QUOTE")
    lNC = .Cells(7, Columns.Count).End(xlToLeft).Column + 1
    .Columns("O:X").Copy .Cells(1, lNC)
    End With
    Next 'i

    End Sub

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Dialog box for Macro # change

    Hello, before the moderators let you know and possibly give you an infraction, please wrap your code in code tags....please see the forum rules on how to do that....

    with that in mind....try this...if I understand what you are trying to do

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Dialog box for Macro # change

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Dialog box for Macro # change

    Thanks for setting the thread to Solved...If you feel we deserve an increase to our reputation, feel free to click on the star in the lower left of the thread. Remember, someday when you help somebody they may add to your rep points, and it could be us...just a thought...

+ 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. VBA/Macro to move object in cell, dialog to ask which cell to change
    By funnypie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 07:59 PM
  2. How to permanently change Dialog Caption while in the Dialog
    By MikeZz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2006, 01:35 PM
  3. Change dialog button assignment
    By Kristine in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2006, 01:00 PM
  4. [SOLVED] How to change Titlel of Dialog Box?
    By Naman.Patel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2006, 08:10 AM
  5. [SOLVED] Change query dialog-box language?
    By Alexander [email protected] in forum Excel General
    Replies: 2
    Last Post: 01-11-2006, 01:40 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