2016年7月6日星期三

How to Fix - Automatically updating worksheets tabs - run time errors?

Automatically updating worksheets tabs - run time errors

Hello,
 
I am receivng a few errors with this Macro.
First, whenever I run the Macro, the dates changes in D14 and A15. Everytime I change D14 to equal A14 it changes to another date after running the Macro.
When running the Macro InsertCalendarDates the run-time
error 1004 is displayed.
The ActiveSheet.Name = newname is highlighted.
This results in Sheet25 or other sheets added between dates 8/7 and 8/8.
The worksheet for 8/1-8/6 is not there.  Also, in cell A1 of every worksheet the formula =$A$14 has been inserted. 
 
Ultimately, my goal is to automatically insert dates on worksheets for the calendar month and then update at the beginning of each month.
Then in ColumnA1(active sheet) auto populate with current date. Ideally it would be nice to add a button on each
worksheet to do this.   How do I accomplish this task? 
 
Thank you!
 


a

b

c

d


08/31/10

08/01/10

31

08/07/10


08-Aug-2010
 
 

 
Sub InsertCalendarDates()
Dim S As Integer
Dim X As Integer
S = Sheets("Cover_Sheet").Range("C14").Value
For X = 1 To S
newname = Sheets("Cover_Sheet").Range("A15").Value
Sheets.Add Type:=xlWorksheet
ActiveSheet.Name = newname
Sheets("Cover_Sheet").Range("D14").Value = Sheets("Cover_Sheet").Range("A14") - X
ActiveCell.FormulaR1C1 = "=R14C1"
  
Range("D14").Select
Next X
End Sub

Anwsers to the Problem Automatically updating worksheets tabs - run time errors

Download SmartPCFixer to Fix It (Free)

Open Action Center by clicking the Start button Picture of the Start button, clicking Control Panel, and then, under System and Security, clicking Review your computer's status.

Make sure your computer has at least the minimum amount of random access memory (RAM) required to run the program that is displaying the error. Look for the program requirements online or in the packaging information.

Recommended Method to Fix the Problem: Automatically updating worksheets tabs - run time errors:

How to Fix Automatically updating worksheets tabs - run time errors with SmartPCFixer?

1. Click the button to download SmartPCFixer . Install it on your computer.  Open it, and it will scan your computer. The junk files will be shown in the list.

2. After the scan is finished, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in this software. 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: Solution to Error: Auto Play prompt when system wakes from sleep,Tech Support: Auto Fill in Internet Explorer 8?,[Solved] Are there any general tips to maintain my laptop's performance?,How to Fix Error - backgroung comes black everytime i set something for background.help me.?,Backup filling up hard drive Tech Support,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?

没有评论:

发表评论