Solved

Copying a cell value down a column.

Posted on 2014-10-29
3
70 Views
Last Modified: 2014-10-29
Why would this produce a 1,2,3.... down the column instead of a 01,01,01,01??  I need a value specifically of "01" but it is not copying it down?  Any ideas?  I have tried just every cell format I can find?  Can this be done without using Autofill?

    Range("J3").Select
    ActiveCell.FormulaR1C1 = "01"
'Copies the formula in J3 down column J, as long as there is a value in columnG
    Set MyRange = Range(Range("J3"), Range("J" & Range("G3").End(xlDown).Row))
    Range("J3").AutoFill Destination:=MyRange

Open in new window

0
Comment
Question by:RWayneH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40411138
Easier to just use:
myRange.Value = "'01"

Open in new window

0
 

Author Closing Comment

by:RWayneH
ID: 40411154
Yup worked great.  Thanks.
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40411208
Rory you are very fast :-)


until i open the question, i see it is answered on the fly :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to write UDF for changing A,B,C to 1,2,3? 4 45
Custom fill series 12 38
count number 10 29
Problem to macro 5 20
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question