LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert a null value to keep format???

my table is as follows

A1 B1
001e 4-16-06
002e 1-21-06
002f 3-30-06

I have a formula to find values in my data table and paste them in a very
specific order in another worksheet(AUTO_GRAPH) for 90+ entries:


Dim Rng As Range, Rng1 As Range
Dim rng2 As Range
Application.Worksheets("NEW_WCS").Select
Set Rng = Range("B1").EntireColumn.Find(What:="001E", LookAt:=xlWhole,
LookIn:=xlValues)
If Rng Is Nothing Then
Exit Sub
Else
Set Rng1 = Rng
Do While Rng1.Offset(1, 0).Value = "001E"
Set Rng1 = Rng1.Offset(1, 0)
Loop
Set rng2 = Worksheets("AUTO_WATER_STACK").Cells(Rows.Count, 8).End(xlUp)(5)
Range(Rng, Rng1).Offset(0, 11).Copy
rng2.PasteSpecial xlPasteAll, Transpose:=True
End If

What I need is: if there is no value for "002e", I need the code to "paste"
a blank (nothing) into the specified row and column identified in the code
(rng2, 4 rows down from the previous line code so I can keep my format on the
worksheet (AUTOGRAPH) which never changes. Any help is greatly appreciated!
Thanks!
 
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
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
Test for null - insert a row if isnull Bonnie Excel Discussion (Misc queries) 3 July 10th 07 09:20 PM
Pivot table format changes if value of source data is null Frustrated with formatting! Excel Discussion (Misc queries) 0 October 24th 05 01:16 AM
Formulas (If linked data is not null, then insert "Complete" in ce Task Lead Nicole Excel Worksheet Functions 3 January 10th 05 06:25 PM
Insert cell/format/text/fontsize and auto insert into header? Unfurltheflag Excel Programming 2 November 3rd 04 05:39 PM


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