-
WSvanoskyj
AskWoody Loungerok this might help… here is the actual code I’m using:
Sub Get12()
Dim LastCol As Long
LastCol = Worksheets(“data entry”).Range(“IV3”).End(xlToLeft).Column + 1
Worksheets(“Sheet1”).[A2:A13].Copy Destination:=Worksheets(“data entry”).Cells(3, LastCol)
End Subnow I need to be able to check colum+1 against last column to ensure I don’t have two colums with the exact same data in them. If it is the same data I need to inform user that the data is the same data from yesterday (last column).
how do I do this in excel????
-
WSvanoskyj
AskWoody Loungerok this might help… here is the actual code I’m using:
Sub Get12()
Dim LastCol As Long
LastCol = Worksheets(“data entry”).Range(“IV3”).End(xlToLeft).Column + 1
Worksheets(“Sheet1”).[A2:A13].Copy Destination:=Worksheets(“data entry”).Cells(3, LastCol)
End Subnow I need to be able to check colum+1 against last column to ensure I don’t have two colums with the exact same data in them. If it is the same data I need to inform user that the data is the same data from yesterday (last column).
how do I do this in excel????
-
WSvanoskyj
AskWoody Loungersd you hit it on the head…. thats exactly what I want to do (your second idea). But how /where do I put this in my macro. Do I need to add it to each cell. or can I edit my macro and put it at the top or bottom… I’m totally unsure of this… and by the way thank you a million times over for all your assistance and those of the panel…
-
WSvanoskyj
AskWoody Loungersd you hit it on the head…. thats exactly what I want to do (your second idea). But how /where do I put this in my macro. Do I need to add it to each cell. or can I edit my macro and put it at the top or bottom… I’m totally unsure of this… and by the way thank you a million times over for all your assistance and those of the panel…
-
WSvanoskyj
AskWoody Loungerone more time guys,,, here is a copy of the actual spreadsheet . the column A has all times. this reflects the time the jobs on ibm run. the headings have the date for the different days that it runs (through the end of the year).
St. Louis
3-Apr 4-Apr 5-Apr 6-Apr 7-Apr 8-Apr 9-Apr 10-Apr
3:00 40
3:30 67
4:00 72
4:30 62
5:00 49
5:30 79
6:00 91
6:30 285
7:00 321
7:30 196
8:00 253total jobs 1515 0 0 0 0 0 0 0
this next data is the imported data from the text file that goes into a different sheet (say sheet 2) also found in column b above
40
67
72
62
49
79
91
285
321
196
253
this gets updated evey day same column same rows, Once its updated I then run the following macro to bring the data to sheet 1 (the first sheet above).
Sub Macro1()
‘
‘ Macro1 Macro
‘ Macro recorded 4/20/2004 by Compaq
‘‘
Range(“BL3”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R1C1”
Range(“BL4”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R2C1”
Range(“BL5”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R3C1”
Range(“BL6”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL7”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL8”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL9”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL10”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL11”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL12”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL13”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL16”).Select
Application.CommandBars(“Stop Recording”).Visible = False
End SubI now need to know how to make the data go from column b to c to d etc… every day I open the new data. keep in mind the imported data column A rows 1-12 on sheet 2 never changes just the data does.
also where in my macro would I put the new macro (If you guys havent noticed by now I’m some what a newbe at this) do I have to use your macro in every cell or do I put it in the code up abaove? please help time is running out. -
WSvanoskyj
AskWoody Loungerone more time guys,,, here is a copy of the actual spreadsheet . the column A has all times. this reflects the time the jobs on ibm run. the headings have the date for the different days that it runs (through the end of the year).
St. Louis
3-Apr 4-Apr 5-Apr 6-Apr 7-Apr 8-Apr 9-Apr 10-Apr
3:00 40
3:30 67
4:00 72
4:30 62
5:00 49
5:30 79
6:00 91
6:30 285
7:00 321
7:30 196
8:00 253total jobs 1515 0 0 0 0 0 0 0
this next data is the imported data from the text file that goes into a different sheet (say sheet 2) also found in column b above
40
67
72
62
49
79
91
285
321
196
253
this gets updated evey day same column same rows, Once its updated I then run the following macro to bring the data to sheet 1 (the first sheet above).
Sub Macro1()
‘
‘ Macro1 Macro
‘ Macro recorded 4/20/2004 by Compaq
‘‘
Range(“BL3”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R1C1”
Range(“BL4”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R2C1”
Range(“BL5”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R3C1”
Range(“BL6”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL7”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL8”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL9”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL10”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL11”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL12”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL13”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL16”).Select
Application.CommandBars(“Stop Recording”).Visible = False
End SubI now need to know how to make the data go from column b to c to d etc… every day I open the new data. keep in mind the imported data column A rows 1-12 on sheet 2 never changes just the data does.
also where in my macro would I put the new macro (If you guys havent noticed by now I’m some what a newbe at this) do I have to use your macro in every cell or do I put it in the code up abaove? please help time is running out. -
WSvanoskyj
AskWoody Loungerthe date was already inputted by the manager unsure of how he put it there. i just need a simple macro that will update the next column with the same row of data as input from the sheet that had imported my text file. when I open my spreedsheet now every time I open it my text file has different data but that data is in the same column and rows column A rows 1-12. what I need is something that will take that data and put it in the next available column on another sheet that my text file is not imported into.
-
WSvanoskyj
AskWoody Loungerthe date was already inputted by the manager unsure of how he put it there. i just need a simple macro that will update the next column with the same row of data as input from the sheet that had imported my text file. when I open my spreedsheet now every time I open it my text file has different data but that data is in the same column and rows column A rows 1-12. what I need is something that will take that data and put it in the next available column on another sheet that my text file is not imported into.
-
WSvanoskyj
AskWoody Loungerok here are the basics. I need to keep track of how many jobs are running within the ibm queue at a certain hour of the day (12 hours a day – hence rows 1 through 12). I need to do this every day until the end of this year (hence the dates). But I need the most current date in the column on the right. anotherwords… 5-april, 6-april, 7-april etc… I hope this gives you guys a better understanding.
-
WSvanoskyj
AskWoody Loungerok here are the basics. I need to keep track of how many jobs are running within the ibm queue at a certain hour of the day (12 hours a day – hence rows 1 through 12). I need to do this every day until the end of this year (hence the dates). But I need the most current date in the column on the right. anotherwords… 5-april, 6-april, 7-april etc… I hope this gives you guys a better understanding.
-
WSvanoskyj
AskWoody Loungerok, first of all thanks for replying to my post. here is my situation…..
1).I have a program/job on an ibm mainframe that strips data from a file – it then creates a new file called FILEA.
2). I then take FILEA and ftp the file into a text file – called FILEB
3). I created an excell spreadsheet with two different sheets (sheet1 & sheet2).
4). I imported FILEB into sheet1 (all this has is one column 12 rows – all data numeric – no headings)
5). I then wrote a macro on sheet2 to bring in the data from the individual cells on sheet1 to their corresponding cells on sheet2
6). Sheet2 consists of headers of dates from column A through column XXXXX.
7). I need a macro that will take my daily updated information on sheet1 and put it in the individual columns on sheet2 daily.sheet1
—————————
2 |
————————— <——– data gets updated every day from program on ibm. so text file gets updated, which means sheet1 gets updated.
3 |
————————–
27|
————————–_5-apr___|____6-apr__|___7-apr__|__8-apr__|__9-apr__|_etc….
2 | 54 | 73 |
———————————|————————- <——– new daily data gets applied to new columns from ibm job/text file/sheet1s (same columnA rows1-12).
3 | 8 | 2 |
———————————| ————————
27 | 34 | 123 |
————————————————————so can anybody help…
-
WSvanoskyj
AskWoody Loungerok, first of all thanks for replying to my post. here is my situation…..
1).I have a program/job on an ibm mainframe that strips data from a file – it then creates a new file called FILEA.
2). I then take FILEA and ftp the file into a text file – called FILEB
3). I created an excell spreadsheet with two different sheets (sheet1 & sheet2).
4). I imported FILEB into sheet1 (all this has is one column 12 rows – all data numeric – no headings)
5). I then wrote a macro on sheet2 to bring in the data from the individual cells on sheet1 to their corresponding cells on sheet2
6). Sheet2 consists of headers of dates from column A through column XXXXX.
7). I need a macro that will take my daily updated information on sheet1 and put it in the individual columns on sheet2 daily.sheet1
—————————
2 |
————————— <——– data gets updated every day from program on ibm. so text file gets updated, which means sheet1 gets updated.
3 |
————————–
27|
————————–_5-apr___|____6-apr__|___7-apr__|__8-apr__|__9-apr__|_etc….
2 | 54 | 73 |
———————————|————————- <——– new daily data gets applied to new columns from ibm job/text file/sheet1s (same columnA rows1-12).
3 | 8 | 2 |
———————————| ————————
27 | 34 | 123 |
————————————————————so can anybody help…
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
*Some settings are managed by your organization
by
rlowe44
3 hours, 12 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
5 hours, 26 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
5 hours, 50 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
14 hours, 51 minutes ago -
AI slop
by
Susan Bradley
14 hours, 1 minute ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
16 hours, 7 minutes ago -
Two blank icons
by
CR2
1 hour, 41 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 1 hour ago -
End of 10
by
Alex5723
1 day, 3 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 hour, 36 minutes ago -
test post
by
gtd12345
1 day, 9 hours ago -
Privacy and the Real ID
by
Susan Bradley
23 hours, 50 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
15 hours, 56 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 14 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 hour, 46 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
5 hours, 20 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 5 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 17 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 7 hours ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 23 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 16 hours ago -
Network Issue
by
Casey H
2 days, 3 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 5 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 7 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 8 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 9 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 52 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.