Solved

Copying a cell value down a column.

Posted on 2014-10-29
3
71 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

728 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