LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Insert dummy variables

Sub abc()
Dim rng as Range, rw as Range
Dim cell as Range
Set rng = Range("A1").CurrentRegion
Set rw = rng.Offset(rng.Rows.Count, 0).Resize(1)
For Each cell In rw
cell.Value = "-"
Next
End Sub

--
Regards,
Tom Ogilvy


"Chris_t_2k5" wrote in message
...
Hi, here is my problem. I will have data in different cells each time

such
as A1:C10, A1:H100, for example. What i need is macro that will insert a

dash
(-) under the last line of value in each cell.

For example if there are values in cells A1:C10 I need a dash in each of

the
cells A11:C11.

Thanks in advance



 
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
Dummy Variables rz-illini85 Excel Discussion (Misc queries) 4 December 6th 06 11:45 AM
Creating dummy variables in Excel Alok Excel Worksheet Functions 0 November 30th 06 05:46 PM
Creating dummy variables in Excel ALEX Excel Worksheet Functions 0 November 30th 06 03:30 PM
vb dummy - two routines Greg Excel Programming 6 June 20th 05 04:56 PM
Question for dummy Yuri Weinstein \(HotMail\) Excel Programming 9 June 17th 05 04:34 AM


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