automatic generation of date and time
can anyone help me in automatic generation of current date and time in a cell when adjacent cell in a row is pasted with data using a macro.
Anwsers to the Problem automatic generation of date and time
If I guessed right about where the date/time should go, then this is what your code should look like...
Dim Data, NextRow As Range
'Read in all values form the column
Data = Range("F6:F15")
'Transpose the array
Data = WorksheetFunction.Transpose(Data)
'Note: If we transpose data that has only one column, _
WorksheetFunction.Transpose changes the dimensions of that _
'Get the next empty row in column B in second sheet
Set NextRow = .Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
'Store values in a row
NextRow.Resize(, UBound(Data)) = Data
.Range("L" & NextRow.Row).Value = Now
This code should be placed in a general Module...
click Insert/Module on the VB editor's menu bar and copy/paste the code into the code window that opens up.
Then, with the worksheet where your F6:F15 values are active, press Alt+F8 and run the macro (named
Test or whatever name you eventually give it)...
when the macro is through running, Sheets(2) should have the transpose data added and the date/time in Column L of that same row.
NOTE: Please mark the message or messages (yes, you can mark more than one) that answer your question as the "Answer" so that others will know your question has been resolved.
Boot in Safe Mode:
- Open Run command as previously described
- Type MSConfig
- Click on Boot tab
- Tick Safe boot in Boot option
- Select Network
- Click Apply and OK
- Reboot your system
Your system will boot in Safe mode with Networking. You may now try and open Windows Store and should not see any errors.
Recommended Method to Repair the Problem: automatic generation of date and time:
How to Fix automatic generation of date and time with SmartPCFixer?
1. Click the button to download SmartPCFixer . Install it on your computer. Open it, and it will scan your computer. The errors will be shown in the scan result.
2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.
3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been fixed. You can also use other functions in SmartPCFixer. Like dll downloading, junk file cleaning and print spooler error repair.
Related: AMD Radeon HD 7800M Win8 not working [Anwsered],I can access the internet, get on facebook and get to hotmail, but I can't play games on facebook and I can't open or respond to my e-mails,I keep getting this Media Player error when I log on my computer. [Anwsered],[Anwsered] System Hanging on shutdown and restart,Unable to get the Vlookup property of the WorksheetFunction class,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22)
Read More: How to Fix - backup & recovery window, when clicking on turn on schedule or anything on that page.?,Troubleshooting:auto play dialog box.,How to Fix - backing up restore points?,[Solved] Averaging hours over a 4 week period,How to Resolve - are there any virtual environments for learning Microsoft technologies available to professionals that are trying to stay current??,application not found error,any problems in a team where one has Windows XP and the other has Windows 7?,Application/Object-Defined Error,An Excel formula question where hours are totalled and cumulating,Anyone know the hardware email?