Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Modified:- Macro to Generate a new Column!!!

hi
my query is regarding Macros in Excelsheet! i have already an excel
report generated from a VB application. which is Protected.. i mean
it is
unedittable.i want to add few more columns in that report ..
depdending upon a condition enforced on already existing columns in
the excel report.
for example...
TimeIn TimeOut
10.01.00 AM 06.00.00 PM

Above 2 r already existing fields in excel report. i want to generate
a column depdending upon a condition enforced on the values in above
2
fields.
Suppose i want to generate a column with the condition as follows
If(TimeIn10)
if the above condition is true then a new column should get
generated
with its true value as 11.00.00 AM.

I need it Urgently... Plz Help!!!!!!

thanx n regards
Inder

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Modified:- Macro to Generate a new Column!!!

This is not clear to me, but maybe something like

If Range("A2").Value TimeSerial(10,0,0) then
Columns(2).Insert
Range("B2").Value = TimeSerial(11,0,0)
End If

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Inder" wrote in message
ups.com...
hi
my query is regarding Macros in Excelsheet! i have already an excel
report generated from a VB application. which is Protected.. i mean
it is
unedittable.i want to add few more columns in that report ..
depdending upon a condition enforced on already existing columns in
the excel report.
for example...
TimeIn TimeOut
10.01.00 AM 06.00.00 PM

Above 2 r already existing fields in excel report. i want to generate
a column depdending upon a condition enforced on the values in above
2
fields.
Suppose i want to generate a column with the condition as follows
If(TimeIn10)
if the above condition is true then a new column should get
generated
with its true value as 11.00.00 AM.

I need it Urgently... Plz Help!!!!!!

thanx n regards
Inder



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
Last Modified date on cell or column Mary Excel Discussion (Misc queries) 6 May 16th 23 03:42 AM
Macro to generate a new column denpending upon existing one! Inder Excel Worksheet Functions 1 July 10th 07 12:21 PM
Macro to generate a file from another Dileep Chandran Excel Worksheet Functions 10 December 4th 06 02:52 PM
In Excel can you have a cell generate the last dated modified?? Charlene77777 Excel Discussion (Misc queries) 1 March 22nd 06 05:28 PM
How to record macro to print pages modified today pamiam3333 Excel Worksheet Functions 1 September 10th 05 02:36 AM


All times are GMT +1. The time now is 07:29 AM.

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"