If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Replacing the blank cell by value in VBA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-05, 07:08
jayarampandian jayarampandian is offline
Registered User
 
Join Date: Oct 2005
Posts: 2
Replacing the blank cell by value in VBA

Replacing the blank cell by value in VBA
Reply With Quote
  #2 (permalink)  
Old 10-14-05, 06:31
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
like this

Code:
Sub TestIt()
    Range("A1").Replace "", "This Value"
    
End Sub
' or

Sub TestIt2()
    Range("A1:A10").SpecialCells(xlCellTypeBlanks).Value = "This Value"
End Sub
I think that is what you mean anyway

All the best
Dave
Reply With Quote
  #3 (permalink)  
Old 10-25-05, 02:02
jayarampandian jayarampandian is offline
Registered User
 
Join Date: Oct 2005
Posts: 2
thanks

Hi Dave,
yah I got it correctly.
thanks for your valuable infn.
I want to replace the blank cells with the values that are occured most times
in the given range with out using any loop.
Can you post as soon as possible if you knows..

bye..


With Regards,
S.Jayaram
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On