LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default ActiveCell.FormulaR1C1 question

The next code pretends to copy the values from a column, paste them in
another column and assign the correct format for each single cell. For this
last part I mean to:
1) press F2
2) press Enter

This combination of keys changes the cell's format, have you tried it? (Not
at the same time) Well, that's what I use to change cell's values format.
Anyway, when I was recording the macro, the VBA "builder" interpreted it as:
ActiveCell.FormulaR1C1 = 'Here goes the cell's value

It works for same cases, but not for all. I have some questions about it:
I. Did you understand me?
II. How can I change automatically "09/01/01" to "9 de Enero de 2001" (In my
country, the date order is represented as: DD/MM/YY)

Sub Macro4()
Dim celda, renglon, valor
renglon = 2
Range("AC2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("AD2").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Do While renglon < 2311
celda = "AD" & renglon
Range(celda).Select
valor = Range(celda).Value
Range(celda).Activate
ActiveCell.FormulaR1C1 = valor
renglon = renglon + 1
Loop
Application.CutCopyMode = False
celda = "AD2"
Range(celda).Select
Range(celda).Activate
End Sub

Thanks in advance.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveCell.FormulaR1C1 Rick Excel Discussion (Misc queries) 3 March 28th 10 10:36 PM
SumIf in ActiveCell.FormulaR1C1 ? RitaP Excel Programming 3 July 20th 06 07:15 PM
Excel VBA - use of ActiveCell.FormulaR1C1 pgi Excel Programming 1 June 1st 04 08:12 AM
activecell.formular1c1 monika Excel Programming 0 April 29th 04 10:13 AM
ActiveCell.FormulaR1C1 Leif Rasmussen Excel Programming 1 October 16th 03 09:46 AM


All times are GMT +1. The time now is 02:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"