Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do I fill in a cell with text in Excel macro (2003)

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default how do I fill in a cell with text in Excel macro (2003)

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default how do I fill in a cell with text in Excel macro (2003)

On 15 dic, 16:32, Mike H wrote:
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


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
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
remove fill in text from a cell from an unpopulated fill-in cell Deb[_3_] Excel Worksheet Functions 1 September 22nd 09 03:28 PM
i cannot get coloured text or fill to work excel 2003 CHRIS Excel Discussion (Misc queries) 5 February 9th 09 11:22 AM
Excel 2003 Macro to add text to front of data in cell Rocky Lane Excel Programming 30 September 28th 08 01:57 PM
Excel 2003 & cell fill colours Tony McGee Excel Discussion (Misc queries) 2 January 14th 08 10:42 AM
How prompt Excel user to fill cell with text, i.e., proposal name Deb Excel Discussion (Misc queries) 5 June 5th 06 11:41 PM


All times are GMT +1. The time now is 03:42 PM.

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

About Us

"It's about Microsoft Excel"