Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default A difficult thing to do¡¡¡

Hello everyone, I have a program that when you type a code and press a button
a macro automatically discount one of the code from stock, my problem is that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the column and
paste the column as values, the program doesn't going to work when I type
another code, if I make a macro that retype the formulas in the cells, it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do something
with this.

Gratefully
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default A difficult thing to do¡¡¡

See response in .misc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"filo666" wrote in message
...
Hello everyone, I have a program that when you type a code and press a

button
a macro automatically discount one of the code from stock, my problem is

that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the column

and
paste the column as values, the program doesn't going to work when I type
another code, if I make a macro that retype the formulas in the cells, it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do something
with this.

Gratefully



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default A difficult thing to do¡¡¡

in your macro have it do something like

Cells(rw,col+1).Value = Date

--
Regards,
Tom Ogilvy


"filo666" wrote in message
...
Hello everyone, I have a program that when you type a code and press a

button
a macro automatically discount one of the code from stock, my problem is

that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the column

and
paste the column as values, the program doesn't going to work when I type
another code, if I make a macro that retype the formulas in the cells, it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do something
with this.

Gratefully



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default A difficult thing to do¡¡¡

WHAT IS RW AND COL+1????

"Tom Ogilvy" wrote:

in your macro have it do something like

Cells(rw,col+1).Value = Date

--
Regards,
Tom Ogilvy


"filo666" wrote in message
...
Hello everyone, I have a program that when you type a code and press a

button
a macro automatically discount one of the code from stock, my problem is

that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the column

and
paste the column as values, the program doesn't going to work when I type
another code, if I make a macro that retype the formulas in the cells, it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do something
with this.

Gratefully




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default A difficult thing to do¡¡¡

rw is the row number and col is the column number. col + 1 indicates 1
column to the left.

This is pseudo code to represent the concept. You haven't asked a specific
question.

If you wanted the date to the right of the activecell, it would be

activecell.offset(0,1).Value = Date

for example.

--
Regards,
Tom Ogilvy

"filo666" wrote in message
...
WHAT IS RW AND COL+1????

"Tom Ogilvy" wrote:

in your macro have it do something like

Cells(rw,col+1).Value = Date

--
Regards,
Tom Ogilvy


"filo666" wrote in message
...
Hello everyone, I have a program that when you type a code and press a

button
a macro automatically discount one of the code from stock, my problem

is
that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the

column
and
paste the column as values, the program doesn't going to work when I

type
another code, if I make a macro that retype the formulas in the cells,

it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do

something
with this.

Gratefully








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default A difficult thing to do¡¡¡

tks, I want to learn more VB functions, where could I learn about this????

"Tom Ogilvy" wrote:

rw is the row number and col is the column number. col + 1 indicates 1
column to the left.

This is pseudo code to represent the concept. You haven't asked a specific
question.

If you wanted the date to the right of the activecell, it would be

activecell.offset(0,1).Value = Date

for example.

--
Regards,
Tom Ogilvy

"filo666" wrote in message
...
WHAT IS RW AND COL+1????

"Tom Ogilvy" wrote:

in your macro have it do something like

Cells(rw,col+1).Value = Date

--
Regards,
Tom Ogilvy


"filo666" wrote in message
...
Hello everyone, I have a program that when you type a code and press a
button
a macro automatically discount one of the code from stock, my problem

is
that
my boss want that wen you execute the macro in one cell appears the
substraction date of the code.
The problem is that if I use the now() function the following day the
registration date change, and also if I make a macro that copy the

column
and
paste the column as values, the program doesn't going to work when I

type
another code, if I make a macro that retype the formulas in the cells,

it
will errease all the last cells.

PLEASE HELP I'm having trouble in my job ans I really need to do

something
with this.

Gratefully






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
Help, too difficult for me. Menno Excel Worksheet Functions 4 January 19th 06 01:53 PM
Too difficult for me, please help. Menno Excel Worksheet Functions 3 October 7th 05 02:01 PM
Difficult but do-able? Jaydubs Excel Discussion (Misc queries) 8 October 6th 05 11:01 AM
A difficult thing to do¡¡¡¡¡¡ filo666 Excel Discussion (Misc queries) 1 March 2nd 05 03:40 AM
A difficult thing to do¡¡¡¡¡¡¡ filo666 Excel Programming 1 March 1st 05 05:01 PM


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