LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Adding text

John,

rather than assign a particular row to insert at, can i ditermine this via a
target method. IE: 5 rows after 'REQUIRED INVESTMENT', insert 2 rows??
This is the code i am using to ditermine a target to copy and paste? Along
these lines???


Private Sub Commandbutton2_click()
CopyData Range("E9:E94"), "OPTIONS"
End Sub





"John Green" wrote in message
...
Add the code I provided after your code, but change ActiveCell to refer to

the cell you want the trext in. Presumably youwant
something like:

Range("A31").Value = "Less Trade In"
With Range("A31").Font
.Name = "Times New Roman"
.Size = 10
End With


--

John Green - Excel MVP
Sydney
Australia


"gav meredith" wrote in message

...
oops, sorry John. Here you go!!

Sub test()
If Worksheets("Sheet1").Range("A1").Value 1 Then
Worksheets("Sheet2").Range("31:32").Insert xlShiftDown
End If
End Sub

Thank you!

"John Green" wrote in message
...
I don't see any code, but you can add text to a cell and change the

font
with something like:

ActiveCell.Value = "Less Trade In"
With ActiveCell.Font
.Name = "Times New Roman"
.Size = 10
End With

--

John Green - Excel MVP
Sydney
Australia


"gav meredith" wrote in message

...
Hi,

With the following code, how would i amend it to insert text "Less

Trade
In'? Can i adjust the font??

Thank you!!












 
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
Adding text without erasing previous text? Adding Text Without Deleting Excel Discussion (Misc queries) 7 April 2nd 23 08:57 PM
Comparing text and then adding numbers if the text matches rotor11 Excel Worksheet Functions 2 April 8th 09 08:38 PM
Adding text to equal text Frank Excel Discussion (Misc queries) 3 February 15th 07 03:25 PM
Adding Dashes in front of text using text formating Neal Excel Discussion (Misc queries) 1 November 27th 06 10:58 PM
Adding text to a text file using an inputbox Proedrsmith Excel Programming 3 September 12th 03 01:16 PM


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