• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Create Set today's date in the Previous Cell to the previous one of a manual input of a Determined logical data|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Create Set today's date in the Previous Cell to the previous one of a manual input of a Determined logical data|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosCreate Set today's date in the Prev…
sp_PrintTopic sp_TopicIcon
Create Set today's date in the Previous Cell to the previous one of a manual input of a Determined logical data
Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
1
November 11, 2018 - 12:33 am
sp_Permalink sp_Print

Hello everyone My name is Maurizio
And my problem is this:
My daughter has given me a damanda here I can not answer with all my good will; Here is explained the reason for my request.
The problem is this; Always taking advantage of the VBA it would be possible to take for good that in the Column (B) I can write any data in any cell; And only at this point in the previous cell to my Venga inserted automatically (today's date)
I bring an example: If in the Cell (B8) of the sheet of excel I write (1936,27 €) Or the word (Dog)
Nlla Cella (B7) should automatically appear on today's date.
So it should happen in the cell Example (B30) Write the name (Armando)
In the Cell (B29) It should always appear today's date etc ...!
According to you all this and possible to create all this.
Thank you for all the help you want to give me about; Greetings from A.Maurizio

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
November 11, 2018 - 4:51 pm
sp_Permalink sp_Print

Hi Maurizio

See attached.

It will add today's date above any cell that you enter data in column B.

Hope your daughter like it.

Sunny

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
3
November 13, 2018 - 2:13 am
sp_Permalink sp_Print

Thank you Infinite SunnyKowMy children thank you, but I congratulate you as I did this way I would never have succeeded.But if I can still dare your kindness; I can ask you what you think is wrong with this function.The other day I wanted to try to solve what you did from me.And I wrote:Dim MyDato as StringIf range ("B" & MyDato, "D"). Value> 0 thenBut just on this (If Then) keeps giving me error when I start the Why procedureThank you Infinite of All Sincere Greetings from A.Maurizi(P.S) SunnyKow You are a Great

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
November 13, 2018 - 8:56 am
sp_Permalink sp_Print

Hi Maurizio

Could you post the full code as the code you have given is insufficient to test.

Sunny

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 615
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
5
November 14, 2018 - 11:14 pm
sp_Permalink sp_Print

range("B" & MyDato, "D"). Value

is not valid syntax, as you have mixed up Range and Cells syntax. Assuming MyDato is a row number, you would either refer to range("B" & MyDato) or to Cells(MyDato, "B")

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
6
November 15, 2018 - 7:42 pm
sp_Permalink sp_Print

Hello Velouria
Thank you for your Tip this Rule with the (Range) written in this way I did not know it.

However: I would like to reiterate that my function I knew at the outset that it was wrong.
But with it, I just wanted to point to any cell of the three columns taken at random that were (B: C: D) in it I did not aim to insert a line number, but to any given data.
Example: I took into account the Cell (B7) or the Cell (D2) and I wrote a data like: "Home" or "Sea" and then I pressed the Enter key from Keyboard; The program should have Given today's date in cell (B6); Ditto for the Cell (D1) everything here.
But hora Thanks to you I have solved this problem and I understood where I was wrong, For so much Thank you so much more of everything; Greetings and a Thanks Sincere everyone by A.Maurizio

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.