Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default show selective data - help in code

You can get this information in the VBA help file by opening the VB editor,
Alt + F11 and typying NumberFormat in the search box. Then select that
topic from the results pane. It is too lengthy for me to go into here.


"Eddy Stan" wrote in message
...
just one more thing, when i show i would like to format the data
like (1) amount in "###,###.##", shade the amount as yellow if the amount
is
negative (2) date "dd-mm-yyyy"

thankyou...

"Eddy Stan" wrote:

Hi
Question 1
' the below line works

Set rng = sh2.Range(sh2.Cells(4, 2), sh2.Cells(Rows.Count, 1).End(xlUp))

' but how can i allot the data in range name "DSOCML" in to Set rng
' Can i substitute the above line like below line (now it gives error)
' Set rng = Range.Name("DSOCML").Value

Question 2
For Each cell In rng
If cell.Offset(0, 1) = Customer_lookfor then

' the above 2 lines looks for all cells in the range "DSOCML" for
customer
code, so if it finds anywhere, that data is brought in, which is wrong. I
want to bring only if the customer lookfor is found in first column

Question 3
do we have to initialise zero like below
tsum = 0
xsum = 0
ysum = 0
cant we store like store 0 to tsum, xsum, ysum

Urgent folks, please help me



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
show selective data - help in code JLGWhiz[_2_] Excel Programming 1 August 29th 09 10:07 PM
Code for Selective Printing PJ Murph[_2_] Excel Programming 0 April 7th 09 01:59 PM
Selective Data MattD Excel Programming 3 October 28th 05 07:49 PM
VBA Code for Selective formula writing Fuerteventura Excel Programming 1 August 24th 05 02:43 PM
how read data downloaded on cd-rw, now show only code? turbobucs New Users to Excel 2 April 1st 05 03:23 PM


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