Solved

Copying a cell value down a column.

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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