Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I say x = Range("a1") I am copy all formatting as
well as the value in the cell. Is there a way to assign a variable to the value in the cell only? I want to be able to search a column and if certain conditions are true I want to say something like Range("X2") = x Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
if use VBA,
Dim x as Variant x = Range("A1").Value Range("X2").Value = x is just the value in the cell if you did Dim x as Range set x = Range("A1") then you have created a reference to the cell and you can deal with formatting and so forth. even in this second instance you can do Range("X2").Value = x.Value -- Regards, Tom Ogilvy "JQ" wrote in message ... When I say x = Range("a1") I am copy all formatting as well as the value in the cell. Is there a way to assign a variable to the value in the cell only? I want to be able to search a column and if certain conditions are true I want to say something like Range("X2") = x Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy paste values macro | Excel Discussion (Misc queries) | |||
Macro for copy and paste values | Excel Discussion (Misc queries) | |||
Macro to copy values to Workbook | Excel Discussion (Misc queries) | |||
Copy Macro values to new sheet | New Users to Excel | |||
Copy & Paste values macro...almost there? | Excel Programming |