LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Assign Cell Values without a Loop

Seems like that would have been easy enough to test instead of waiting more
than half an hour for me to tell you "Yes, that appears to work". However, I
think my preference would be to do it this way though...

Sheets(1).Range("B2:B10").Copy Sheets(2).Range("B2")

or, if you prefer, this the more self-documenting form...

Sheets(1).Range("B2:B10").Copy Destination:=Sheets(2).Range("B2")

Rick


"BHatMJ" wrote in message
...
Thank you both. If I took that a step further, would it be valid to have
the
following command also?

Sheets(1).Range("B2:B10").value = Sheets(2).Range("B2:B10").value



"Rick Rothstein (MVP - VB)" wrote:

Range("B2:10").value = "abc"


Typo alert... Bob accidentally left out the column designation for the
ending cell of the range...

Range("B2:E10").Value = "abc"

Rick





 
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
How to assign values to a cell based on values in another cell? Joao Lopes Excel Worksheet Functions 1 December 5th 07 09:02 PM
Cannot assign a range to seriecollection values matelot Charts and Charting in Excel 3 May 15th 07 03:55 PM
Assign values to text Town of Exeter Excel Worksheet Functions 0 August 17th 05 01:47 PM
In Excel how can I assign values to a Yes or No question with IF craigscoop Excel Discussion (Misc queries) 5 July 1st 05 12:44 AM
Assign values to text within a cell Bob Excel Worksheet Functions 2 June 7th 05 09:51 PM


All times are GMT +1. The time now is 03:03 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"