PC Review


Reply
Thread Tools Rate Thread

how do I fill in a cell with text in Excel macro (2003)

 
 
Rikin
Guest
Posts: n/a
 
      15th Dec 2009
Hi,

I am running a macro where I copy and paste values from workbook to another.
Is it possible to fill in a cell with text without having to copying it from
another workbook.

Kind regards,
Rikin
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      15th Dec 2009
> Is it possible to fill in a cell with text without having to copying it
from
> another workbook.


Yes

Range("A1").value="Sometext"

Mike

"Rikin" wrote:

> Hi,
>
> I am running a macro where I copy and paste values from workbook to another.
> Is it possible to fill in a cell with text without having to copying it from
> another workbook.
>
> Kind regards,
> Rikin

 
Reply With Quote
 
Benito Merino
Guest
Posts: n/a
 
      15th Dec 2009
On 15 dic, 16:32, Mike H <Mi...@discussions.microsoft.com> wrote:
> > Is it possible to fill in *a cell with text without having to copyingit

> from
> > another workbook.

>
> Yes
>
> Range("A1").value="Sometext"
>
> Mike
>
> "Rikin" wrote:
> > Hi,

>
> > I am running a macro where I copy and paste values from workbook to another.
> > Is it possible to fill in *a cell with text without having to copyingit from
> > another workbook.

>
> > Kind regards,
> > Rikin


Hello.

One way is:


Sub prueba()
Sheets("Hoja2").Range("C2").Resize(Sheets("Hoja1").Range
("A1").CurrentRegion.Rows.Count, Sheets("Hoja1").Range
("A1").CurrentRegion.Columns.Count).Value = Sheets("Hoja1").Range
("A1").CurrentRegion.Value
End Sub

Regards,

Benito
Barcelona
 
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
remove fill in text from a cell from an unpopulated fill-in cell Deb Microsoft Excel Worksheet Functions 1 22nd Sep 2009 03:28 PM
i cannot get coloured text or fill to work excel 2003 CHRIS Microsoft Excel Misc 5 9th Feb 2009 11:22 AM
Excel 2003 Macro to add text to front of data in cell Rocky Lane Microsoft Excel Programming 30 28th Sep 2008 01:57 PM
Excel 2003 & cell fill colours Tony McGee Microsoft Excel Misc 2 14th Jan 2008 10:42 AM
How prompt Excel user to fill cell with text, i.e., proposal name =?Utf-8?B?RGVi?= Microsoft Excel Misc 5 5th Jun 2006 11:41 PM


Features
 

Advertising
 

Newsgroups
 


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