+ Reply to Thread
Results 1 to 6 of 6

Alter value in macro

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Alter value in macro

    Hello,

    I have a nice macro that changes one column into several columns. The problem is I have to step into the macro to alter the number of rows the column goes into. The value I want to change in the seventh for down in the below macro (No_row = 40)
    Is it possible to add a number box in the sheet that alters the value without stepping into the macro? It would be great to have it in the quick access toolbar but not essential.

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 02-13-2014 at 09:59 PM. Reason: Added Code Tags

  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,258

    Re: Alter value in macro

    Hello

    Welcome to the Forum!

    Posting a copy of your workbook is the best and fastest way to get your questions answered. If your workbook contains sensitive information, please redact it before you post.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Alter value in macro

    Hi Orum and welcome to the forums

    If I understand your request maybe something like this simple input box could help

    Please Login or Register  to view this content.

    Cheers

    Jmac1947

    1. Please consider clicking on the * Add Reputation if you think this post has helped you
    2. Mark your thread as SOLVED when question is resolved

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Alter value in macro

    No_row = Application.Inputbox("Enter rows to copy",Type:=1)
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    02-13-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Alter value in macro

    Thanks for you reply guys. Very helpful.

    Paul
    Attached Files Attached Files
    Last edited by Orum; 02-14-2014 at 12:24 AM.

  6. #6
    Registered User
    Join Date
    02-13-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Alter value in macro

    That works perfectly B. Johnson.
    Thank you so much that is a big help. Simple when you know how.

    Many thanks
    Paul

+ 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. Alter value in one cell alter value in multiple cells
    By Bryan Noqw in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-11-2008, 05:31 AM
  2. macro to alter a formula
    By Crispy1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2007, 10:42 AM
  3. How can I alter this Macro?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2006, 12:10 PM
  4. [SOLVED] How can I alter this Macro?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2006, 05:15 AM
  5. [SOLVED] how to alter the date within a macro
    By LWhite in forum Excel General
    Replies: 2
    Last Post: 01-04-2005, 11:06 AM

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