+ Reply to Thread
Results 1 to 4 of 4

How do I insert a value in each cell of a selected range using macro?

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    12

    Unhappy How do I insert a value in each cell of a selected range using macro?

    Hi guys,

    I have been having trouble with this for the last few days. When I have a range of cells selected and when I run a macro, I want zero to be inserted in, if the value is 25 and 25 inserted if the value is 0.

    Please Login or Register  to view this content.
    The problem I am having is with this part

    Please Login or Register  to view this content.
    I don't know how it works. Any help will be much appreciated.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646
    Where do you want the value inserted?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How do I insert a value in each cell of a selected range using macro?

    I want the value inserted in all the cells selected. It varies and is not a definite row or column.

  4. #4
    Registered User
    Join Date
    11-27-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    12

    Red face Re: How do I insert a value in each cell of a selected range using macro?

    Hi guys.

    I found the solution

    Please Login or Register  to view this content.

+ 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] Modify insert rows macro if out if selected range
    By kstrick99999 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-07-2012, 11:31 AM
  2. Assign Macro to copy selected range of cell to another.
    By MissAugust in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 05:45 AM
  3. Macro to insert formulas to certain cells respective of cell selected
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-21-2011, 10:51 PM
  4. Run macro after cell is selected within a range
    By Alicita in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2011, 10:34 AM
  5. Replies: 11
    Last Post: 08-31-2010, 01:30 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