Modified:-> Macro to Generate a new Column!!!

I

Inder

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(TimeIn>10)
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
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top