• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Calendar/Date Picker for Excel 2016 (64 bit) running on Windows 8.1 (64 bit)|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Calendar/Date Picker for Excel 2016 (64 bit) running on Windows 8.1 (64 bit)|VBA & Macros|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 & MacrosCalendar/Date Picker for Excel 2016…
sp_PrintTopic sp_TopicIcon
Calendar/Date Picker for Excel 2016 (64 bit) running on Windows 8.1 (64 bit)
Avatar
Robert Hyde

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
September 16, 2019
sp_UserOfflineSmall Offline
1
September 16, 2019 - 2:25 pm
sp_Permalink sp_Print

Hi everyone,

First, I am new to this forum, but I hope I can finally find a solution to my problem. I will try to keep it short and to the point.

I am using Windows 8.1 (64 bit) and MS Excel 2016 (also 64 bit). 

I am trying to automate an inventory spreadsheet by using a macro input form (userform). The major headache I have is the date picker function. I have spent numerous hours looking for a solution for a Date Picker. I downloaded the date picker xlsm file from the post "JULY 9, 2015 by Philip Treacy"

When I try to use it, I get a 438 run-time error "Object doesn't support this property or method"

I've reduced my worksheet and user form to 2 entries to test if it works; if I comment out the calendar frame line it works

With lastrow

'     .Cells(1,1) = Frame1.Value
.Cells(1, 2) = BulkCode.Value

End With

I am not an experienced VBA user, but I use excel a lot to help the employees enter records. 

I have attached the excel (xlsm) file and error msgs that I received. Any help from anyone would be fantastic.

Thank you

Bob HydeDataEntryForm1.JPGImage Enlarger

DataEntryForm2.JPGImage Enlarger
VBA-error-438-Error-Line.JPGImage Enlarger
VBA-error-438.JPGImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage DataEntryForm1.JPG (35 KB)
  • sp_PlupImage DataEntryForm2.JPG (45 KB)
  • sp_PlupImage VBA-error-438-Error-Line.JPG (44 KB)
  • sp_PlupImage VBA-error-438.JPG (13 KB)
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1824
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
September 16, 2019 - 9:37 pm
sp_Permalink sp_Print sp_EditHistory

Hi Robert,

Should be >Frame1.Caption, not .Value

The .Value property an be used in textbox, combobox, checkbox, but in labels, frames, use .Caption.

But the Caption will return a null string, because the date is not in the Frame, it's the value of the calendar you need.

I's not an error in Date Picker, it's how you use the objects.
Use instead:
With lastrow
.Cells(1, 1) = Calendar1.Value
.Cells(1, 2) = BulkCode.Value
End With

Avatar
Robert Hyde

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
September 16, 2019
sp_UserOfflineSmall Offline
3
September 16, 2019 - 9:48 pm
sp_Permalink sp_Print

Catalin,

Thank you so much. 

I have tried it out. It seems like the date value only appears when I double click on the day box in the calendar. Also, if my cursor is in another cell on the spreadsheet the date value shows up in that cell example, if my cursor was on D10, and I double click on the day (in the calendar), then the date will show up in cell D10. I want the date only to show up in the date column of the table.....is that possible?

Thank you again

Robert

Avatar
Robert Hyde

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
September 16, 2019
sp_UserOfflineSmall Offline
4
September 16, 2019 - 9:53 pm
sp_Permalink sp_Print

Catalin,

My sincere apologies...It works fine

I did not read the bit that you changed in the with lastrow code

Fantastic. You are a scholar and great help.......

Robert

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1824
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
5
September 16, 2019 - 11:08 pm
sp_Permalink sp_Print

There is a double click event used in that code you have, but it should be removed because it will always write to active cell, you have no control of where the date goes.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Riny van Eekelen, Kumud Patel, Bright Asamoah
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Gilbert Lemek
Ashleigh Farquharson
Jayz Luu
Fred Smith
Charles DeGraffenreaid
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Forum Stats:
Groups: 3
Forums: 24
Topics: 6360
Posts: 27812

 

Member Stats:
Guest Posters: 49
Members: 32340
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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x