PC Review


Reply
Thread Tools Rate Thread

Changing cell data with macro--HELP!!!!

 
 
AaronT
Guest
Posts: n/a
 
      15th Jan 2008
Hello all,

Please help me out with this. I have a worksheet that needs to be
uploaded into an IBM AS/400 system. Cells that will be uploaded are
marked with yes to tell the AS/400 to accept this data. Once
uploaded,
I have to mark the each cell in Col F with a date so that they will
not be uploaded again and overwrite the previously uploaded data. An
example of my worksheet is as follows:


E
F G
Period End Date Upload Date Upload Data
5/11/2007 --blank-- Yes
6/15/2007 --blank-- No


(There are usually around 100 - 175 rows like this)


I would like to create a macro that would ask the user for the period
end date and upload date, the find all cells with that same period
end
date that are marked Yes for upload and put in the upload date
automatically. Any help that you can provide is appreciated. I will
try to upload the sheet if possible for further illustration.
 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      16th Jan 2008

"AaronT" <(E-Mail Removed)> skrev i en meddelelse
news:90d7f8ab-cea7-4c7a-bd85-(E-Mail Removed)...
> Hello all,
>
> Please help me out with this. I have a worksheet that needs to be
> uploaded into an IBM AS/400 system. Cells that will be uploaded are
> marked with yes to tell the AS/400 to accept this data. Once
> uploaded,
> I have to mark the each cell in Col F with a date so that they will
> not be uploaded again and overwrite the previously uploaded data. An
> example of my worksheet is as follows:
>
>
> E
> F G
> Period End Date Upload Date Upload Data
> 5/11/2007 --blank-- Yes
> 6/15/2007 --blank-- No
>
>
> (There are usually around 100 - 175 rows like this)
>
>
> I would like to create a macro that would ask the user for the period
> end date and upload date, the find all cells with that same period
> end
> date that are marked Yes for upload and put in the upload date
> automatically. Any help that you can provide is appreciated. I will
> try to upload the sheet if possible for further illustration.


Hi

Try if this macro works.

Option Explicit

Dim EndDate As Date
Dim UploadDate As Date
Dim tRange As Range
Dim c As Variant

Sub Enter_Upload_Date()
EndDate = InputBox("Enter end date : ", "Upload")
UploadDate = InputBox("Enter upload date : ", "Upload")
Set tRange = Range("E2", Range("E2").End(xlDown))

For Each c In tRange
If c.Value = EndDate And c.Offset(0, 2) = "Yes" Then c.Offset(0,
1).Value = UploadDate
Next
End Sub

Regards,

Per


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how blank data validation cell after changing dependent cell? Ian Elliott Microsoft Excel Misc 5 16th Aug 2009 02:42 AM
Changing Cell Background Color based on data from another cell Speedy Microsoft Excel Misc 2 16th Mar 2009 04:10 PM
Changing background colour when changing data in a cell Paoul Microsoft Excel Misc 7 26th Dec 2008 07:25 AM
macro help for changing data (cell location) in edit find box =?Utf-8?B?SklN?= Microsoft Excel Misc 1 10th Nov 2006 10:57 PM
how do i record changing cell data (cell is dde linked) =?Utf-8?B?TW9ycGg=?= Microsoft Excel Misc 1 22nd Sep 2005 12:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.