PC Review


Reply
Thread Tools Rate Thread

Assigning values from source cells

 
 
Asif
Guest
Posts: n/a
 
      12th Aug 2008
I'm trying to assign value from Source cells into the destionation cell using
following statements.

dCell.Value = sCell.Value

Is it possible to assign value in destination cells without using multiple
copy-paste?

--
Thanx & regards,
Asif
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      12th Aug 2008
If you create a Range object you can assign a string value to it
directly, and all the cells in the range will take on that value.

Dim rng as Excel.Range
Dim myval As String
Set rng = Range("A1:A10")
myval = "Do it!"
rng.Value = myval


HTH,
JP



On Aug 12, 3:16*pm, Asif <A...@discussions.microsoft.com> wrote:
> I'm trying to assign value from Source cells into the destionation cell using
> following statements.
>
> dCell.Value = sCell.Value
>
> Is it possible to assign value in destination cells without using multiple
> copy-paste?
>
> --
> Thanx & regards,
> Asif


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
assigning values to cells in worksheet KAH Microsoft Excel Programming 3 27th Jun 2009 08:13 AM
Assigning values to adjacent cells from a function MJ_N_CO Microsoft Excel Worksheet Functions 1 6th Jan 2009 01:40 AM
Assigning values to other cells from one cells formula harris.rb@gmail.com Microsoft Excel Misc 1 20th Sep 2007 07:46 PM
assigning values to cells on itemdatabound gane Microsoft ASP .NET 3 5th Jun 2006 03:03 PM
Problem assigning values to a range of cells =?Utf-8?B?Sm9obiBLZWl0aA==?= Microsoft Excel Programming 3 7th Oct 2005 09:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 PM.